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.AbstractXulEventHandler
User: gmoran Date: Jan 28, 2013
-
-
Field Summary
Fields Modifier and Type Field Description protected org.pentaho.ui.xul.binding.BindingFactory
bf
protected org.pentaho.di.core.logging.LogChannel
log
protected Object
parent
protected org.pentaho.ui.xul.containers.XulDialog
xulDialog
-
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 void
close()
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.abstract void
dispose()
protected org.pentaho.ui.xul.binding.BindingFactory
getBindingFactory()
protected abstract Class<?>
getClassForMessages()
protected List<org.pentaho.ui.xul.impl.XulEventHandler>
getEventHandlers()
String
getName()
abstract ResourceBundle
getResourceBundle()
abstract org.pentaho.ui.xul.XulSettingsManager
getSettingsManager()
void
init()
protected abstract void
initializeXul()
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 void
initializeXul(org.pentaho.ui.xul.XulLoader loader, org.pentaho.ui.xul.binding.BindingFactory bindingFactory, org.pentaho.ui.xul.XulRunner runner, Object parent)
boolean
isBasic()
boolean
isDebug()
boolean
isDetailed()
boolean
isRowLevel()
void
logBasic(String message)
void
logBasic(String message, Object... arguments)
void
logDebug(String message)
void
logDebug(String message, Object... arguments)
void
logDetailed(String message)
void
logDetailed(String message, Object... arguments)
void
logError(String message)
void
logError(String message, Object... arguments)
void
logError(String message, Throwable e)
void
logMinimal(String message)
void
logMinimal(String message, Object... arguments)
void
logRowlevel(String message)
void
logRowlevel(String message, Object... arguments)
abstract void
onAccept()
abstract void
onCancel()
String
open()
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)-
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.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 interfaceorg.pentaho.ui.xul.impl.XulEventHandler
- Overrides:
getName
in 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)
-
-