org.gnu.gtk

Class AccelGroup

public class AccelGroup extends GObject

Deprecated: This class is part of the java-gnome 2.x family of libraries, which, due to their inefficiency and complexity, are no longer being maintained and have been abandoned by the java-gnome project. This class may in the future have an equivalent in java-gnome 4.0, try looking for org.gnome.gtk.AccelGroup. You should be aware that there is a considerably different API in the new library: the architecture is completely different and most notably internals are no longer exposed to public view.

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.

Constructor Summary
AccelGroup()
Create a new AccelGroup.
AccelGroup(Handle handle)
Create a new AccelGroup from a handle to a native resource.
Method Summary
static AccelGroupgetAccelGroup(Handle handle)
Create a new AccelGroup from a handle to a native resource.
static TypegetType()
Retrieve the runtime type used by the GLib library.
voidlock()
Locks the accelerator group.
voidunlock()
Undoes the last call to lock.

Constructor Detail

AccelGroup

public AccelGroup()

Deprecated: Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.

Create a new AccelGroup.

AccelGroup

public AccelGroup(Handle handle)

Deprecated: Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.

Create a new AccelGroup from a handle to a native resource.

Method Detail

getAccelGroup

public static AccelGroup getAccelGroup(Handle handle)

Deprecated: Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.

Create a new AccelGroup from a handle to a native resource.

getType

public static Type getType()

Deprecated: Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.

Retrieve the runtime type used by the GLib library.

lock

public void lock()

Deprecated: Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.

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()

Deprecated: Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.

Undoes the last call to lock.