Class CSVDataExportDialog

    • Field Detail


        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.
        owner - the dialog owner.
      • CSVDataExportDialog

        public CSVDataExportDialog​(Dialog owner)
        Creates a new CSV export dialog.
        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.
        The file name.
      • setFilename

        public void setFilename​(String filename)
        Sets the export file name.
        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
        full -
      • 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
        config - the report configuration.
      • getSeparatorString

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

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

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

        public void setEncoding​(String encoding)
        Sets the encoding.
        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
        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)