Class CsvInputDialog

java.lang.Object
org.eclipse.swt.widgets.Dialog
org.pentaho.di.ui.trans.step.BaseStepDialog
org.pentaho.di.ui.trans.steps.csvinput.CsvInputDialog
All Implemented Interfaces:
org.pentaho.di.trans.step.StepDialogInterface, CsvInputAwareStepDialog, GetFieldsCapableStepDialog<org.pentaho.di.trans.steps.csvinput.CsvInputMeta>

public class CsvInputDialog extends BaseStepDialog implements org.pentaho.di.trans.step.StepDialogInterface, GetFieldsCapableStepDialog<org.pentaho.di.trans.steps.csvinput.CsvInputMeta>, CsvInputAwareStepDialog
  • Constructor Details

    • CsvInputDialog

      public CsvInputDialog(org.eclipse.swt.widgets.Shell parent, Object in, org.pentaho.di.trans.TransMeta tr, String sname)
  • Method Details

    • open

      public String open()
      Specified by:
      open in interface org.pentaho.di.trans.step.StepDialogInterface
    • setFlags

      protected void setFlags()
    • getNewMetaInstance

      public org.pentaho.di.trans.steps.csvinput.CsvInputMeta getNewMetaInstance()
      Specified by:
      getNewMetaInstance in interface GetFieldsCapableStepDialog<org.pentaho.di.trans.steps.csvinput.CsvInputMeta>
    • populateMeta

      public void populateMeta(org.pentaho.di.trans.steps.csvinput.CsvInputMeta inputMeta)
      Specified by:
      populateMeta in interface GetFieldsCapableStepDialog<org.pentaho.di.trans.steps.csvinput.CsvInputMeta>
    • getData

      public void getData()
    • getData

      public void getData(org.pentaho.di.trans.steps.csvinput.CsvInputMeta inputMeta, boolean copyStepname)
      Copy information from the meta-data input to the dialog fields.
    • getData

      public void getData(org.pentaho.di.trans.steps.csvinput.CsvInputMeta inputMeta, boolean copyStepname, boolean reloadAllFields, Set<String> newFieldNames)
      Specified by:
      getData in interface GetFieldsCapableStepDialog<org.pentaho.di.trans.steps.csvinput.CsvInputMeta>
    • getFieldNames

      public String[] getFieldNames(org.pentaho.di.trans.steps.csvinput.CsvInputMeta meta)
      Description copied from interface: GetFieldsCapableStepDialog
      Returns an array of incoming field names, or an empty array, if fields cannot be fetched, for some reason.
      Specified by:
      getFieldNames in interface GetFieldsCapableStepDialog<org.pentaho.di.trans.steps.csvinput.CsvInputMeta>
      Parameters:
      meta - the GetFieldsCapableStepDialog
      Returns:
      an array of incoming field names, or an empty array, if fields cannot be fetched, for some reason.
    • getFieldsTable

      public TableView getFieldsTable()
      Specified by:
      getFieldsTable in interface GetFieldsCapableStepDialog<org.pentaho.di.trans.steps.csvinput.CsvInputMeta>
      Returns:
      the TableView containing step fields
    • loadFieldsImpl

      public String loadFieldsImpl(org.pentaho.di.trans.steps.csvinput.CsvInputMeta meta, int samples)
      Specified by:
      loadFieldsImpl in interface GetFieldsCapableStepDialog<org.pentaho.di.trans.steps.csvinput.CsvInputMeta>
    • updatePreview

      protected void updatePreview()
      Load metadata from step window
    • asyncUpdatePreview

      protected void asyncUpdatePreview()
    • getShell

      public org.eclipse.swt.widgets.Shell getShell()
      Description copied from interface: GetFieldsCapableStepDialog
      Returns the Shell of this dialog.
      Specified by:
      getShell in interface GetFieldsCapableStepDialog<org.pentaho.di.trans.steps.csvinput.CsvInputMeta>
      Returns:
      the Shell of this dialog
    • getCsvImportProgressDialog

      public CsvInputAwareImportProgressDialog getCsvImportProgressDialog(org.pentaho.di.trans.steps.common.CsvInputAwareMeta meta, int samples, InputStreamReader reader)
      Specified by:
      getCsvImportProgressDialog in interface CsvInputAwareStepDialog
    • getLogChannel

      public org.pentaho.di.core.logging.LogChannel getLogChannel()
      Specified by:
      getLogChannel in interface CsvInputAwareStepDialog
    • getTransMeta

      public org.pentaho.di.trans.TransMeta getTransMeta()
      Specified by:
      getTransMeta in interface CsvInputAwareStepDialog
      Specified by:
      getTransMeta in interface GetFieldsCapableStepDialog<org.pentaho.di.trans.steps.csvinput.CsvInputMeta>
    • getInputStream

      public InputStream getInputStream(org.pentaho.di.trans.steps.common.CsvInputAwareMeta meta)
      Description copied from interface: CsvInputAwareStepDialog
      Returns the InputStream corresponding to the csv file, or null if the file cannot be read.
      Specified by:
      getInputStream in interface CsvInputAwareStepDialog
      Returns:
      the InputStream corresponding to the csv file, or null if the file cannot be read