Menu Methods

Overview | This Package | All Packages

Menu Methods

Constructors Description
Menu Creates a new Menu object.

Methods Description
add Adds a menu item to the end of this menu.

clear Removes all existing items from this menu.

cloneMenu Sets this menu to be an identical copy of another menu.

dispose Frees the resources allocated by this component.

getHandle Returns the Win32 menu handle (HMENU) handle for this menu.

getIsParent Retrieves a boolean value that indicates whether this menu contains items.

getMainMenu Returns the MainMenu object that contains this menu.

getMDIListItem Retrieves the the MDI list from this menu.

getMenuItem Retrieves the menu item at the specified index.

getMenuItemCount Retrieves the number of items that this menu contains.

getMenuItems Retrieves the items in this menu.

insert Adds a menu item to this menu at the specified index.

mergeMenu Merges the specified menu with this one.

remove Removes the specified menu item.

setMenuItems Initializes this menu to contain the specified list of menu items.