Class PlainTextExportDialog

    • Field Detail

      • TYPE_PLAIN_OUTPUT

        public static final int TYPE_PLAIN_OUTPUT
        Plain text output.
        See Also:
        Constant Field Values
      • TYPE_EPSON9_OUTPUT

        public static final int TYPE_EPSON9_OUTPUT
        Epson printer output.
        See Also:
        Constant Field Values
      • TYPE_IBM_OUTPUT

        public static final int TYPE_IBM_OUTPUT
        IBM printer output.
        See Also:
        Constant Field Values
      • TYPE_EPSON24_OUTPUT

        public static final int TYPE_EPSON24_OUTPUT
        Epson printer output.
        See Also:
        Constant Field Values
      • LPI_6

        public static final Float LPI_6
        6 lines per inch.
      • LPI_10

        public static final Float LPI_10
        10 lines per inch.
      • CPI_10

        public static final Float CPI_10
        10 characters per inch.
      • CPI_12

        public static final Float CPI_12
        12 characters per inch.
      • CPI_15

        public static final Float CPI_15
        15 characters per inch.
      • CPI_17

        public static final Float CPI_17
        17 characters per inch.
      • CPI_20

        public static final Float CPI_20
        20 characters per inch.
    • Constructor Detail

      • PlainTextExportDialog

        public PlainTextExportDialog()
        Creates a non-modal dialog without a title and without a specified Frame owner. A shared, hidden frame will be set as the owner of the Dialog.
      • PlainTextExportDialog

        public PlainTextExportDialog​(Frame owner)
        Creates a non-modal dialog without a title with the specified Frame as its owner.
        Parameters:
        owner - the Frame from which the dialog is displayed
      • PlainTextExportDialog

        public PlainTextExportDialog​(Dialog owner)
        Creates a non-modal dialog without a title with the specified Dialog as its owner.
        Parameters:
        owner - the Dialog from which the dialog is displayed
    • Method Detail

      • updateEpson9Encoding

        protected void updateEpson9Encoding()
      • updateEpson24Encoding

        protected void updateEpson24Encoding()
      • setSelectedPrinter

        public void setSelectedPrinter​(int type)
        Sets the selected printer.
        Parameters:
        type - the type.
      • getSelectedPrinter

        public int getSelectedPrinter()
        Returns the selected printer.
        Returns:
        The printer type.
      • getFilename

        public String getFilename()
        Returns the filename.
        Returns:
        the name of the file where to save the file.
      • setFilename

        public void setFilename​(String filename)
        Defines the filename of the file.
        Parameters:
        filename - the filename of the file
      • clear

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

        public float getLinesPerInch()
        Returns the lines-per-inch setting.
        Returns:
        The lines-per-inch setting.
      • setLinesPerInch

        public void setLinesPerInch​(float lpi)
        Sets the lines per inch.
        Parameters:
        lpi - the lines per inch.
      • getCharsPerInch

        public float getCharsPerInch()
        Returns the characters-per-inch setting.
        Returns:
        The characters-per-inch setting.
      • setCharsPerInch

        public void setCharsPerInch​(float cpi)
        Sets the characters per inch.
        Parameters:
        cpi - the characters per inch.
      • getEncoding

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

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

        protected void setDialogContents​(org.pentaho.reporting.libraries.base.config.Configuration config)
        Specified by:
        setDialogContents in class AbstractExportDialog
      • grabDialogContents

        protected org.pentaho.reporting.libraries.base.config.Configuration grabDialogContents​(boolean full)
        Stores the input from the dialog into the report configuration of the report.
        Specified by:
        grabDialogContents in class AbstractExportDialog
        Returns:
      • performValidate

        public 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
      • getSelected9PinPrinterModel

        public String getSelected9PinPrinterModel()
        Warning: Might return null!
        Returns:
      • getSelected24PinPrinterModel

        public String getSelected24PinPrinterModel()
      • setSelected9PinPrinterModel

        public void setSelected9PinPrinterModel​(String selectedPrinterModel)
      • setSelected24PinPrinterModel

        public void setSelected24PinPrinterModel​(String selectedPrinterModel)