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
-
-
Constructor Summary
Constructors Constructor Description FragmentHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Object
getData()
protected String
getFragment(org.pentaho.di.core.database.DatabaseInterface database, String dbName, String extension, String defaultFragment)
protected void
loadDatabaseOptionsFragment(String fragmentUri)
void
refreshOptions()
This method handles the resource-like loading of the XUL fragment definitions based on connection type and access method.void
setAuthMethodVisibility()
void
setData(Object arg0)
protected void
showMessage(String message)
-
Methods inherited from class org.pentaho.ui.xul.impl.AbstractXulEventHandler
bind, bind, getName, getXulDomContainer, setName, setXulDomContainer
-
-
-
-
Method Detail
-
loadDatabaseOptionsFragment
protected void loadDatabaseOptionsFragment(String fragmentUri) 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
protected String getFragment(org.pentaho.di.core.database.DatabaseInterface database, String dbName, String extension, String defaultFragment)
-
getData
public Object getData()
- Specified by:
getData
in interfaceorg.pentaho.ui.xul.impl.XulEventHandler
- Overrides:
getData
in classorg.pentaho.ui.xul.impl.AbstractXulEventHandler
-
setData
public void setData(Object arg0)
- Specified by:
setData
in interfaceorg.pentaho.ui.xul.impl.XulEventHandler
- Overrides:
setData
in classorg.pentaho.ui.xul.impl.AbstractXulEventHandler
-
showMessage
protected void showMessage(String message)
-
setAuthMethodVisibility
public void setAuthMethodVisibility() throws org.pentaho.ui.xul.XulException
- Throws:
org.pentaho.ui.xul.XulException
-
-