Class AbstractPreviewRowsXulDialog

  • All Implemented Interfaces:
    org.pentaho.ui.xul.impl.XulEventHandler, org.pentaho.ui.xul.XulEventSource

    public abstract class AbstractPreviewRowsXulDialog
    extends org.pentaho.ui.xul.impl.AbstractXulEventHandler
    User: gmoran Date: Jan 28, 2013
    • Field Detail

      • parent

        protected Object parent
      • xulDialog

        protected org.pentaho.ui.xul.containers.XulDialog xulDialog
      • bf

        protected org.pentaho.ui.xul.binding.BindingFactory bf
      • log

        protected org.pentaho.di.core.logging.LogChannel log
    • Constructor Detail

      • AbstractPreviewRowsXulDialog

        public AbstractPreviewRowsXulDialog​(Object parent,
                                            org.pentaho.di.trans.step.BaseStepMeta stepMeta,
                                            int maxRows)
    • Method Detail

      • init

        public void init()
      • createPreviewRows

        protected abstract void createPreviewRows​(List<Object[]> data,
                                                  List<String> columns)
        TODO: This method should not be necessary once a XulTable can take bindings for creating xulcolumn definitions at runtime and mapping the data to the columns.
        Parameters:
        data -
        columns -
      • previewStep

        protected void previewStep​(List<Object[]> data,
                                   List<String> columns)
        TODO: This method needs to communicate and control a UI wait status indicator (aka, progress monitor)
        Parameters:
        data -
        columns -
      • initializeXul

        protected abstract void initializeXul()
                                       throws org.pentaho.ui.xul.XulException
        The implementors of this method should call the sibling method initializeXul(XulLoder, BindingFactory, XulRunner, parent) with the desired Xul implementation classes - SWT or Swing.
        Throws:
        org.pentaho.ui.xul.XulException
      • initializeXul

        protected void initializeXul​(org.pentaho.ui.xul.XulLoader loader,
                                     org.pentaho.ui.xul.binding.BindingFactory bindingFactory,
                                     org.pentaho.ui.xul.XulRunner runner,
                                     Object parent)
                              throws org.pentaho.ui.xul.XulException
        Throws:
        org.pentaho.ui.xul.XulException
      • getSettingsManager

        public abstract org.pentaho.ui.xul.XulSettingsManager getSettingsManager()
      • getResourceBundle

        public abstract ResourceBundle getResourceBundle()
      • getBindingFactory

        protected org.pentaho.ui.xul.binding.BindingFactory getBindingFactory()
      • getEventHandlers

        protected List<org.pentaho.ui.xul.impl.XulEventHandler> getEventHandlers()
      • getName

        public String getName()
        Specified by:
        getName in interface org.pentaho.ui.xul.impl.XulEventHandler
        Overrides:
        getName in class org.pentaho.ui.xul.impl.AbstractXulEventHandler
      • close

        public void close()
      • onAccept

        public abstract void onAccept()
      • onCancel

        public abstract void onCancel()
      • getClassForMessages

        protected abstract Class<?> getClassForMessages()
      • dispose

        public abstract void dispose()
      • isBasic

        public boolean isBasic()
      • isDetailed

        public boolean isDetailed()
      • isDebug

        public boolean isDebug()
      • isRowLevel

        public boolean isRowLevel()
      • logMinimal

        public void logMinimal​(String message)
      • logMinimal

        public void logMinimal​(String message,
                               Object... arguments)
      • logBasic

        public void logBasic​(String message)
      • logBasic

        public void logBasic​(String message,
                             Object... arguments)
      • logDetailed

        public void logDetailed​(String message)
      • logDetailed

        public void logDetailed​(String message,
                                Object... arguments)
      • logDebug

        public void logDebug​(String message)
      • logDebug

        public void logDebug​(String message,
                             Object... arguments)
      • logRowlevel

        public void logRowlevel​(String message)
      • logRowlevel

        public void logRowlevel​(String message,
                                Object... arguments)
      • logError

        public void logError​(String message)
      • logError

        public void logError​(String message,
                             Object... arguments)