Enumerations | |
enum | Type { Separator, Action, CustomAction, SubMenu } |
Properties | |
String | action |
String | subMenuLabel |
Type | type |
Methods | |
DzActionMenu | getSubMenu () |
void | setSubMenu (DzActionMenu menu) |
The types of action menu items
Separator | A menu separator (i.e. horizontal divider) |
Action | An action item - a menu entry that activates a DzAction object |
CustomAction | A custom action item - a menu entry that activates a custom action. See DzActionMgr for more about custom actions. |
SubMenu | A submenu action item - a menu entry that opens a submenu |
DzActionMenu DzActionMenuItem::getSubMenu | ( | ) |
void DzActionMenuItem::setSubMenu | ( | DzActionMenu | menu | ) |
Sets the menu that is displayed as the submenu when this menu item is activated. This call has no effect unless the type of this item is SubMenu.
menu | The menu that is displayed as a submenu when this menu entry is activated. The menu item takes ownership of the menu - the menu will be deleted when this item is destroyed. |
The class name of the action for this item
The name of the submenu for this item
The type of the menu item