The CheckMenuItem is a menu item that maintains the state of a boolean
value in addition to the MenuItem's usual role of activating applicaiton
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.
getActive
public boolean getActive()
Returns whether the CheckMenuItem is active.
- true if the check box is active.
getDrawAsRadio
public boolean getDrawAsRadio()
Gets whether the CheckMenuItem will be drawn as a radio control.
getEventListenerClass
public Class getEventListenerClass(String signal)
- getEventListenerClass in interface MenuItem
getEventType
public EventType getEventType(String signal)
- getEventType in interface MenuItem
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
gtk_check_menu_item_get_active
protected static final boolean gtk_check_menu_item_get_active(Handle check_menu_item)
gtk_check_menu_item_get_draw_as_radio
protected static final boolean gtk_check_menu_item_get_draw_as_radio(Handle cmenu)
gtk_check_menu_item_get_inconsistent
protected static final boolean gtk_check_menu_item_get_inconsistent(Handle check_menu_item)
gtk_check_menu_item_get_type
protected static final int gtk_check_menu_item_get_type()
gtk_check_menu_item_new
protected static final Handle gtk_check_menu_item_new()
gtk_check_menu_item_new_with_label
protected static final Handle gtk_check_menu_item_new_with_label(String label)
gtk_check_menu_item_new_with_mnemonic
protected static final Handle gtk_check_menu_item_new_with_mnemonic(String label)
gtk_check_menu_item_set_active
protected static final void gtk_check_menu_item_set_active(Handle check_menu_item,
boolean isActive)
gtk_check_menu_item_set_draw_as_radio
protected static final void gtk_check_menu_item_set_draw_as_radio(Handle cmenu,
boolean asRadio)
gtk_check_menu_item_set_inconsistent
protected static final void gtk_check_menu_item_set_inconsistent(Handle check_menu_item,
boolean setting)
gtk_check_menu_item_toggled
protected static final void gtk_check_menu_item_toggled(Handle check_menu_item)
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
drawAsRadio
-
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.