Top Description Fields
javax.swing.plaf.synth

public Interface SynthConstants

Known Direct Subinterfaces
javax.swing.plaf.synth.SynthUI
Known Direct Implementers
com.sun.java.swing.plaf.gtk.Metacity
Imports
javax.swing.*

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.
Since
1.5

Field Summary

Modifier and TypeField and Description
public static final int
DEFAULT

Indicates the region is the default.

public static final int
DISABLED

Primary state indicating the region is not enabled.

public static final int
ENABLED

Primary state indicating the component is enabled.

public static final int
FOCUSED

Indicates the region has focus.

public static final int
MOUSE_OVER

Primary state indicating the mouse is over the region.

public static final int
PRESSED

Primary state indicating the region is in a pressed state.

public static final int
SELECTED

Indicates the region is selected.

Field Detail

DEFAULTback to summary
public static final int DEFAULT

Indicates the region is the default. This is typically used for buttons to indicate this button is somehow special.

DISABLEDback to summary
public static final int DISABLED

Primary state indicating the region is not enabled.

ENABLEDback to summary
public static final int ENABLED

Primary state indicating the component is enabled.

FOCUSEDback to summary
public static final int FOCUSED

Indicates the region has focus.

MOUSE_OVERback to summary
public static final int MOUSE_OVER

Primary state indicating the mouse is over the region.

PRESSEDback to summary
public static final int PRESSED

Primary state indicating the region is in a pressed state. Pressed does not necessarily mean the user has pressed the mouse button.

SELECTEDback to summary
public static final int SELECTED

Indicates the region is selected.