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, addComponent, addComponentAtIndex, addItem, addItem, addSeparator, 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:HasMainTabSheetMenuItemsAdds a new item component with the given text content and click listener to the context menu overlay.- Specified by:
addItemin interfaceHasMainTabSheetMenuItems- Parameters:
text- the text content for the new itemclickListener- the handler for clicking the new item, can benullto not add listener- Returns:
- the added
MainTabSheetMenuItemcomponent
-
addItem
public MainTabSheetMenuItem addItem(com.vaadin.flow.component.Component component, @Nullable com.vaadin.flow.component.ComponentEventListener<MainTabSheetContextMenu.MainTabSheetContextMenuItemClickEvent> clickListener) Description copied from interface:HasMainTabSheetMenuItemsAdds a new item component with the given component and click listener to the context menu overlay.- Specified by:
addItemin interfaceHasMainTabSheetMenuItems- Parameters:
component- the component inside the new itemclickListener- the handler for clicking the new item, can benullto not add listener- Returns:
- the added
MainTabSheetMenuItemcomponent
-
createMenuManager
protected com.vaadin.flow.component.contextmenu.MenuManager<MainTabSheetContextMenu,MainTabSheetMenuItem, createMenuManager()MainTabSheetSubMenu> - Specified by:
createMenuManagerin classcom.vaadin.flow.component.contextmenu.SubMenuBase<MainTabSheetContextMenu,MainTabSheetMenuItem, MainTabSheetSubMenu>
-