java-gnome version 4.0.19

org.gnome.gtk
Class StateType

Object
  extended by org.freedesktop.bindings.Constant
      extended by org.gnome.gtk.StateType

public final class StateType
extends org.freedesktop.bindings.Constant

The current state of a Widget with respect to drawing and theming. Within GTK this is used for sub-elements making up a Widget, and different elements may be in different states. In practise, you only use this for rare occasions when you need to override the defaults for example background colour of a Widget. As this will conflict with the Style settings of the users theme and end up creating inconsistencies in visual appearance on the Desktop, methods using StateType should only be used with deliberate care.

Since:
4.0.5
Author:
Andrew Cowie

Field Summary
static StateType ACTIVE
          A Widget that is currently active.
static StateType INSENSITIVE
          The Widget is not responding to events.
static StateType NORMAL
          The ordinary state of a Widget
static StateType PRELIGHT
          The mouse pointer is currently hovering over the Widget, and the Widget will be responding to mouse clicks.
static StateType SELECTED
          The element is selected.
 
Method Summary
 
Methods inherited from class org.freedesktop.bindings.Constant
toString
 
Methods inherited from class Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

ACTIVE

public static final StateType ACTIVE
A Widget that is currently active. The definition of this will vary from Widget to Widget, but a Button, for example, is active while it is depressed.


INSENSITIVE

public static final StateType INSENSITIVE
The Widget is not responding to events. See setSensitive() on Window for more information about this state.


NORMAL

public static final StateType NORMAL
The ordinary state of a Widget


PRELIGHT

public static final StateType PRELIGHT
The mouse pointer is currently hovering over the Widget, and the Widget will be responding to mouse clicks.


SELECTED

public static final StateType SELECTED
The element is selected. The canonical example is a row in a TreeView which has been selected; most themes show this by doing a form of reverse video, swapping foreground and background colours, etc.



java-gnome