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