Package model
Enum confirmationCodes
- java.lang.Object
-
- java.lang.Enum<confirmationCodes>
-
- model.confirmationCodes
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<confirmationCodes>
public enum confirmationCodes extends java.lang.Enum<confirmationCodes>
Enumerations that represent valid confirmation codes. Used to display confirmation dialogues during runtime. 1. CANCELWARN - cancel & return to main menu 2. REMOVEPART - remove part confirmation 3. REMOVEPRODUCT - remove product confirmation 4. ENDPROGRAM - are you sure you want to exit? 5. CLEARITEMS - are you sure you want to clear all of the text fields?
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CANCELWARN
CLEARITEMS
ENDPROGRAM
REMOVEPART
REMOVEPRODUCT
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static confirmationCodes
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static confirmationCodes[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
CANCELWARN
public static final confirmationCodes CANCELWARN
-
REMOVEPART
public static final confirmationCodes REMOVEPART
-
REMOVEPRODUCT
public static final confirmationCodes REMOVEPRODUCT
-
ENDPROGRAM
public static final confirmationCodes ENDPROGRAM
-
CLEARITEMS
public static final confirmationCodes CLEARITEMS
-
-
Method Detail
-
values
public static confirmationCodes[] 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 (confirmationCodes c : confirmationCodes.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static confirmationCodes 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
-
-