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, xulDomContainerFields inherited from class org.pentaho.ui.xul.XulEventSourceAdapter
changeSupport -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetData()protected StringgetFragment(org.pentaho.di.core.database.DatabaseInterface database, String dbName, String extension, String defaultFragment) protected voidloadDatabaseOptionsFragment(String fragmentUri, DataHandler dataHandler) voidThis method handles the resource-like loading of the XUL fragment definitions based on connection type and access method.voidvoidprotected voidshowMessage(String message) Methods inherited from class org.pentaho.ui.xul.impl.AbstractXulEventHandler
bind, bind, getName, getXulDomContainer, setName, setXulDomContainerMethods 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:
getDatain interfaceorg.pentaho.ui.xul.impl.XulEventHandler- Overrides:
getDatain classorg.pentaho.ui.xul.impl.AbstractXulEventHandler
-
setData
- Specified by:
setDatain interfaceorg.pentaho.ui.xul.impl.XulEventHandler- Overrides:
setDatain classorg.pentaho.ui.xul.impl.AbstractXulEventHandler
-
showMessage
-
setAuthMethodVisibility
public void setAuthMethodVisibility() throws org.pentaho.ui.xul.XulException- Throws:
org.pentaho.ui.xul.XulException
-