public final class ComponentStateFacet
extends java.lang.Object
ComponentState
s. See
Javadocs of the ComponentState
class for more information on state
facets.
This class is experimental API and is likely to change in the next few releases.
Modifier and Type | Field and Description |
---|---|
static ComponentStateFacet |
ARM
Facet that describes the arm bit.
|
static ComponentStateFacet |
DEFAULT
Facet that describes the default bit.
|
static ComponentStateFacet |
DETERMINATE
Facet that describes the determinate bit.
|
static ComponentStateFacet |
EDITABLE
Facet that describes the editable bit.
|
static ComponentStateFacet |
ENABLE
Facet that describes the enabled bit.
|
static ComponentStateFacet |
PRESS
Facet that describes the press bit.
|
static ComponentStateFacet |
ROLLOVER
Facet that describes the rollover bit.
|
static ComponentStateFacet |
SELECTION
Facet that describes the selection bit.
|
Constructor and Description |
---|
ComponentStateFacet(java.lang.String name,
int value)
Creates a new facet.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
toString() |
public static final ComponentStateFacet ENABLE
public static final ComponentStateFacet ROLLOVER
public static final ComponentStateFacet SELECTION
public static final ComponentStateFacet PRESS
public static final ComponentStateFacet ARM
public static final ComponentStateFacet DEFAULT
JRootPane.setDefaultButton(javax.swing.JButton)
API.public static final ComponentStateFacet DETERMINATE
JProgressBar
control and its
JProgressBar.setIndeterminate(boolean)
API.public static final ComponentStateFacet EDITABLE
JTextComponent
derived controls and its
JTextComponent.setEditable(boolean)
API.public ComponentStateFacet(java.lang.String name, int value)
name
- Facet name.value
- Facet value. This is used in the matching algorithm described
in the javadocs of ComponentState
. The larger the
value, the more importance is given to the specific facet.