Class AbstractPreviewRowsXulDialog
- java.lang.Object
-
- org.pentaho.ui.xul.XulEventSourceAdapter
-
- org.pentaho.ui.xul.impl.AbstractXulEventHandler
-
- org.pentaho.di.ui.xul.common.preview.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.AbstractXulEventHandlerUser: gmoran Date: Jan 28, 2013
-
-
Field Summary
Fields Modifier and Type Field Description protected org.pentaho.ui.xul.binding.BindingFactorybfprotected org.pentaho.di.core.logging.LogChannellogprotected Objectparentprotected org.pentaho.ui.xul.containers.XulDialogxulDialog
-
Constructor Summary
Constructors Constructor Description AbstractPreviewRowsXulDialog(Object parent, org.pentaho.di.trans.step.BaseStepMeta stepMeta, int maxRows)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description voidclose()protected abstract voidcreatePreviewRows(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.abstract voiddispose()protected org.pentaho.ui.xul.binding.BindingFactorygetBindingFactory()protected abstract Class<?>getClassForMessages()protected List<org.pentaho.ui.xul.impl.XulEventHandler>getEventHandlers()StringgetName()abstract ResourceBundlegetResourceBundle()abstract org.pentaho.ui.xul.XulSettingsManagergetSettingsManager()voidinit()protected abstract voidinitializeXul()The implementors of this method should call the sibling method initializeXul(XulLoder, BindingFactory, XulRunner, parent) with the desired Xul implementation classes - SWT or Swing.protected voidinitializeXul(org.pentaho.ui.xul.XulLoader loader, org.pentaho.ui.xul.binding.BindingFactory bindingFactory, org.pentaho.ui.xul.XulRunner runner, Object parent)booleanisBasic()booleanisDebug()booleanisDetailed()booleanisRowLevel()voidlogBasic(String message)voidlogBasic(String message, Object... arguments)voidlogDebug(String message)voidlogDebug(String message, Object... arguments)voidlogDetailed(String message)voidlogDetailed(String message, Object... arguments)voidlogError(String message)voidlogError(String message, Object... arguments)voidlogError(String message, Throwable e)voidlogMinimal(String message)voidlogMinimal(String message, Object... arguments)voidlogRowlevel(String message)voidlogRowlevel(String message, Object... arguments)abstract voidonAccept()abstract voidonCancel()Stringopen()protected voidpreviewStep(List<Object[]> data, List<String> columns)TODO: This method needs to communicate and control a UI wait status indicator (aka, progress monitor)-
Methods inherited from class org.pentaho.ui.xul.impl.AbstractXulEventHandler
bind, bind, getData, getXulDomContainer, setData, setName, setXulDomContainer
-
-
-
-
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.XulExceptionThe 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:
getNamein interfaceorg.pentaho.ui.xul.impl.XulEventHandler- Overrides:
getNamein classorg.pentaho.ui.xul.impl.AbstractXulEventHandler
-
open
public String open()
-
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)
-
logBasic
public void logBasic(String message)
-
logDetailed
public void logDetailed(String message)
-
logDebug
public void logDebug(String message)
-
logRowlevel
public void logRowlevel(String message)
-
logError
public void logError(String message)
-
-