Class TextFileInputDialog

    • Field Detail

      • dateLengths

        public static final int[] dateLengths
      • firstClickOnDateLocale

        protected boolean firstClickOnDateLocale
    • Constructor Detail

      • TextFileInputDialog

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

      • open

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

        protected void setLocales()
      • setFlags

        public void setFlags()
      • getData

        public void getData​(org.pentaho.di.trans.steps.fileinput.text.TextFileInputMeta meta)
        Read the data from the TextFileInputMeta object and show it in this dialog.
        Parameters:
        meta - The TextFileInputMeta object to obtain the data from.
      • getData

        public void getData​(org.pentaho.di.trans.steps.fileinput.text.TextFileInputMeta meta,
                            boolean copyStepname,
                            boolean reloadAllFields,
                            Set<String> newFieldNames)
        Specified by:
        getData in interface GetFieldsCapableStepDialog<org.pentaho.di.trans.steps.fileinput.text.TextFileInputMeta>
      • loadFieldsImpl

        public String loadFieldsImpl​(org.pentaho.di.trans.steps.fileinput.text.TextFileInputMeta meta,
                                     int samples)
        Specified by:
        loadFieldsImpl in interface GetFieldsCapableStepDialog<org.pentaho.di.trans.steps.fileinput.text.TextFileInputMeta>
      • getFieldNames

        public String[] getFieldNames​(org.pentaho.di.trans.steps.fileinput.text.TextFileInputMeta 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.fileinput.text.TextFileInputMeta>
        Parameters:
        meta - the GetFieldsCapableStepDialog
        Returns:
        an array of incoming field names, or an empty array, if fields cannot be fetched, for some reason.
      • guessPrecision

        public static int guessPrecision​(double d)
      • guessIntLength

        public static int guessIntLength​(double d)
      • setMinimalWidth

        public void setMinimalWidth()
        Sets the input width to minimal width...
      • setMinimalWidth

        public void setMinimalWidth​(TableView wFields)
        Overloading setMinimalWidth() in order to test trim functionality
        Parameters:
        wFields - mocked TableView to avoid wFields.nrNonEmpty() from throwing NullPointerException
      • 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.fileinput.text.TextFileInputMeta>
        Returns:
        the Shell of this dialog
      • getNewMetaInstance

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

        public void populateMeta​(org.pentaho.di.trans.steps.fileinput.text.TextFileInputMeta inputMeta)
        Specified by:
        populateMeta in interface GetFieldsCapableStepDialog<org.pentaho.di.trans.steps.fileinput.text.TextFileInputMeta>