Package org.pushingpixels.substance.api
Class ComponentStateFacet
- java.lang.Object
-
- org.pushingpixels.substance.api.ComponentStateFacet
-
public final class ComponentStateFacet extends Object
Defies a single facet of core and customComponentStates. See Javadocs of theComponentStateclass for more information on state facets.This class is experimental API and is likely to change in the next few releases.
-
-
Field Summary
Fields Modifier and Type Field Description static ComponentStateFacetARMFacet that describes the arm bit.static ComponentStateFacetDEFAULTFacet that describes the default bit.static ComponentStateFacetDETERMINATEFacet that describes the determinate bit.static ComponentStateFacetEDITABLEFacet that describes the editable bit.static ComponentStateFacetENABLEFacet that describes the enabled bit.static ComponentStateFacetPRESSFacet that describes the press bit.static ComponentStateFacetROLLOVERFacet that describes the rollover bit.static ComponentStateFacetSELECTIONFacet that describes the selection bit.
-
Constructor Summary
Constructors Constructor Description ComponentStateFacet(String name, int value)Creates a new facet.
-
-
-
Field Detail
-
ENABLE
public static final ComponentStateFacet ENABLE
Facet that describes the enabled bit.
-
ROLLOVER
public static final ComponentStateFacet ROLLOVER
Facet that describes the rollover bit.
-
SELECTION
public static final ComponentStateFacet SELECTION
Facet that describes the selection bit.
-
PRESS
public static final ComponentStateFacet PRESS
Facet that describes the press bit.
-
ARM
public static final ComponentStateFacet ARM
Facet that describes the arm bit. This is relevant for menu items.
-
DEFAULT
public static final ComponentStateFacet 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
public static final ComponentStateFacet DETERMINATE
Facet that describes the determinate bit. This is relevant forJProgressBarcontrol and itsJProgressBar.setIndeterminate(boolean)API.
-
EDITABLE
public static final ComponentStateFacet EDITABLE
Facet that describes the editable bit. This is relevant forJTextComponentderived controls and itsJTextComponent.setEditable(boolean)API.
-
-
Constructor Detail
-
ComponentStateFacet
public ComponentStateFacet(String name, int value)
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.
-
-