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

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
     
    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
     

    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

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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

      protected String getFragment(org.pentaho.di.core.database.DatabaseInterface database, String dbName, String extension, String defaultFragment)
    • getData

      public Object getData()
      Specified by:
      getData in interface org.pentaho.ui.xul.impl.XulEventHandler
      Overrides:
      getData in class org.pentaho.ui.xul.impl.AbstractXulEventHandler
    • setData

      public void setData(Object arg0)
      Specified by:
      setData in interface org.pentaho.ui.xul.impl.XulEventHandler
      Overrides:
      setData in class org.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