Accessors for class IlvMenuItem

Properties

Description

The class IlvMenuItem implements the items that are used inside a popup menu (IlvPopupMenu), a menu bar (IlvMenuBar) or a toolbar (IlvToolBar). A menu item can display a label, a bitmap, a graphic object, or it can be a separator, or a tear-off item.
A tear-off item is a dashed line that must be the first item in a menu, and that enables the menu to be torn off. This item can only be contained in a popup menu (see IlvPopupMenu).

TypeNameDescriptionNotes
StringcallbackLanguageSets or gets the scripting language in which the associated callback is defined. See the callbackName property.
CallbackStringSets or gets the callback name that is associated with the menu entry.
BooleancheckedSpecifies whether the menu entry is checked.
Returns true if the menu entry is checked. In this case, a check mark appears to the left of the menu entry in the popup menu. Returns false if the menu entry is not checked.
ObjectmenuSets a submenu to this menu entry. A small arrow appears to the right of the entry. If there was already a submenu, then it is deleted.
Returns the submenu associated with this menu entry, or null if there is none.
BooleanradioSets the menu item to be a radio toggle (true).
Returns true if the menu item is a radio button. When an item is radio button, a radio toggle check mark appears next to it, whether the item is checked or not.

A radio toggle appears as a diamond under Motif, and a circle under Windows/Windows 95.

BooleanreadOnlySet the menu entry as read-only (true). A read-only menu item cannot be selected.
Returns false if the menu entry is not read-only.
BooleantoggleSets the menu item to be a toggle. When a menu item is toggle, a check mark is visible next to the item whether the item is checked or not.
Returns true if the menu item is a toggle.
StringtooltipSets or returns the message displayed by the tooltip associated with the menu item.
InttypeReturns the type of menu entry of the object.