Class MenuItem
- java.lang.Object
-
- com.vaadin.flow.component.Component
-
- com.vaadin.flow.component.contextmenu.MenuItemBase<ContextMenu,MenuItem,SubMenu>
-
- com.vaadin.flow.component.contextmenu.MenuItem
-
- All Implemented Interfaces:
com.vaadin.flow.component.AttachNotifier,com.vaadin.flow.component.ClickNotifier<MenuItem>,com.vaadin.flow.component.DetachNotifier,com.vaadin.flow.component.HasComponents,com.vaadin.flow.component.HasElement,com.vaadin.flow.component.HasEnabled,com.vaadin.flow.component.HasText,Serializable
public class MenuItem extends MenuItemBase<ContextMenu,MenuItem,SubMenu> implements com.vaadin.flow.component.ClickNotifier<MenuItem>
Item component used insideContextMenuandSubMenu. This component can be created and added to a menu overlay withHasMenuItems.addItem(String, ComponentEventListener)and similar methods.- Author:
- Vaadin Ltd.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description MenuItem(ContextMenu contextMenu, com.vaadin.flow.function.SerializableRunnable contentReset)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected SubMenucreateSubMenu()-
Methods inherited from class com.vaadin.flow.component.contextmenu.MenuItemBase
addThemeNames, executeJsWhenAttached, getContextMenu, getSubMenu, hasThemeName, isCheckable, isChecked, isParentItem, removeThemeNames, setCheckable, setChecked
-
Methods inherited from class com.vaadin.flow.component.Component
addListener, findAncestor, fireEvent, from, get, getChildren, getElement, getEventBus, getId, getListeners, getLocale, getParent, getTranslation, getTranslation, getTranslation, getTranslation, getTranslation, getTranslation, getUI, hasListener, isAttached, isTemplateMapped, isVisible, onAttach, onDetach, onEnabledStateChanged, scrollIntoView, set, setElement, setId, setVisible
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.vaadin.flow.component.ClickNotifier
addClickListener, addClickShortcut, addDoubleClickListener, addSingleClickListener
-
-
-
-
Constructor Detail
-
MenuItem
public MenuItem(ContextMenu contextMenu, com.vaadin.flow.function.SerializableRunnable contentReset)
-
-
Method Detail
-
createSubMenu
protected SubMenu createSubMenu()
- Specified by:
createSubMenuin classMenuItemBase<ContextMenu,MenuItem,SubMenu>
-
-