org.gnu.gtk
Class CheckMenuItem
public class CheckMenuItem
The CheckMenuItem is a menu item that maintains the state of a boolean value
in addition to the MenuItem's usual role of activating application code.
A check box indicating the state of boolean value is displayed on the left
side of the MenuItem. Activating the MenuItem toggles this value.
CheckMenuItem() - Create a new CheckMenuItem
|
CheckMenuItem(Handle handle) - Construct a CheckMenuItem using a handle to a native resource.
|
CheckMenuItem(String label, boolean hasMnemonic) - Create a new CheckMenuItem with the given label.
|
addListener , emitActivate , emitDeselect , getEventListenerClass , getEventType , getMenuItem , getType , removeListener , removeSubmenu , setLeftJustified , setRightJustified , setSubmenu |
add , addListener , getBorderWidth , getChildren , getEventListenerClass , getEventType , getResizeMode , getType , remove , removeListener , resizeChildren , setBorderWidth , setResizeMode |
activate , addAccelerator , addEvents , addListener , addListener , addListener , addListener , addListener , addListener , addListener , addListener , addListener , addListener , addListener , canActivateAccel , createContext , createLayout , draw , drawArea , drawArea , finish , getAccessible , getAllocation , getColormap , getContext , getData , getDisplay , getDragData , getEventListenerClass , getEventType , getExtensionEvents , getModifierStyle , getName , getParent , getParentWindow , getPointer , getRootWindow , getScreen , getSensitive , getStyle , getToplevel , getType , getWidget , getWindow , grabDefault , grabFocus , hasFocus , hasScreen , hide , hideAll , highlight , highlight , intersect , isAncestor , makeWidget , modifyStyle , popColormap , pushColormap , realize , removeAccelerator , removeListener , removeListener , removeListener , removeListener , removeListener , removeListener , removeListener , removeListener , removeListener , removeListener , removeListener , reparent , setBackgroundColor , setBaseColor , setColormap , setDoubleBuffered , setDragDestination , setDragIcon , setDragIconPixbuf , setDragIconStock , setDragSource , setEvents , setExtensionEvents , setFont , setForegroundColor , setMinimumSize , setName , setNoDragDestination , setNoDragSource , setSensitive , setTextColor , shapeCombineMask , show , showAll , unHighlight , unHighlight |
addEventHandler , addEventHandler , addEventHandler , addEventHandler , addEventHandler , addEventHandler , addEventHandler , addListener , collect , freezeNotify , getBooleanProperty , getData , getDoubleProperty , getEventListenerClass , getEventType , getFloatProperty , getGObjectFromHandle , getIntProperty , getJavaObjectProperty , getLongProperty , getPixbufProperty , getProperty , getStringProperty , hasProperty , notify , removeEventHandler , removeListener , setBooleanProperty , setData , setDoubleProperty , setFloatProperty , setIntProperty , setJavaObjectProperty , setLongProperty , setPixbufProperty , setProperty , setStringProperty , thawNotify |
CheckMenuItem
public CheckMenuItem()
Create a new CheckMenuItem
CheckMenuItem
public CheckMenuItem(Handle handle)
Construct a CheckMenuItem using a handle to a native resource.
CheckMenuItem
public CheckMenuItem(String label,
boolean hasMnemonic)
Create a new CheckMenuItem with the given label.
label
- The label to display for this CheckMenuItem.
addListener
public void addListener(CheckMenuItemListener listener)
Register an object to handle dialog events.
getActive
public boolean getActive()
Returns whether the CheckMenuItem is active.
- true if the check box is active.
getCheckMenuItem
public static CheckMenuItem getCheckMenuItem(Handle handle)
Internal static factory method to be used by Java-Gnome only.
getDrawAsRadio
public boolean getDrawAsRadio()
Gets whether the CheckMenuItem will be drawn as a radio control.
getInconsistent
public boolean getInconsistent()
Returns whether the CheckMenuItem is in the "inconsistent" state.
- true if the check box is inconsistent.
getType
public static Type getType()
Retrieve the runtime type used by the GLib library.
- getType in interface MenuItem
setActive
public void setActive(boolean isActive)
Sets the active state of the CheckMenuItem's check box.
isActive
- true if the check box is checked.
setDrawAsRadio
public void setDrawAsRadio(boolean drawAsRadio)
Sets whether the CheckMenuItem should be drawn as a radio control
setInconsistent
public void setInconsistent(boolean isInconsistent)
This method will turn on a third state that indicates that the widget is
in an inconsistent state.
isInconsistent
- true to display an "inconsistent" third state.