|
||||||||||
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.AccelGroup
An AccelGroup represents a group of keyboard accelerators, typically attached to a toplevel Window. Usually you will not need to create an AccelGroup directoy; instead, when using ItemFactory, GTK+ automatically sets up the accelerators for your menus in the item factory's AccelGroup.
Note that accelerators are different from mnemonics. Accelerators are shortcuts for activating a menu item; they appear alongside the menu item they're a shortcut for. For example, "Ctrl+Q" might appear alongside the "Quit" menu item. Mnemonics are shortcuts for GUI elements such as text entries or buttons; they appear as underlined characters.
Field Summary |
Fields inherited from class org.gnu.glib.GObject |
eventsInitialized |
Constructor Summary | |
AccelGroup()
Create a new AccelGroup. |
|
AccelGroup(Handle handle)
Create a new AccelGroup from a handle to a native resource. |
Method Summary | |
static Type |
getType()
Retrieve the runtime type used by the GLib library. |
protected static boolean |
gtk_accel_group_disconnect_key(Handle accelGroup,
int accelKey,
int accelMods)
|
protected static int |
gtk_accel_group_get_type()
BEGINNING OF JNI CODE |
protected static void |
gtk_accel_group_lock(Handle accelGroup)
|
protected static Handle |
gtk_accel_group_new()
|
protected static void |
gtk_accel_group_unlock(Handle accelGroup)
|
protected static boolean |
gtk_accel_groups_activate(Handle object,
int accelKey,
int accelMods)
|
void |
lock()
Locks the accelerator group. |
void |
unlock()
Undoes the last call to lock. |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public AccelGroup()
public AccelGroup(Handle handle)
Method Detail |
public void lock()
public void unlock()
public static Type getType()
protected static final int gtk_accel_group_get_type()
protected static final Handle gtk_accel_group_new()
protected static final void gtk_accel_group_lock(Handle accelGroup)
protected static final void gtk_accel_group_unlock(Handle accelGroup)
protected static final boolean gtk_accel_group_disconnect_key(Handle accelGroup, int accelKey, int accelMods)
protected static final boolean gtk_accel_groups_activate(Handle object, int accelKey, int accelMods)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |