|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.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().
Constructor Summary | |
AccelLabel(int 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. |
void |
setAccelWidget(Widget accelWidget)
Set the widget for this AccelLabel |
Methods inherited from class org.gnu.gtk.Label |
getAttributes, getJustification, getLabel, getLineWrap, getMnemonicWidget, getSelectable, getSelected, getSelectionEnd, getSelectionStart, getText, getUseMarkup, getUseMnemonic, select, setAttributes, setJustification, setLabel, setLineWrap, setMarkup, setMarkup, setMnemonicWidget, setSelectable, setText, setUnderlinePattern, setUseMarkup, setUseMnemonic |
Methods inherited from class org.gnu.gtk.Misc |
getXAlign, getXPadding, getYAlign, getYPadding, setAlignment, setPadding |
Methods inherited from class org.gnu.glib.GObject |
addEventHandler, addEventHandler, addEventHandler, addEventHandler, addEventHandler, addEventHandler, equals, getData, getHandle, removeEventHandler, setData |
Methods inherited from class java.lang.Object |
getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public AccelLabel(java.lang.String str)
public AccelLabel(int handle)
Method Detail |
public void setAccelWidget(Widget accelWidget)
public Widget getAccelWidget()
public int getAccelWidth()
public static Type getType()
|
Please send any bug reports, comments, or suggestions for the API or documentation to java-gnome-developer@lists.sf.net | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |