Interface HasActionMenuItems
- All Superinterfaces:
HasMenuItems
- All Known Subinterfaces:
UserMenuItem.HasSubMenu.SubMenu
- All Known Implementing Classes:
JmixUserMenu,JmixUserMenu.JmixUserMenuSubMenu,JmixUserMenuItemsDelegate,UserMenu,UserMenu.UserMenuSubMenu,UserMenuItemsDelegate
Defines a set of methods for
JmixUserMenu components where menu items
associated with an Action.-
Method Summary
Modifier and TypeMethodDescriptionaddActionItem(String id, Action action) Adds a new menu item with the specified identifier and associated action.addActionItem(String id, Action action, int index) Adds a new menu item with the specified identifier, associated action, and specified index where the item should be inserted.Methods inherited from interface io.jmix.flowui.kit.component.usermenu.HasMenuItems
addSeparator, addSeparatorAtIndex, findItem, getItem, getItems, remove, remove, removeAll
-
Method Details
-
addActionItem
Adds a new menu item with the specified identifier and associated action.- Parameters:
id- the unique identifier of the menu itemaction- theActionto associate with the menu item- Returns:
- the created
ActionUserMenuIteminstance
-
addActionItem
Adds a new menu item with the specified identifier, associated action, and specified index where the item should be inserted.- Parameters:
id- the unique identifier of the menu itemaction- theActionto associate with the menu itemindex- the position at which the menu item should be inserted- Returns:
- the created
ActionUserMenuIteminstance
-