Class OutputFormatDialog

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible, RootPaneContainer, WindowConstants

public class OutputFormatDialog extends JDialog
A dialog for setting various output format parameters.
Version:
$Revision: 14291 $
Author:
FracPete (fracpete at waikato dot ac dot nz)
See Also:
  • Field Details

    • APPROVE_OPTION

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

      public static final int CANCEL_OPTION
      Signifies a cancelled property selection.
      See Also:
  • Constructor Details

    • OutputFormatDialog

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

    • 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

      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