Enum Class CloseOperation
- All Implemented Interfaces:
Serializable
,Comparable<CloseOperation>
,Constable
Close Operation represents what to do on closure of a frame/window.
- Version:
- Alpha v.0.3.3
- Author:
- Logan Ferree (Tadukoo)
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionDisposes of the frame/window when closedDo nothing when the frame/window is closedExits the program when the frame/window is closedHide the frame/window when closed -
Field Summary
Modifier and TypeFieldDescriptionprivate final int
The int value used to represent the close operation -
Constructor Summary
ModifierConstructorDescriptionprivate
CloseOperation
(int value) Constructs a new close operation with the given value -
Method Summary
Modifier and TypeMethodDescriptionint
getValue()
static CloseOperation
Returns the enum constant of this class with the specified name.static CloseOperation[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
DO_NOTHING_ON_CLOSE
Do nothing when the frame/window is closed -
HIDE_ON_CLOSE
Hide the frame/window when closed -
DISPOSE_ON_CLOSE
Disposes of the frame/window when closed -
EXIT_ON_CLOSE
Exits the program when the frame/window is closed
-
-
Field Details
-
value
private final int valueThe int value used to represent the close operation
-
-
Constructor Details
-
CloseOperation
private CloseOperation(int value) Constructs a new close operation with the given value- Parameters:
value
- The int value used to represent the close operation
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException
- if the argument is null
-
getValue
public int getValue()- Returns:
- The int value used to represent the close operation
-