Class UserMenu.UserMenuSubMenu

java.lang.Object
io.jmix.flowui.kit.component.usermenu.JmixUserMenu.JmixUserMenuSubMenu
io.jmix.flowui.component.usermenu.UserMenu.UserMenuSubMenu
All Implemented Interfaces:
HasViewMenuItems, HasActionMenuItems, HasComponentMenuItems, HasMenuItems, HasTextMenuItems, UserMenuItem.HasSubMenu.SubMenu
Enclosing class:
UserMenu

protected static class UserMenu.UserMenuSubMenu extends JmixUserMenu.JmixUserMenuSubMenu implements HasViewMenuItems
  • Constructor Details

  • Method Details

    • getItemsDelegate

      protected UserMenuItemsDelegate getItemsDelegate()
      Overrides:
      getItemsDelegate in class JmixUserMenu.JmixUserMenuSubMenu
    • addViewItem

      public ViewUserMenuItem addViewItem(String id, Class<? extends View<?>> viewClass, String text)
      Description copied from interface: HasViewMenuItems
      Adds a menu item associated with a specified view class and text.
      Specified by:
      addViewItem in interface HasViewMenuItems
      Parameters:
      id - the unique identifier of the menu item
      viewClass - the class of the view to associate with the menu item
      text - the text to be set for the menu item
      Returns:
      the created ViewUserMenuItem instance
    • addViewItem

      public ViewUserMenuItem addViewItem(String id, Class<? extends View<?>> viewClass, String text, int index)
      Description copied from interface: HasViewMenuItems
      Adds a menu item associated with a specified view class and text at a specific position.
      Specified by:
      addViewItem in interface HasViewMenuItems
      Parameters:
      id - the unique identifier of the menu item
      viewClass - the class of the view to associate with the menu item
      text - the text to be set for the menu item
      index - the position at which the menu item will be added
      Returns:
      the created ViewUserMenuItem instance
    • addViewItem

      public ViewUserMenuItem addViewItem(String id, Class<? extends View<?>> viewClass, String text, com.vaadin.flow.component.Component icon)
      Description copied from interface: HasViewMenuItems
      Adds a menu item associated with a specified view class, text and icon.
      Specified by:
      addViewItem in interface HasViewMenuItems
      Parameters:
      id - the unique identifier of the menu item
      viewClass - the class of the view to associate with the menu item
      text - the text to be set for the menu item
      icon - the icon to be set for the menu item
      Returns:
      the created ViewUserMenuItem instance
    • addViewItem

      public ViewUserMenuItem addViewItem(String id, Class<? extends View<?>> viewClass, String text, com.vaadin.flow.component.Component icon, int index)
      Description copied from interface: HasViewMenuItems
      Adds a menu item associated with a specified view class, text and icon at a specific position.
      Specified by:
      addViewItem in interface HasViewMenuItems
      Parameters:
      id - the unique identifier of the menu item
      viewClass - the class of the view to associate with the menu item
      text - the text to be set for the menu item
      icon - the icon to be set for the menu item
      index - the position at which the menu item will be added
      Returns:
      the created ViewUserMenuItem instance
    • addViewItem

      public ViewUserMenuItem addViewItem(String id, String viewId, String text)
      Description copied from interface: HasViewMenuItems
      Adds a menu item associated with a specified view id and text.
      Specified by:
      addViewItem in interface HasViewMenuItems
      Parameters:
      id - the unique identifier of the menu item
      viewId - the id of the view to associate with the menu item
      text - the text to be set for the menu item
      Returns:
      the created ViewUserMenuItem instance
    • addViewItem

      public ViewUserMenuItem addViewItem(String id, String viewId, String text, int index)
      Description copied from interface: HasViewMenuItems
      Adds a menu item associated with a specified view id and text at a specific position.
      Specified by:
      addViewItem in interface HasViewMenuItems
      Parameters:
      id - the unique identifier of the menu item
      viewId - the id of the view to associate with the menu item
      text - the text to be set for the menu item
      index - the position at which the menu item will be added
      Returns:
      the created ViewUserMenuItem instance
    • addViewItem

      public ViewUserMenuItem addViewItem(String id, String viewId, String text, com.vaadin.flow.component.Component icon)
      Description copied from interface: HasViewMenuItems
      Adds a menu item associated with a specified view id, text and icon.
      Specified by:
      addViewItem in interface HasViewMenuItems
      Parameters:
      id - the unique identifier of the menu item
      viewId - the id of the view to associate with the menu item
      text - the text to be set for the menu item
      icon - the icon to be set for the menu item
      Returns:
      the created ViewUserMenuItem instance
    • addViewItem

      public ViewUserMenuItem addViewItem(String id, String viewId, String text, com.vaadin.flow.component.Component icon, int index)
      Description copied from interface: HasViewMenuItems
      Adds a menu item associated with a specified view id, text and icon at a specific position.
      Specified by:
      addViewItem in interface HasViewMenuItems
      Parameters:
      id - the unique identifier of the menu item
      viewId - the id of the view to associate with the menu item
      text - the text to be set for the menu item
      icon - the icon to be set for the menu item
      index - the position at which the menu item will be added
      Returns:
      the created ViewUserMenuItem instance