Enum ExitStatus

java.lang.Object
java.lang.Enum<ExitStatus>
gov.nih.mipav.view.dialogs.ExitStatus
All Implemented Interfaces:
Serializable, Comparable<ExitStatus>, java.lang.constant.Constable

enum ExitStatus extends Enum<ExitStatus>
These enumerations are used by the GuiBuilder to indicate the pre-processing results of user entry fields for the user interface. When a user has entered numerical input when required, left no required fields blank, and provided a valid choice for buttons, OK_SUCCESS will generally be returned.
Author:
senseneyj
  • Enum Constant Details

    • OK_SUCCESS

      public static final ExitStatus OK_SUCCESS
      Ok button pressed and listener conditions passed
    • OK_FAIL

      public static final ExitStatus OK_FAIL
      Ok button pressed and listener conditions failed
    • OK

      public static final ExitStatus OK
      Ok button pressed
    • CANCEL

      public static final ExitStatus CANCEL
      Cancel button pressed
    • YES

      public static final ExitStatus YES
      Yes button pressed
    • NO

      public static final ExitStatus NO
      No button pressed
    • INCOMPLETE

      public static final ExitStatus INCOMPLETE
      Gui has yet to exit
  • Constructor Details

    • ExitStatus

      private ExitStatus()
  • Method Details

    • values

      public static ExitStatus[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static ExitStatus valueOf(String name)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum type has no constant with the specified name
      NullPointerException - if the argument is null