|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.gnu.glib.Struct
org.gnu.glib.GObject
org.gnu.gtk.GtkObject
org.gnu.gtk.Widget
org.gnu.gtk.Container
org.gnu.gtk.MenuShell
org.gnu.gtk.Menu
public class Menu
A Menu is a MenuShell that implements a drop down menu consisting of a list of MenuItem objects which can be navigated and activated by the user to perform application functions.
Constructor Summary | |
---|---|
Menu()
Create a new Menu. |
|
Menu(org.gnu.glib.Handle handle)
Create a new Menu from a handle to a native resource. |
Method Summary | |
---|---|
void |
detach()
Detaches the menu from the widget to which it had been attached. |
java.util.ArrayList |
getAttachedMenus()
Returns a list of the menus which are attached to this widget. |
static Menu |
getMenu(org.gnu.glib.Handle handle)
Create a new Menu from a handle to a native resource. |
java.lang.String |
getTitle()
Returns the title of the menu. |
static Type |
getType()
Retrieve the runtime type used by the GLib library. |
void |
popup()
Displays a menu and makes it available for selection. |
void |
reorderMenuItem(MenuItem child,
int position)
Move a MenuItem to a new position within the Menu. |
void |
setAccelGroup(AccelGroup accelGroup)
Set the AccelGroup which holds global accelerators for the menu. |
void |
setTitle(java.lang.String title)
Sets the title string for this Menu. |
Methods inherited from class org.gnu.gtk.MenuShell |
---|
activateItem, append, cancel, deactivate, deselect, getTakeFocus, insert, prepend, selectFirst, selectItem, setTakeFocus |
Methods inherited from class org.gnu.gtk.Container |
---|
add, addListener, getBooleanChildProperty, getBorderWidth, getChildProperty, getChildren, getEventListenerClass, getEventType, getIntChildProperty, getResizeMode, remove, removeListener, resizeChildren, setBooleanChildProperty, setBorderWidth, setChildProperty, setIntChildProperty, setResizeMode |
Methods inherited from class org.gnu.gtk.GtkObject |
---|
destroy, sink |
Methods inherited from class org.gnu.glib.Struct |
---|
equals, getHandle, getNullHandle, hashCode |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Menu()
public Menu(org.gnu.glib.Handle handle)
Method Detail |
---|
public static Menu getMenu(org.gnu.glib.Handle handle)
public void reorderMenuItem(MenuItem child, int position)
child
- The MenuItem to be moved.position
- The new position to place the MenuItem.public void popup()
public void detach()
public void setAccelGroup(AccelGroup accelGroup)
accelGroup
- The AccelGroup to be associated with this Menu.public void setTitle(java.lang.String title)
title
- The title for the Menu.public java.lang.String getTitle()
public java.util.ArrayList getAttachedMenus()
public static Type getType()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |