Class CSVDataExportDialog

    • 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

      • CSVDataExportDialog

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

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

        public CSVDataExportDialog()
        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.
      • isColumnNamesAsFirstRow

        public boolean isColumnNamesAsFirstRow()
      • setColumnNamesAsFirstRow

        public void setColumnNamesAsFirstRow​(boolean colsAsFirstRow)
      • isWriteStateColumns

        public boolean isWriteStateColumns()
      • setWriteStateColumns

        public void setWriteStateColumns​(boolean writeStateColumns)
      • isEnableGroupFooter

        public boolean isEnableGroupFooter()
      • setEnableGroupFooter

        public void setEnableGroupFooter​(boolean enableGroupFooter)
      • isEnableGroupHeader

        public boolean isEnableGroupHeader()
      • setEnableGroupHeader

        public void setEnableGroupHeader​(boolean enableGroupHeader)
      • isEnableItembands

        public boolean isEnableItembands()
      • setEnableItembands

        public void setEnableItembands​(boolean enableItembands)
      • isEnableReportFooter

        public boolean isEnableReportFooter()
      • setEnableReportFooter

        public void setEnableReportFooter​(boolean enableReportFooter)
      • isEnableReportHeader

        public boolean isEnableReportHeader()
      • setEnableReportHeader

        public void setEnableReportHeader​(boolean enableReportHeader)