Package com.iizix.prop
Enum Class StylesStates
- All Implemented Interfaces:
Serializable
,Comparable<StylesStates>
,Constable
The enum for the supported Styles States for UI components.
This enum maps directly onto the image states, except the two last ones "READ_ONLY" and "HYPERLINK".
- Author:
- Christopher Mindus
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
Enum Constant Summary
Enum ConstantDescriptionCapture (0x40) means mouse capture.Disabled (0x02).Focused (0x10).Hover (0x20), i.e.Hyperlink (0x100).Pressed (0x04).Read-only.Right-to-left (0x01).Selected (0x08): selected checkbox, radio button, checked or radio menu item item, switch, plain button, etc.Field Summary
Modifier and TypeFieldDescriptionfinal int
The bit value of the state, or'ed together to make up a specific state.final String
The description of the value.Method Summary
Modifier and TypeMethodDescriptionstatic String
getDescription
(int mask) Returns the states descriptive text for a bit mask value.static String
getDescriptionNoHyperlink
(int mask) Returns the states descriptive text for a bit mask value, including the hyperlink state.static StylesStates
Returns the enum constant of this class with the specified name.static StylesStates[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
Enum Constant Details
RTL
Right-to-left (0x01).DISABLE
Disabled (0x02).PRESS
Pressed (0x04).SELECT
Selected (0x08): selected checkbox, radio button, checked or radio menu item item, switch, plain button, etc.FOCUS
Focused (0x10).HOVER
Hover (0x20), i.e. mouse hovers over component.CAPTURE
Capture (0x40) means mouse capture. This state may have to go away but remains here for compatibility with Styles of Images.READ_ONLY
Read-only.HYPERLINK
Hyperlink (0x100). This state is typically used with the Label component.
Field Details
bitValue
public final int bitValueThe bit value of the state, or'ed together to make up a specific state.description
The description of the value.
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
getDescription
Returns the states descriptive text for a bit mask value.- Parameters:
mask
- The mask value, -1 if undefined.- Returns:
- The corresponding mask description text.
getDescriptionNoHyperlink
Returns the states descriptive text for a bit mask value, including the hyperlink state.- Parameters:
mask
- The mask value, -1 if undefined.- Returns:
- The corresponding mask description text.