Package gov.nih.mipav.view.dialogs
Enum ExitStatus
- java.lang.Object
-
- java.lang.Enum<ExitStatus>
-
- gov.nih.mipav.view.dialogs.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 pressedINCOMPLETE
Gui has yet to exitNO
No button pressedOK
Ok button pressedOK_FAIL
Ok button pressed and listener conditions failedOK_SUCCESS
Ok button pressed and listener conditions passedYES
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.
-
-
-
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
-
-
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 namejava.lang.NullPointerException
- if the argument is null
-
-