Class UserMenuItemsDelegate
java.lang.Object
io.jmix.flowui.kit.component.usermenu.JmixUserMenuItemsDelegate
io.jmix.flowui.component.usermenu.UserMenuItemsDelegate
- All Implemented Interfaces:
HasViewMenuItems,HasActionMenuItems,HasComponentMenuItems,HasMenuItems,HasTextMenuItems
@Component("flowui_UserMenuItemsDelegate")
@Scope("prototype")
public class UserMenuItemsDelegate
extends JmixUserMenuItemsDelegate
implements HasViewMenuItems
Delegate class for managing
UserMenuItem collection.-
Nested Class Summary
Nested classes/interfaces inherited from class io.jmix.flowui.kit.component.usermenu.JmixUserMenuItemsDelegate
JmixUserMenuItemsDelegate.SeparatorUserMenuItem -
Field Summary
FieldsFields inherited from class io.jmix.flowui.kit.component.usermenu.JmixUserMenuItemsDelegate
items, propertyChangeRegistrations, 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 ViewUserMenuItemaddViewItemInternal(String id, Class<? extends View<?>> viewClass, String text, com.vaadin.flow.component.Component icon, int index) protected ViewUserMenuItemaddViewItemInternal(String id, String viewId, String text, com.vaadin.flow.component.Component icon, int index) protected voidattachItem(UserMenuItem item) protected voiddetachItem(UserMenuItem item) voidsetDialogWindows(DialogWindows dialogWindows) voidsetViewNavigators(ViewNavigators viewNavigators) Methods inherited from class io.jmix.flowui.kit.component.usermenu.JmixUserMenuItemsDelegate
addActionItem, addActionItem, addComponentItem, addComponentItem, addComponentItem, addComponentItem, addItemInternal, addItemInternal, addItemInternal, addSeparator, addSeparatorAtIndex, addTextItem, addTextItem, addTextItem, addTextItem, addTextItem, addTextItem, addTextItem, addTextItem, adjustPhysicalIndex, createMenuItem, findItem, getItem, getItems, onItemPropertyChange, remove, remove, removeAll, updateItemsVisibilityMethods 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
-
Field Details
-
dialogWindows
-
Constructor Details
-
Method Details
-
setDialogWindows
-
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
-
addViewItemInternal
protected ViewUserMenuItem addViewItemInternal(String id, Class<? extends View<?>> viewClass, String text, @Nullable com.vaadin.flow.component.Component icon, int index) -
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
-
addViewItemInternal
protected ViewUserMenuItem addViewItemInternal(String id, String viewId, String text, @Nullable com.vaadin.flow.component.Component icon, int index)