Class CsvInputDialog

    • Constructor Detail

      • CsvInputDialog

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

      • 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.
      • 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