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 SummaryEnum ConstantsEnum 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 SummaryFieldsModifier and TypeFieldDescription- final intThe bit value of the state, or'ed together to make up a specific state.- final StringThe description of the value.
- Method SummaryModifier and TypeMethodDescription- static 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 StylesStatesReturns 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- RTLRight-to-left (0x01).
- DISABLEDisabled (0x02).
- PRESSPressed (0x04).
- SELECTSelected (0x08): selected checkbox, radio button, checked or radio menu item item, switch, plain button, etc.
- FOCUSFocused (0x10).
- HOVERHover (0x20), i.e. mouse hovers over component.
- CAPTURECapture (0x40) means mouse capture. This state may have to go away but remains here for compatibility with Styles of Images.
- READ_ONLYRead-only.
- HYPERLINKHyperlink (0x100). This state is typically used with the Label component.
 
- Field Details- bitValuepublic final int bitValueThe bit value of the state, or'ed together to make up a specific state.
- descriptionThe description of the value.
 
- Method Details- valuesReturns 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
 
- valueOfReturns 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 name
- NullPointerException- if the argument is null
 
- getDescriptionReturns the states descriptive text for a bit mask value.- Parameters:
- mask- The mask value, -1 if undefined.
- Returns:
- The corresponding mask description text.
 
- getDescriptionNoHyperlinkReturns 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.