Package | Description |
---|---|
com.vaadin.flow.component.contextmenu | |
com.vaadin.flow.component.menubar |
Modifier and Type | Method and Description |
---|---|
MenuItem |
SubMenu.addItem(Component component,
ComponentEventListener<ClickEvent<MenuItem>> clickListener) |
MenuItem |
HasMenuItems.addItem(Component component,
ComponentEventListener<ClickEvent<MenuItem>> clickListener)
Adds a new item component with the given component and click listener to
the context menu overlay.
|
MenuItem |
ContextMenu.addItem(Component component,
ComponentEventListener<ClickEvent<MenuItem>> clickListener) |
MenuItem |
SubMenu.addItem(String text,
ComponentEventListener<ClickEvent<MenuItem>> clickListener) |
MenuItem |
HasMenuItems.addItem(String text,
ComponentEventListener<ClickEvent<MenuItem>> clickListener)
Adds a new item component with the given text content and click listener
to the context menu overlay.
|
MenuItem |
ContextMenu.addItem(String text,
ComponentEventListener<ClickEvent<MenuItem>> clickListener) |
Modifier and Type | Method and Description |
---|---|
protected MenuManager<ContextMenu,MenuItem,SubMenu> |
SubMenu.createMenuManager() |
protected MenuManager<ContextMenu,MenuItem,SubMenu> |
ContextMenu.createMenuManager(SerializableRunnable contentReset) |
Modifier and Type | Method and Description |
---|---|
MenuItem |
SubMenu.addItem(Component component,
ComponentEventListener<ClickEvent<MenuItem>> clickListener) |
MenuItem |
HasMenuItems.addItem(Component component,
ComponentEventListener<ClickEvent<MenuItem>> clickListener)
Adds a new item component with the given component and click listener to
the context menu overlay.
|
MenuItem |
ContextMenu.addItem(Component component,
ComponentEventListener<ClickEvent<MenuItem>> clickListener) |
MenuItem |
SubMenu.addItem(String text,
ComponentEventListener<ClickEvent<MenuItem>> clickListener) |
MenuItem |
HasMenuItems.addItem(String text,
ComponentEventListener<ClickEvent<MenuItem>> clickListener)
Adds a new item component with the given text content and click listener
to the context menu overlay.
|
MenuItem |
ContextMenu.addItem(String text,
ComponentEventListener<ClickEvent<MenuItem>> clickListener) |
Constructor and Description |
---|
SubMenu(MenuItem parentMenuItem,
SerializableRunnable contentReset) |
Modifier and Type | Method and Description |
---|---|
MenuItem |
MenuBar.addItem(Component component)
Creates a new
MenuItem component and adds it to the root level of
this menu bar. |
MenuItem |
MenuBar.addItem(Component component,
ComponentEventListener<ClickEvent<MenuItem>> clickListener)
Creates a new
MenuItem component with the provided click listener
and adds it to the root level of this menu bar. |
MenuItem |
MenuBar.addItem(String text)
Creates a new
MenuItem component with the provided text content
and adds it to the root level of this menu bar. |
MenuItem |
MenuBar.addItem(String text,
ComponentEventListener<ClickEvent<MenuItem>> clickListener)
Creates a new
MenuItem component with the provided text content
and click listener and adds it to the root level of this menu bar. |
Modifier and Type | Method and Description |
---|---|
List<MenuItem> |
MenuBar.getItems()
Gets the
MenuItem components added to the root level of the menu
bar. |
Modifier and Type | Method and Description |
---|---|
void |
MenuBar.remove(MenuItem... items)
Removes the given item components from this menu bar.
|
Modifier and Type | Method and Description |
---|---|
MenuItem |
MenuBar.addItem(Component component,
ComponentEventListener<ClickEvent<MenuItem>> clickListener)
Creates a new
MenuItem component with the provided click listener
and adds it to the root level of this menu bar. |
MenuItem |
MenuBar.addItem(String text,
ComponentEventListener<ClickEvent<MenuItem>> clickListener)
Creates a new
MenuItem component with the provided text content
and click listener and adds it to the root level of this menu bar. |
Copyright © 2020. All rights reserved.