Class MainTabSheetSubMenu
java.lang.Object
com.vaadin.flow.component.contextmenu.SubMenuBase<MainTabSheetContextMenu,MainTabSheetMenuItem,MainTabSheetSubMenu>
io.jmix.tabbedmode.component.tabsheet.contextmenu.MainTabSheetSubMenu
- All Implemented Interfaces:
HasMainTabSheetMenuItems
,Serializable
public class MainTabSheetSubMenu
extends com.vaadin.flow.component.contextmenu.SubMenuBase<MainTabSheetContextMenu,MainTabSheetMenuItem,MainTabSheetSubMenu>
implements HasMainTabSheetMenuItems
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionMainTabSheetSubMenu
(MainTabSheetMenuItem parentMenuItem, com.vaadin.flow.function.SerializableRunnable contentReset) -
Method Summary
Modifier and TypeMethodDescriptionaddItem
(com.vaadin.flow.component.Component component, com.vaadin.flow.component.ComponentEventListener<MainTabSheetContextMenu.MainTabSheetContextMenuItemClickEvent> clickListener) Adds a new item component with the given component and click listener to the context menu overlay.addItem
(String text, com.vaadin.flow.component.ComponentEventListener<MainTabSheetContextMenu.MainTabSheetContextMenuItemClickEvent> clickListener) Adds a new item component with the given text content and click listener to the context menu overlay.protected com.vaadin.flow.component.contextmenu.MenuManager<MainTabSheetContextMenu,
MainTabSheetMenuItem, MainTabSheetSubMenu> Methods inherited from class com.vaadin.flow.component.contextmenu.SubMenuBase
add, addComponentAtIndex, addItem, addItem, getChildren, getItems, getMenuManager, getParentMenuItem, remove, removeAll
-
Constructor Details
-
Method Details
-
addItem
public MainTabSheetMenuItem addItem(String text, @Nullable com.vaadin.flow.component.ComponentEventListener<MainTabSheetContextMenu.MainTabSheetContextMenuItemClickEvent> clickListener) Description copied from interface:HasMainTabSheetMenuItems
Adds a new item component with the given text content and click listener to the context menu overlay.- Specified by:
addItem
in interfaceHasMainTabSheetMenuItems
- Parameters:
text
- the text content for the new itemclickListener
- the handler for clicking the new item, can benull
to not add listener- Returns:
- the added
MainTabSheetMenuItem
component
-
addItem
public MainTabSheetMenuItem addItem(com.vaadin.flow.component.Component component, @Nullable com.vaadin.flow.component.ComponentEventListener<MainTabSheetContextMenu.MainTabSheetContextMenuItemClickEvent> clickListener) Description copied from interface:HasMainTabSheetMenuItems
Adds a new item component with the given component and click listener to the context menu overlay.- Specified by:
addItem
in interfaceHasMainTabSheetMenuItems
- Parameters:
component
- the component inside the new itemclickListener
- the handler for clicking the new item, can benull
to not add listener- Returns:
- the added
MainTabSheetMenuItem
component
-
createMenuManager
protected com.vaadin.flow.component.contextmenu.MenuManager<MainTabSheetContextMenu,MainTabSheetMenuItem, createMenuManager()MainTabSheetSubMenu> - Specified by:
createMenuManager
in classcom.vaadin.flow.component.contextmenu.SubMenuBase<MainTabSheetContextMenu,
MainTabSheetMenuItem, MainTabSheetSubMenu>
-