|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.gnu.glib.GObject
org.gnu.gtk.GtkObject
org.gnu.gtk.Widget
org.gnu.gtk.Container
org.gnu.gtk.Bin
org.gnu.gtk.Item
org.gnu.gtk.MenuItem
org.gnu.gtk.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 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.
Field Summary |
Fields inherited from class org.gnu.glib.GObject |
eventsInitialized |
Constructor Summary | |
CheckMenuItem()
Create a new CheckMenuItem |
|
CheckMenuItem(Handle handle)
Construct a CheckMenuItem using a handle to a native resource. |
|
CheckMenuItem(java.lang.String label,
boolean hasMnemonic)
Create a new CheckMenuItem with the given label. |
Method Summary | |
void |
addListener(CheckMenuItemListener listener)
Register an object to handle dialog events. |
protected void |
fireCheckMenuItemEvent(CheckMenuItemEvent event)
|
boolean |
getActive()
Returns whether the CheckMenuItem is active. |
boolean |
getDrawAsRadio()
Gets whether the CheckMenuItem will be drawn as a radio control. |
java.lang.Class |
getEventListenerClass(java.lang.String signal)
|
EventType |
getEventType(java.lang.String signal)
|
boolean |
getInconsistent()
Returns whether the CheckMenuItem is in the "inconsistent" state. |
static Type |
getType()
Retrieve the runtime type used by the GLib library. |
protected static boolean |
gtk_check_menu_item_get_active(Handle check_menu_item)
|
protected static boolean |
gtk_check_menu_item_get_draw_as_radio(Handle cmenu)
|
protected static boolean |
gtk_check_menu_item_get_inconsistent(Handle check_menu_item)
|
protected static int |
gtk_check_menu_item_get_type()
|
protected static Handle |
gtk_check_menu_item_new_with_label(java.lang.String label)
|
protected static Handle |
gtk_check_menu_item_new_with_mnemonic(java.lang.String label)
|
protected static Handle |
gtk_check_menu_item_new()
|
protected static void |
gtk_check_menu_item_set_active(Handle check_menu_item,
boolean isActive)
|
protected static void |
gtk_check_menu_item_set_draw_as_radio(Handle cmenu,
boolean asRadio)
|
protected static void |
gtk_check_menu_item_set_inconsistent(Handle check_menu_item,
boolean setting)
|
protected static void |
gtk_check_menu_item_toggled(Handle check_menu_item)
|
void |
removeListener(CheckMenuItemListener listener)
Removes a listener |
void |
setActive(boolean isActive)
Sets the active state of the CheckMenuItem's check box. |
void |
setDrawAsRadio(boolean drawAsRadio)
Sets whether the CheckMenuItem should be drawn as a radio control |
void |
setInconsistent(boolean isInconsistent)
This method will turn on a third state that indicates that the widget is in an inconsistent state. |
Methods inherited from class org.gnu.gtk.Item |
addListener, deselect, fireItemEvent, gtk_item_deselect, gtk_item_get_type, gtk_item_select, gtk_item_toggle, removeListener, select, toggle |
Methods inherited from class org.gnu.gtk.Bin |
getChild, gtk_bin_get_child, gtk_bin_get_type |
Methods inherited from class org.gnu.gtk.GtkObject |
getFlags, gtk_object_destroy, gtk_object_get_type, gtk_object_sink, setFlags, sink |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public CheckMenuItem()
public CheckMenuItem(Handle handle)
public CheckMenuItem(java.lang.String label, boolean hasMnemonic)
label
- The label to display for this CheckMenuItem.Method Detail |
public void setActive(boolean isActive)
isActive
- true if the check box is checked.public boolean getActive()
public void setInconsistent(boolean isInconsistent)
isInconsistent
- true to display an "inconsistent" third state.public boolean getInconsistent()
public void setDrawAsRadio(boolean drawAsRadio)
drawAsRadio
- public boolean getDrawAsRadio()
public static Type getType()
public void addListener(CheckMenuItemListener listener)
CheckMenuItemListener
public void removeListener(CheckMenuItemListener listener)
addListener(CheckMenuItemListener)
protected void fireCheckMenuItemEvent(CheckMenuItemEvent event)
public java.lang.Class getEventListenerClass(java.lang.String signal)
getEventListenerClass
in class MenuItem
public EventType getEventType(java.lang.String signal)
getEventType
in class MenuItem
protected static final int gtk_check_menu_item_get_type()
protected static final Handle gtk_check_menu_item_new()
protected static final Handle gtk_check_menu_item_new_with_label(java.lang.String label)
protected static final Handle gtk_check_menu_item_new_with_mnemonic(java.lang.String label)
protected static final void gtk_check_menu_item_set_active(Handle check_menu_item, boolean isActive)
protected static final boolean gtk_check_menu_item_get_active(Handle check_menu_item)
protected static final void gtk_check_menu_item_toggled(Handle check_menu_item)
protected static final void gtk_check_menu_item_set_inconsistent(Handle check_menu_item, boolean setting)
protected static final boolean gtk_check_menu_item_get_inconsistent(Handle check_menu_item)
protected static final void gtk_check_menu_item_set_draw_as_radio(Handle cmenu, boolean asRadio)
protected static final boolean gtk_check_menu_item_get_draw_as_radio(Handle cmenu)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |