Accessors for class IlvAbstractMenu

Properties

Methods

Description

This purely abstract class is used to facilitate the use of menu classes, such as IlvMenuBar, IlvPopupMenu and IlvToolBar.

TypeNameDescriptionNotes
VoidaddItem(IlvMenuItem item, Int index)Inserts a copy of item before the indexth item. If index is omitted or set to an invalid value, the new item is appended to the list of menu items.
ObjectgetItem(UInt index)Returns the indexth menu item.
StringgetLabel(UInt index)Returns the label of the indexth item.
ObjectgetSubMenu(UInt index)Returns the submenu of the item located at the position index, or null if there is no submenu.
UIntitemsCountReturns the number of menu entries that are stored in the menu instance.
DirectionlabelPositionSets or returns the default position of the menu item labels relative to their picture.
VoidremoveItem(UInt index)Removes the indexth item if it is a valid position.
IntselectedItemIndexReturns the index of the selected item, or -1 if no item is selected.
Selects the item if it is a valid position.
StringsetLabel(UInt index, String label)Sets the indexth item label to label.
VoidsetSubMenu(UInt index, IlvPopupMenu menu)Sets menu as the submenu of the item located at the position index.
BooleanshowLabelSpecifies whether the labels associated with the menu items are displayed (true) or not (false).
BooleanshowPictureSpecifies whether the pictures associated with the menu items are displayed (true) or not (false).