org.gnu.gtk
public class Menu extends MenuShell
Constructor Summary | |
---|---|
Menu()
Create a new Menu. | |
Menu(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. |
ArrayList | getAttachedMenus()
Returns a list of the menus which are attached to this widget. |
static Menu | getMenu(Handle handle)
Create a new Menu from a handle to a native resource. |
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(String title)
Sets the title string for this Menu. |
Returns: The title for the menu.
Parameters: child The MenuItem to be moved. position The new position to place the MenuItem.
Parameters: accelGroup The AccelGroup to be associated with this Menu.
Parameters: title The title for the Menu.