Class 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 Detail

      • FragmentHandler

        public FragmentHandler()
    • 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 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