Package gov.nih.mipav.view.dialogs
Enum ExitStatus
- All Implemented Interfaces:
Serializable,Comparable<ExitStatus>,java.lang.constant.Constable
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
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionCancel button pressedGui has yet to exitNo button pressedOk button pressedOk button pressed and listener conditions failedOk button pressed and listener conditions passedYes button pressed -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ExitStatusReturns 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.
-
Enum Constant Details
-
OK_SUCCESS
Ok button pressed and listener conditions passed -
OK_FAIL
Ok button pressed and listener conditions failed -
OK
Ok button pressed -
CANCEL
Cancel button pressed -
YES
Yes button pressed -
NO
No button pressed -
INCOMPLETE
Gui has yet to exit
-
-
Constructor Details
-
ExitStatus
private ExitStatus()
-
-
Method Details
-
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
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 nameNullPointerException- if the argument is null
-