Enum ExitStatus

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<ExitStatus>

    enum ExitStatus
    extends java.lang.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 Summary

      Enum Constants 
      Enum Constant Description
      CANCEL
      Cancel button pressed
      INCOMPLETE
      Gui has yet to exit
      NO
      No button pressed
      OK
      Ok button pressed
      OK_FAIL
      Ok button pressed and listener conditions failed
      OK_SUCCESS
      Ok button pressed and listener conditions passed
      YES
      Yes button pressed
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private ExitStatus()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static ExitStatus valueOf​(java.lang.String name)
      Returns the enum constant of this type with the specified name.
      static ExitStatus[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      • Methods inherited from class java.lang.Enum

        clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
      • Methods inherited from class java.lang.Object

        getClass, notify, notifyAll, wait, wait, wait
    • Enum Constant Detail

      • 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 Detail

      • ExitStatus

        private ExitStatus()
    • Method Detail

      • values

        public static ExitStatus[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (ExitStatus c : ExitStatus.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static ExitStatus valueOf​(java.lang.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:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.NullPointerException - if the argument is null