|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<ComponentState>
org.jvnet.substance.ComponentState
public enum ComponentState
This enum is used in order to provide uniform transition effects on mouse
events. The effects include different visual appearance of the corresponding
control when the mouse hovers over it (rollover), when it's pressed or
selected, disabled etc.
Each enum value represents a single state and contains information that is
used by the UI delegates in order to correctly paint the corresponding
controls.
Nested Class Summary | |
---|---|
static class |
ComponentState.ColorSchemeKind
Enum for color scheme kind. |
Enum Constant Summary | |
---|---|
ACTIVE
Active. |
|
DEFAULT
Default state. |
|
DISABLED_ACTIVE
Disabled active. |
|
DISABLED_SELECTED
Disabled selected. |
|
DISABLED_UNSELECTED
Disabled and not selected. |
|
PRESSED_SELECTED
Pressed selected. |
|
PRESSED_UNSELECTED
Pressed and not selected. |
|
ROLLOVER_SELECTED
Selected and rolled over. |
|
ROLLOVER_UNSELECTED
Not selected and rolled over. |
|
SELECTED
Selected. |
Method Summary | |
---|---|
ComponentState.ColorSchemeKind |
getColorSchemeKind()
Returns the corresponding color scheme kind |
int |
getCycleCount()
Returns the corresponding cycle count. |
static ComponentState |
getState(ButtonModel model,
AbstractButton button)
Retrieves component state based on the button model (required parameter) and button itself (optional parameter). |
boolean |
isEnabled()
Returns the indication of whether a component with this
state is enabled. |
boolean |
isSelected()
Returns the indication of whether a component with this
state is selected. |
static ComponentState |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static ComponentState[] |
values()
Returns an array containing the constants of this enum type, in the order they're declared. |
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final ComponentState DISABLED_ACTIVE
default
.
public static final ComponentState ACTIVE
default
.
public static final ComponentState DISABLED_SELECTED
public static final ComponentState DISABLED_UNSELECTED
public static final ComponentState PRESSED_SELECTED
public static final ComponentState PRESSED_UNSELECTED
public static final ComponentState SELECTED
public static final ComponentState ROLLOVER_SELECTED
public static final ComponentState ROLLOVER_UNSELECTED
public static final ComponentState DEFAULT
Method Detail |
---|
public static final ComponentState[] values()
for(ComponentState c : ComponentState.values()) System.out.println(c);
public static ComponentState valueOf(String name)
name
- the name of the enum constant to be returned.
IllegalArgumentException
- if this enum type has no constant
with the specified namepublic ComponentState.ColorSchemeKind getColorSchemeKind()
public int getCycleCount()
public boolean isEnabled()
this
state is enabled.
this
state
is enabled.public boolean isSelected()
this
state is selected.
this
state
is selected.public static ComponentState getState(ButtonModel model, AbstractButton button)
model
- Button model (required).button
- Button (optional).
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |