Package org.pentaho.di.ui.spoon.trans
Class TransPreviewDelegate
- java.lang.Object
-
- org.pentaho.di.ui.spoon.delegates.SpoonDelegate
-
- org.pentaho.di.ui.spoon.trans.TransPreviewDelegate
-
- All Implemented Interfaces:
org.pentaho.ui.xul.impl.XulEventHandler
public class TransPreviewDelegate extends SpoonDelegate implements org.pentaho.ui.xul.impl.XulEventHandler
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
TransPreviewDelegate.PreviewMode
-
Field Summary
Fields Modifier and Type Field Description protected org.pentaho.di.trans.step.StepMeta
lastSelectedStep
protected Map<org.pentaho.di.trans.step.StepMeta,List<org.pentaho.di.core.RowMetaAndData>>
previewDataMap
protected Map<org.pentaho.di.trans.step.StepMeta,StringBuffer>
previewLogMap
protected Map<org.pentaho.di.trans.step.StepMeta,org.pentaho.di.core.row.RowMetaInterface>
previewMetaMap
-
Fields inherited from class org.pentaho.di.ui.spoon.delegates.SpoonDelegate
log, loggingObject, spoon
-
-
Constructor Summary
Constructors Constructor Description TransPreviewDelegate(Spoon spoon, TransGraph transGraph)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addPreviewData(org.pentaho.di.trans.step.StepMeta stepMeta, org.pentaho.di.core.row.RowMetaInterface rowMeta, List<Object[]> rowsData, StringBuffer buffer)
void
addTransPreview()
Add a grid with the execution metrics per step in a table viewvoid
capturePreviewData(org.pentaho.di.trans.Trans trans, List<org.pentaho.di.trans.step.StepMeta> stepMetas)
void
first()
Object
getData()
String
getName()
Map<org.pentaho.di.trans.step.StepMeta,List<Object[]>>
getPreviewDataMap()
TransPreviewDelegate.PreviewMode
getPreviewMode()
org.pentaho.di.trans.step.StepMeta
getSelectedStep()
org.eclipse.swt.custom.CTabItem
getTransGridTab()
org.pentaho.ui.xul.XulDomContainer
getXulDomContainer()
protected void
hidePreviewGrid()
boolean
isActive()
void
last()
void
off()
void
refreshView()
This refresh is driven by outside influenced using listeners and so on.void
setData(Object data)
void
setName(String name)
void
setPreviewMode(TransPreviewDelegate.PreviewMode previewMode)
void
setSelectedStep(org.pentaho.di.trans.step.StepMeta selectedStep)
void
setXulDomContainer(org.pentaho.ui.xul.XulDomContainer xulDomContainer)
protected void
showLogText(org.pentaho.di.trans.step.StepMeta stepMeta, String loggingText)
protected void
showPreviewGrid(org.pentaho.di.trans.TransMeta transMeta, org.pentaho.di.trans.step.StepMeta stepMeta, org.pentaho.di.core.row.RowMetaInterface rowMeta, List<org.pentaho.di.core.RowMetaAndData> rowsData)
void
showPreviewView()
-
Methods inherited from class org.pentaho.di.ui.spoon.delegates.SpoonDelegate
getMaxTabLength
-
-
-
-
Field Detail
-
previewMetaMap
protected Map<org.pentaho.di.trans.step.StepMeta,org.pentaho.di.core.row.RowMetaInterface> previewMetaMap
-
previewDataMap
protected Map<org.pentaho.di.trans.step.StepMeta,List<org.pentaho.di.core.RowMetaAndData>> previewDataMap
-
previewLogMap
protected Map<org.pentaho.di.trans.step.StepMeta,StringBuffer> previewLogMap
-
lastSelectedStep
protected org.pentaho.di.trans.step.StepMeta lastSelectedStep
-
-
Constructor Detail
-
TransPreviewDelegate
public TransPreviewDelegate(Spoon spoon, TransGraph transGraph)
- Parameters:
spoon
-transGraph
-
-
-
Method Detail
-
showPreviewView
public void showPreviewView()
-
addTransPreview
public void addTransPreview()
Add a grid with the execution metrics per step in a table view
-
refreshView
public void refreshView()
This refresh is driven by outside influenced using listeners and so on.
-
hidePreviewGrid
protected void hidePreviewGrid()
-
showPreviewGrid
protected void showPreviewGrid(org.pentaho.di.trans.TransMeta transMeta, org.pentaho.di.trans.step.StepMeta stepMeta, org.pentaho.di.core.row.RowMetaInterface rowMeta, List<org.pentaho.di.core.RowMetaAndData> rowsData) throws org.pentaho.di.core.exception.KettleException
- Throws:
org.pentaho.di.core.exception.KettleException
-
showLogText
protected void showLogText(org.pentaho.di.trans.step.StepMeta stepMeta, String loggingText)
-
getTransGridTab
public org.eclipse.swt.custom.CTabItem getTransGridTab()
-
getData
public Object getData()
- Specified by:
getData
in interfaceorg.pentaho.ui.xul.impl.XulEventHandler
-
getName
public String getName()
- Specified by:
getName
in interfaceorg.pentaho.ui.xul.impl.XulEventHandler
-
getXulDomContainer
public org.pentaho.ui.xul.XulDomContainer getXulDomContainer()
- Specified by:
getXulDomContainer
in interfaceorg.pentaho.ui.xul.impl.XulEventHandler
-
setData
public void setData(Object data)
- Specified by:
setData
in interfaceorg.pentaho.ui.xul.impl.XulEventHandler
-
setName
public void setName(String name)
- Specified by:
setName
in interfaceorg.pentaho.ui.xul.impl.XulEventHandler
-
setXulDomContainer
public void setXulDomContainer(org.pentaho.ui.xul.XulDomContainer xulDomContainer)
- Specified by:
setXulDomContainer
in interfaceorg.pentaho.ui.xul.impl.XulEventHandler
-
isActive
public boolean isActive()
- Returns:
- the active
-
setPreviewMode
public void setPreviewMode(TransPreviewDelegate.PreviewMode previewMode)
-
capturePreviewData
public void capturePreviewData(org.pentaho.di.trans.Trans trans, List<org.pentaho.di.trans.step.StepMeta> stepMetas)
-
addPreviewData
public void addPreviewData(org.pentaho.di.trans.step.StepMeta stepMeta, org.pentaho.di.core.row.RowMetaInterface rowMeta, List<Object[]> rowsData, StringBuffer buffer)
-
getSelectedStep
public org.pentaho.di.trans.step.StepMeta getSelectedStep()
- Returns:
- the selectedStep
-
setSelectedStep
public void setSelectedStep(org.pentaho.di.trans.step.StepMeta selectedStep)
- Parameters:
selectedStep
- the selectedStep to set
-
getPreviewMode
public TransPreviewDelegate.PreviewMode getPreviewMode()
-
first
public void first()
-
last
public void last()
-
off
public void off()
-
-