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
-
Field Summary
Fields inherited from class io.jmix.flowui.kit.component.usermenu.JmixUserMenu.JmixUserMenuSubMenu
itemsDelegate, subMenu, userMenu -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddViewItem(String id, Class<? extends View<?>> viewClass, String text) Adds a menu item associated with a specified view class and text.addViewItem(String id, Class<? extends View<?>> viewClass, String text, int index) Adds a menu item associated with a specified view class and text at a specific position.addViewItem(String id, Class<? extends View<?>> viewClass, String text, com.vaadin.flow.component.Component icon) Adds a menu item associated with a specified view class, text and icon.addViewItem(String id, Class<? extends View<?>> viewClass, String text, com.vaadin.flow.component.Component icon, int index) Adds a menu item associated with a specified view class, text and icon at a specific position.addViewItem(String id, String viewId, String text) Adds a menu item associated with a specified view id and text.addViewItem(String id, String viewId, String text, int index) Adds a menu item associated with a specified view id and text at a specific position.addViewItem(String id, String viewId, String text, com.vaadin.flow.component.Component icon) Adds a menu item associated with a specified view id, text and icon.addViewItem(String id, String viewId, String text, com.vaadin.flow.component.Component icon, int index) Adds a menu item associated with a specified view id, text and icon at a specific position.protected UserMenuItemsDelegateMethods inherited from class io.jmix.flowui.kit.component.usermenu.JmixUserMenu.JmixUserMenuSubMenu
addActionItem, addActionItem, addComponentItem, addComponentItem, addComponentItem, addComponentItem, addSeparator, addSeparatorAtIndex, addTextItem, addTextItem, addTextItem, addTextItem, addTextItem, addTextItem, addTextItem, addTextItem, createUserMenuItemsDelegate, findItem, getItem, getItems, remove, remove, removeAllMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.jmix.flowui.kit.component.usermenu.HasMenuItems
addSeparator, addSeparatorAtIndex, findItem, getItem, getItems, remove, remove, removeAll
-
Constructor Details
-
Method Details
-
getItemsDelegate
- Overrides:
getItemsDelegatein classJmixUserMenu.JmixUserMenuSubMenu
-
addViewItem
Description copied from interface:HasViewMenuItemsAdds a menu item associated with a specified view class and text.- Specified by:
addViewItemin interfaceHasViewMenuItems- Parameters:
id- the unique identifier of the menu itemviewClass- the class of the view to associate with the menu itemtext- the text to be set for the menu item- Returns:
- the created
ViewUserMenuIteminstance
-
addViewItem
public ViewUserMenuItem addViewItem(String id, Class<? extends View<?>> viewClass, String text, int index) Description copied from interface:HasViewMenuItemsAdds a menu item associated with a specified view class and text at a specific position.- Specified by:
addViewItemin interfaceHasViewMenuItems- Parameters:
id- the unique identifier of the menu itemviewClass- the class of the view to associate with the menu itemtext- the text to be set for the menu itemindex- the position at which the menu item will be added- Returns:
- the created
ViewUserMenuIteminstance
-
addViewItem
public ViewUserMenuItem addViewItem(String id, Class<? extends View<?>> viewClass, String text, com.vaadin.flow.component.Component icon) Description copied from interface:HasViewMenuItemsAdds a menu item associated with a specified view class, text and icon.- Specified by:
addViewItemin interfaceHasViewMenuItems- Parameters:
id- the unique identifier of the menu itemviewClass- the class of the view to associate with the menu itemtext- the text to be set for the menu itemicon- the icon to be set for the menu item- Returns:
- the created
ViewUserMenuIteminstance
-
addViewItem
public ViewUserMenuItem addViewItem(String id, Class<? extends View<?>> viewClass, String text, com.vaadin.flow.component.Component icon, int index) Description copied from interface:HasViewMenuItemsAdds a menu item associated with a specified view class, text and icon at a specific position.- Specified by:
addViewItemin interfaceHasViewMenuItems- Parameters:
id- the unique identifier of the menu itemviewClass- the class of the view to associate with the menu itemtext- the text to be set for the menu itemicon- the icon to be set for the menu itemindex- the position at which the menu item will be added- Returns:
- the created
ViewUserMenuIteminstance
-
addViewItem
Description copied from interface:HasViewMenuItemsAdds a menu item associated with a specified view id and text.- Specified by:
addViewItemin interfaceHasViewMenuItems- Parameters:
id- the unique identifier of the menu itemviewId- the id of the view to associate with the menu itemtext- the text to be set for the menu item- Returns:
- the created
ViewUserMenuIteminstance
-
addViewItem
Description copied from interface:HasViewMenuItemsAdds a menu item associated with a specified view id and text at a specific position.- Specified by:
addViewItemin interfaceHasViewMenuItems- Parameters:
id- the unique identifier of the menu itemviewId- the id of the view to associate with the menu itemtext- the text to be set for the menu itemindex- the position at which the menu item will be added- Returns:
- the created
ViewUserMenuIteminstance
-
addViewItem
public ViewUserMenuItem addViewItem(String id, String viewId, String text, com.vaadin.flow.component.Component icon) Description copied from interface:HasViewMenuItemsAdds a menu item associated with a specified view id, text and icon.- Specified by:
addViewItemin interfaceHasViewMenuItems- Parameters:
id- the unique identifier of the menu itemviewId- the id of the view to associate with the menu itemtext- the text to be set for the menu itemicon- the icon to be set for the menu item- Returns:
- the created
ViewUserMenuIteminstance
-
addViewItem
public ViewUserMenuItem addViewItem(String id, String viewId, String text, com.vaadin.flow.component.Component icon, int index) Description copied from interface:HasViewMenuItemsAdds a menu item associated with a specified view id, text and icon at a specific position.- Specified by:
addViewItemin interfaceHasViewMenuItems- Parameters:
id- the unique identifier of the menu itemviewId- the id of the view to associate with the menu itemtext- the text to be set for the menu itemicon- the icon to be set for the menu itemindex- the position at which the menu item will be added- Returns:
- the created
ViewUserMenuIteminstance
-