Class TransPreviewDelegate

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

    public class TransPreviewDelegate
    extends SpoonDelegate
    implements org.pentaho.ui.xul.impl.XulEventHandler
    • 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 interface org.pentaho.ui.xul.impl.XulEventHandler
      • getName

        public String getName()
        Specified by:
        getName in interface org.pentaho.ui.xul.impl.XulEventHandler
      • getXulDomContainer

        public org.pentaho.ui.xul.XulDomContainer getXulDomContainer()
        Specified by:
        getXulDomContainer in interface org.pentaho.ui.xul.impl.XulEventHandler
      • setData

        public void setData​(Object data)
        Specified by:
        setData in interface org.pentaho.ui.xul.impl.XulEventHandler
      • setName

        public void setName​(String name)
        Specified by:
        setName in interface org.pentaho.ui.xul.impl.XulEventHandler
      • setXulDomContainer

        public void setXulDomContainer​(org.pentaho.ui.xul.XulDomContainer xulDomContainer)
        Specified by:
        setXulDomContainer in interface org.pentaho.ui.xul.impl.XulEventHandler
      • isActive

        public boolean isActive()
        Returns:
        the active
      • 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
      • first

        public void first()
      • last

        public void last()
      • off

        public void off()
      • getPreviewDataMap

        public Map<org.pentaho.di.trans.step.StepMeta,​List<Object[]>> getPreviewDataMap()