org.gnu.gtk
public class AccelLabel extends Label
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(String str)
Create an AccelLabel. | |
AccelLabel(Handle handle)
Construct a AccelLabel using a handle to a native resource. |
Method Summary | |
---|---|
static AccelLabel | getAccelLabel(Handle handle)
Internal static factory method to be used by Java-Gnome only. |
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 |
Returns: The width needed to display the accelerator keys.