Class OutputFormatDialog

    • Field Detail

      • APPROVE_OPTION

        public static final int APPROVE_OPTION
        Signifies an OK property selection.
        See Also:
        Constant Field Values
      • CANCEL_OPTION

        public static final int CANCEL_OPTION
        Signifies a cancelled property selection.
        See Also:
        Constant Field Values
    • Constructor Detail

      • OutputFormatDialog

        public OutputFormatDialog​(Frame parent)
        initializes the dialog with the given parent frame.
        Parameters:
        parent - the parent of this dialog
    • Method Detail

      • setResultMatrix

        public void setResultMatrix​(ResultMatrix matrix)
        Sets the matrix to use as initial selected output format.
        Parameters:
        matrix - the matrix to use as initial selected output format
      • getResultMatrix

        public ResultMatrix getResultMatrix()
        Gets the currently selected output format result matrix.
        Returns:
        the currently selected matrix to use as output
      • getResult

        public int getResult()
        the result from the last display of the dialog, the same is returned from showDialog.
        Returns:
        the result from the last display of the dialog; either APPROVE_OPTION, or CANCEL_OPTION
        See Also:
        showDialog()
      • showDialog

        public int showDialog()
        Pops up the modal dialog and waits for cancel or a selection.
        Returns:
        either APPROVE_OPTION, or CANCEL_OPTION
      • main

        public static void main​(String[] args)
        for testing only.
        Parameters:
        args - ignored