Package org.pentaho.ui.database.event
Class FragmentHandler
java.lang.Object
org.pentaho.ui.xul.XulEventSourceAdapter
org.pentaho.ui.xul.impl.AbstractXulEventHandler
org.pentaho.ui.database.event.FragmentHandler
- All Implemented Interfaces:
org.pentaho.ui.xul.impl.XulEventHandler
,org.pentaho.ui.xul.XulEventSource
public class FragmentHandler
extends org.pentaho.ui.xul.impl.AbstractXulEventHandler
Fragment handler deals with the logistics of replacing a portion of the dialog from a XUL fragment when the
combination of database connection type and database access method calls for a replacement.
- Author:
- gmoran
-
Field Summary
Fields inherited from class org.pentaho.ui.xul.impl.AbstractXulEventHandler
document, name, xulDomContainer
Fields inherited from class org.pentaho.ui.xul.XulEventSourceAdapter
changeSupport
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetData()
protected String
getFragment
(org.pentaho.di.core.database.DatabaseInterface database, String dbName, String extension, String defaultFragment) protected void
loadDatabaseOptionsFragment
(String fragmentUri, DataHandler dataHandler) void
This method handles the resource-like loading of the XUL fragment definitions based on connection type and access method.void
void
protected void
showMessage
(String message) Methods inherited from class org.pentaho.ui.xul.impl.AbstractXulEventHandler
bind, bind, getName, getXulDomContainer, setName, setXulDomContainer
Methods inherited from class org.pentaho.ui.xul.XulEventSourceAdapter
addPropertyChangeListener, addPropertyChangeListener, firePropertyChange, removePropertyChangeListener, removePropertyChangeListener
-
Constructor Details
-
FragmentHandler
public FragmentHandler()
-
-
Method Details
-
loadDatabaseOptionsFragment
protected void loadDatabaseOptionsFragment(String fragmentUri, DataHandler dataHandler) throws org.pentaho.ui.xul.XulException - Throws:
org.pentaho.ui.xul.XulException
-
refreshOptions
public void refreshOptions()This method handles the resource-like loading of the XUL fragment definitions based on connection type and access method. If there is a common definition, and no connection specific override definition, then the common definition is used. Connection specific definition resources follow the naming pattern [connection type code]_[access method].xul. -
getFragment
-
getData
- Specified by:
getData
in interfaceorg.pentaho.ui.xul.impl.XulEventHandler
- Overrides:
getData
in classorg.pentaho.ui.xul.impl.AbstractXulEventHandler
-
setData
- Specified by:
setData
in interfaceorg.pentaho.ui.xul.impl.XulEventHandler
- Overrides:
setData
in classorg.pentaho.ui.xul.impl.AbstractXulEventHandler
-
showMessage
-
setAuthMethodVisibility
public void setAuthMethodVisibility() throws org.pentaho.ui.xul.XulException- Throws:
org.pentaho.ui.xul.XulException
-