- All Implemented Interfaces:
Serializable
,Comparable<LeftRightButton.BUTTON_STATE>
,Constable
- Enclosing class:
LeftRightButton
The state of the button
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionIndicates that we are at the beginning of a setIndicates that we are at the end of setIndicates that we are at a set boundary but can go backIndicates that we are at a boundary but can go forwardIndicates that we can go backIndicates that we can go forward -
Method Summary
Modifier and TypeMethodDescriptionstatic LeftRightButton.BUTTON_STATE
Returns the enum constant of this class with the specified name.static LeftRightButton.BUTTON_STATE[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
BEGINNING
Indicates that we are at the beginning of a set -
HAS_LEFT
Indicates that we are at a set boundary but can go back -
HAS_PREVIOUS
Indicates that we can go back -
HAS_RIGHT
Indicates that we can go forward -
HAS_NEXT
Indicates that we are at a boundary but can go forward -
END
Indicates that we are at the end of set
-
-
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
-