Class CSVTableExportDialog

    • Field Detail

      • CSV_OUTPUT_ENCODING_DEFAULT

        public static final String CSV_OUTPUT_ENCODING_DEFAULT
        A default value of the 'CSV encoding' property key.
    • Constructor Detail

      • CSVTableExportDialog

        public CSVTableExportDialog​(Frame owner)
        Creates a new CSV export dialog.
        Parameters:
        owner - the dialog owner.
      • CSVTableExportDialog

        public CSVTableExportDialog​(Dialog owner)
        Creates a new CSV export dialog.
        Parameters:
        owner - the dialog owner.
      • CSVTableExportDialog

        public CSVTableExportDialog()
        Creates a new CSV export dialog. The created dialog is modal.
    • Method Detail

      • getFilename

        public String getFilename()
        Returns the export file name.
        Returns:
        The file name.
      • setFilename

        public void setFilename​(String filename)
        Sets the export file name.
        Parameters:
        filename - the file name.
      • clear

        public void clear()
        Clears all selections, input fields and sets the selected encryption level to none.
        Specified by:
        clear in class AbstractExportDialog
      • grabDialogContents

        protected org.pentaho.reporting.libraries.base.config.Configuration grabDialogContents​(boolean full)
        Returns a new (and not connected to the default config from the job) configuration containing all properties from the dialog.
        Specified by:
        grabDialogContents in class AbstractExportDialog
        Parameters:
        full -
        Returns:
      • setDialogContents

        protected void setDialogContents​(org.pentaho.reporting.libraries.base.config.Configuration config)
        Initialises the CSV export dialog from the settings in the report configuration.
        Specified by:
        setDialogContents in class AbstractExportDialog
        Parameters:
        config - the report configuration.
      • getSeparatorString

        public String getSeparatorString()
        Returns the separator string, which is controlled by the selection of radio buttons.
        Returns:
        The separator string.
      • setSeparatorString

        public void setSeparatorString​(String s)
        Sets the separator string.
        Parameters:
        s - the separator.
      • getEncoding

        public String getEncoding()
        Returns the encoding.
        Returns:
        The encoding.
      • setEncoding

        public void setEncoding​(String encoding)
        Sets the encoding.
        Parameters:
        encoding - the encoding.
      • performSelectFile

        protected void performSelectFile()
        Selects a file to use as target for the report processing.
      • performValidate

        protected boolean performValidate()
        Validates the contents of the dialog's input fields. If the selected file exists, it is also checked for validity.
        Specified by:
        performValidate in class AbstractExportDialog
        Returns:
        true if the input is valid, false otherwise
      • performSeparatorSelection

        protected void performSeparatorSelection()
        Enables or disables the 'other' separator text field.
      • isStrictLayout

        public boolean isStrictLayout()
        Returns the current setting of the 'strict layout' combo-box.
        Returns:
        A boolean.
      • setStrictLayout

        public void setStrictLayout​(boolean strictLayout)
        Sets the 'strict layout' combo-box setting.
        Parameters:
        strictLayout - the new setting.