org.gnu.gtk
Class CheckButton

java.lang.Object
  |
  +--org.gnu.glib.GObject
        |
        +--org.gnu.gtk.GtkObject
              |
              +--org.gnu.gtk.Widget
                    |
                    +--org.gnu.gtk.Container
                          |
                          +--org.gnu.gtk.Bin
                                |
                                +--org.gnu.gtk.Button
                                      |
                                      +--org.gnu.gtk.ToggleButton
                                            |
                                            +--org.gnu.gtk.CheckButton
Direct Known Subclasses:
RadioButton

public class CheckButton
extends ToggleButton

A CheckButton widget displays a small button with a label next to it. The button can be toggled on or off by the mouse, and will retain its state until it is toggled again.


Constructor Summary
CheckButton()
          Creates a new CheckButton
CheckButton(int handle)
          Construct a check button using a handle to a native resource.
CheckButton(java.lang.String label, boolean hasMnemonic)
          Creates a new Checkbutton with a label.
 
Method Summary
static Type getType()
          Retrieve the runtime type used by the GLib library.
 
Methods inherited from class org.gnu.gtk.ToggleButton
addListener, getEventListenerClass, getEventType, getInconsistent, getState, removeListener, setInconsistent, setState
 
Methods inherited from class org.gnu.gtk.Button
addListener, click, enter, getLabel, getRelief, getUseStock, getUseUnderline, leave, press, release, removeListener, setLabel, setRelief, setUseStock, setUseUnderline
 
Methods inherited from class org.gnu.gtk.Bin
getChild
 
Methods inherited from class org.gnu.gtk.Container
add, addListener, getBorderWidth, getResizeMode, remove, removeListener, resizeChildren, setBorderWidth, setResizeMode
 
Methods inherited from class org.gnu.gtk.Widget
activate, addListener, addListener, addListener, addListener, addListener, addListener, createContext, createLayout, destroy, draw, drawArea, drawArea, getAccessible, getColormap, getContext, getModifierStyle, getName, getParent, getParentWindow, getPointer, getSensitive, getStyle, getToplevel, grabDefault, grabFocus, hasFocus, hide, hideAll, intersect, isAncestor, makeWidget, modifyStyle, popColormap, pushColormap, realize, removeListener, removeListener, removeListener, removeListener, removeListener, removeListener, reparent, setBackgroundColor, setBaseColor, setColormap, setDoubleBuffered, setDragDestination, setDragSource, setFont, setForegroundColor, setMinimumSize, setName, setNoDragDestination, setNoDragSource, setSensitive, setTextColor, shapeCombineMask, show, showAll
 
Methods inherited from class org.gnu.glib.GObject
addEventHandler, addEventHandler, addEventHandler, addEventHandler, addEventHandler, addEventHandler, equals, getData, getHandle, removeEventHandler, setData
 
Methods inherited from class java.lang.Object
getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CheckButton

public CheckButton()
Creates a new CheckButton


CheckButton

public CheckButton(int handle)
Construct a check button using a handle to a native resource.


CheckButton

public CheckButton(java.lang.String label,
                   boolean hasMnemonic)
Creates a new Checkbutton with a label. If hasMnemonic is true, any mnemonic characters in the Label will be interpreted. See the description of the Label class for more details of mnemonic characters.

Parameters:
label - Text to be displayed in a label next to the check box.
Method Detail

getType

public static Type getType()
Retrieve the runtime type used by the GLib library.


Please send any bug reports, comments, or suggestions for the API or documentation to java-gnome-developer@lists.sf.net