Interface HasActionMenuItems

All Superinterfaces:
HasMenuItems
All Known Subinterfaces:
UserMenuItem.HasSubMenu.SubMenu
All Known Implementing Classes:
JmixUserMenu, JmixUserMenu.JmixUserMenuSubMenu, JmixUserMenuItemsDelegate, UserMenu, UserMenu.UserMenuSubMenu, UserMenuItemsDelegate

public interface HasActionMenuItems extends HasMenuItems
Defines a set of methods for JmixUserMenu components where menu items associated with an Action.
  • Method Details

    • addActionItem

      ActionUserMenuItem addActionItem(String id, Action action)
      Adds a new menu item with the specified identifier and associated action.
      Parameters:
      id - the unique identifier of the menu item
      action - the Action to associate with the menu item
      Returns:
      the created ActionUserMenuItem instance
    • addActionItem

      ActionUserMenuItem 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.
      Parameters:
      id - the unique identifier of the menu item
      action - the Action to associate with the menu item
      index - the position at which the menu item should be inserted
      Returns:
      the created ActionUserMenuItem instance