Package org.pushingpixels.substance.api
Class ComponentStateFacet
java.lang.Object
org.pushingpixels.substance.api.ComponentStateFacet
Defies a single facet of core and custom
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.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ComponentStateFacet
Facet that describes the arm bit.static final ComponentStateFacet
Facet that describes the default bit.static final ComponentStateFacet
Facet that describes the determinate bit.static final ComponentStateFacet
Facet that describes the editable bit.static final ComponentStateFacet
Facet that describes the enabled bit.static final ComponentStateFacet
Facet that describes the press bit.static final ComponentStateFacet
Facet that describes the rollover bit.static final ComponentStateFacet
Facet that describes the selection bit. -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
ENABLE
Facet that describes the enabled bit. -
ROLLOVER
Facet that describes the rollover bit. -
SELECTION
Facet that describes the selection bit. -
PRESS
Facet that describes the press bit. -
ARM
Facet that describes the arm bit. This is relevant for menu items. -
DEFAULT
Facet that describes the default bit. This is relevant for buttons which can be set as default with theJRootPane.setDefaultButton(javax.swing.JButton)
API. -
DETERMINATE
Facet that describes the determinate bit. This is relevant forJProgressBar
control and itsJProgressBar.setIndeterminate(boolean)
API. -
EDITABLE
Facet that describes the editable bit. This is relevant forJTextComponent
derived controls and itsJTextComponent.setEditable(boolean)
API.
-
-
Constructor Details
-
ComponentStateFacet
Creates a new facet.- Parameters:
name
- Facet name.value
- Facet value. This is used in the matching algorithm described in the javadocs ofComponentState
. The larger the value, the more importance is given to the specific facet.
-
-
Method Details