Interface HasViewMenuItems
- All Superinterfaces:
HasMenuItems
- All Known Implementing Classes:
UserMenu,UserMenu.UserMenuSubMenu,UserMenuItemsDelegate
Defines a set of methods for
JmixUserMenu components where menu items
associated with a View.-
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.Methods inherited from interface io.jmix.flowui.kit.component.usermenu.HasMenuItems
addSeparator, addSeparatorAtIndex, findItem, getItem, getItems, remove, remove, removeAll
-
Method Details
-
addViewItem
Adds a menu item associated with a specified view class and text.- 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
Adds a menu item associated with a specified view class and text at a specific position.- 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
ViewUserMenuItem 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.- 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
ViewUserMenuItem 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.- 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
Adds a menu item associated with a specified view id and text.- 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
Adds a menu item associated with a specified view id and text at a specific position.- 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
ViewUserMenuItem 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.- 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
ViewUserMenuItem 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.- 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
-