org.gnu.gtk
Class 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.
addEventHandler , addEventHandler , addEventHandler , addEventHandler , addEventHandler , addEventHandler , addListener , equals , freezeNotify , getBooleanProperty , getData , getData , getDoubleProperty , getEventListenerClass , getEventType , getFloatProperty , getGObjectFromHandle , getHandle , getIntFromHandle , getIntProperty , getJavaObjectProperty , getLongProperty , getNullHandle , getPixbufProperty , getProperty , getStringFromHandle , getStringProperty , hasProperty , hashCode , instantiateJGObjectFromGType , notify , removeEventHandler , removeListener , retrieveGObject , setBooleanProperty , setData , setData , setDoubleProperty , setFloatProperty , setHandle , setIntProperty , setJavaObjectProperty , setLongProperty , setPixbufProperty , setProperty , setStringProperty , thawNotify |
AccelGroup
public AccelGroup()
Create a new AccelGroup.
AccelGroup
public AccelGroup(Handle handle)
Create a new AccelGroup from a handle to a native resource.
getType
public static Type getType()
Retrieve the runtime type used by the GLib library.
gtk_accel_group_disconnect_key
protected static final boolean gtk_accel_group_disconnect_key(Handle accelGroup,
int accelKey,
int accelMods)
gtk_accel_group_get_type
protected static final int gtk_accel_group_get_type()
BEGINNING OF JNI CODE
gtk_accel_group_lock
protected static final void gtk_accel_group_lock(Handle accelGroup)
gtk_accel_group_new
protected static final Handle gtk_accel_group_new()
gtk_accel_group_unlock
protected static final void gtk_accel_group_unlock(Handle accelGroup)
gtk_accel_groups_activate
protected static final boolean gtk_accel_groups_activate(Handle object,
int accelKey,
int accelMods)
lock
public void lock()
Locks the accelerator group. Locking an acclerator group prevents the
accelerators contained within it to be changed during runtime. If this
method is called more than once, the AccelGroup remains locked until unlock
is called the equivalent number of times.
unlock
public void unlock()
Undoes the last call to lock.