|
||||||||||
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.Misc
org.gnu.gtk.Label
org.gnu.gtk.AccelLabel
The AccelLabel widget is a subclass of Label that also displays an accelerator key on the right side of the label text, e.g. 'Ctrl+S'. It is commonly used in menus to show the keyboard shortcut for the command.
The accelerator key to display is not set explicitly. Instead, the AccelLabel displays the accelerator which have been added to a particular widget. This widget is set by calling setAccelWidget().
Field Summary |
Fields inherited from class org.gnu.glib.GObject |
eventsInitialized |
Constructor Summary | |
AccelLabel(Handle handle)
Construct a AccelLabel using a handle to a native resource. |
|
AccelLabel(java.lang.String str)
Create an AccelLabel. |
Method Summary | |
Widget |
getAccelWidget()
Retrieve the widget for this AccelLabel |
int |
getAccelWidth()
Returns the width needed to display the accelerator key(s). |
static Type |
getType()
Retrieve the runtime type used by the GLib library. |
protected static Handle |
gtk_accel_label_get_accel_widget(Handle accel_label)
|
protected static int |
gtk_accel_label_get_accel_width(Handle accel_label)
|
protected static int |
gtk_accel_label_get_type()
BEGINNING OF GENERATED CODE |
protected static Handle |
gtk_accel_label_new(java.lang.String str)
|
protected static boolean |
gtk_accel_label_refetch(Handle accel_label)
|
protected static void |
gtk_accel_label_set_accel_widget(Handle accel_label,
Handle accelWidget)
|
void |
setAccelWidget(Widget accelWidget)
Set the widget for this AccelLabel |
Methods inherited from class org.gnu.gtk.Misc |
getXAlign, getXPadding, getYAlign, getYPadding, gtk_misc_get_alignment, gtk_misc_get_padding, gtk_misc_get_type, gtk_misc_set_alignment, gtk_misc_set_padding, setAlignment, setPadding |
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 AccelLabel(java.lang.String str)
public AccelLabel(Handle handle)
Method Detail |
public void setAccelWidget(Widget accelWidget)
public Widget getAccelWidget()
public int getAccelWidth()
public static Type getType()
protected static final int gtk_accel_label_get_type()
protected static final Handle gtk_accel_label_new(java.lang.String str)
protected static final Handle gtk_accel_label_get_accel_widget(Handle accel_label)
protected static final void gtk_accel_label_set_accel_widget(Handle accel_label, Handle accelWidget)
protected static final int gtk_accel_label_get_accel_width(Handle accel_label)
protected static final boolean gtk_accel_label_refetch(Handle accel_label)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |