javax.swing.plaf.synth.SynthConstants |
![]() |
Constants used by Synth. Not all Components support all states. A
Component will at least be in one of the primary states. That is, the
return value from SynthContext.getComponentState()
will at
least be one of ENABLED
, MOUSE_OVER
,
PRESSED
or DISABLED
, and may also contain
FOCUSED
, SELECTED
or DEFAULT
.
Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
int | DEFAULT | Indicates the region is the default. | |||||||||
int | DISABLED | Primary state indicating the region is not enabled. | |||||||||
int | ENABLED | Primary state indicating the component is enabled. | |||||||||
int | FOCUSED | Indicates the region has focus. | |||||||||
int | MOUSE_OVER | Primary state indicating the mouse is over the region. | |||||||||
int | PRESSED | Primary state indicating the region is in a pressed state. | |||||||||
int | SELECTED | Indicates the region is selected. |
Indicates the region is the default. This is typically used for buttons to indicate this button is somehow special.
Primary state indicating the region is not enabled.
Primary state indicating the component is enabled.
Indicates the region has focus.
Primary state indicating the mouse is over the region.
Primary state indicating the region is in a pressed state. Pressed does not necessarily mean the user has pressed the mouse button.
Indicates the region is selected.