Index
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form
A
- addComponent(Component...) - Method in class com.vaadin.flow.component.contextmenu.ContextMenuBase
-
Adds the given components to the context menu.
- addComponent(Component...) - Method in class com.vaadin.flow.component.contextmenu.MenuManager
-
Adds components to the (sub)menu.
- addComponent(Component...) - Method in class com.vaadin.flow.component.contextmenu.SubMenuBase
-
Adds the given components to the sub menu.
- addComponent(Collection<Component>) - Method in class com.vaadin.flow.component.contextmenu.ContextMenuBase
-
Adds the given components to the context menu.
- addComponentAsFirst(Component) - Method in class com.vaadin.flow.component.contextmenu.ContextMenuBase
-
Adds the given component as the first child to the context menu.
- addComponentAtIndex(int, Component) - Method in class com.vaadin.flow.component.contextmenu.ContextMenuBase
-
Adds the given component to the context menu at the given index.
- addComponentAtIndex(int, Component) - Method in class com.vaadin.flow.component.contextmenu.MenuManager
-
Inserts component to the (sub)menu using the
index. - addComponentAtIndex(int, Component) - Method in class com.vaadin.flow.component.contextmenu.SubMenuBase
-
Adds the given component to the sub menu at the given index.
- addItem(Component) - Method in class com.vaadin.flow.component.contextmenu.ContextMenuBase
-
Creates a new menu item with the given component content and adds it to the context menu.
- addItem(Component) - Method in class com.vaadin.flow.component.contextmenu.MenuManager
-
Adds a component as a menu item.
- addItem(Component) - Method in class com.vaadin.flow.component.contextmenu.SubMenuBase
-
Creates a new menu item with the given component content and adds it to the sub menu.
- addItem(Component, ComponentEventListener<ClickEvent<MenuItem>>) - Method in class com.vaadin.flow.component.contextmenu.ContextMenu
- addItem(Component, ComponentEventListener<ClickEvent<MenuItem>>) - Method in interface com.vaadin.flow.component.contextmenu.HasMenuItems
-
Creates a new menu item with the given component content and click listener and adds it to the context menu overlay.
- addItem(Component, ComponentEventListener<ClickEvent<MenuItem>>) - Method in class com.vaadin.flow.component.contextmenu.SubMenu
- addItem(Component, ComponentEventListener<ClickEvent<I>>) - Method in class com.vaadin.flow.component.contextmenu.MenuManager
-
Adds a component as a menu item with a click listener.
- addItem(String) - Method in class com.vaadin.flow.component.contextmenu.ContextMenuBase
-
Creates a new menu item with the given text content and adds it to the context menu.
- addItem(String) - Method in class com.vaadin.flow.component.contextmenu.MenuManager
-
Adds a text as a menu item.
- addItem(String) - Method in class com.vaadin.flow.component.contextmenu.SubMenuBase
-
Creates a new menu item with the given text content and adds it to the sub menu.
- addItem(String, ComponentEventListener<ClickEvent<MenuItem>>) - Method in class com.vaadin.flow.component.contextmenu.ContextMenu
- addItem(String, ComponentEventListener<ClickEvent<MenuItem>>) - Method in interface com.vaadin.flow.component.contextmenu.HasMenuItems
-
Creates a new menu item with the given text content and click listener and adds it to the context menu overlay.
- addItem(String, ComponentEventListener<ClickEvent<MenuItem>>) - Method in class com.vaadin.flow.component.contextmenu.SubMenu
- addItem(String, ComponentEventListener<ClickEvent<I>>) - Method in class com.vaadin.flow.component.contextmenu.MenuManager
-
Adds a text as a menu item with a click listener.
- addOpenedChangeListener(ComponentEventListener<ContextMenuBase.OpenedChangeEvent<C>>) - Method in class com.vaadin.flow.component.contextmenu.ContextMenuBase
-
Adds a listener for the
opened-changedevents fired by the web component. - addSeparator() - Method in class com.vaadin.flow.component.contextmenu.ContextMenuBase
-
Adds a separator between items.
- addSeparator() - Method in class com.vaadin.flow.component.contextmenu.MenuManager
-
Adds a separator between items.
- addSeparator() - Method in class com.vaadin.flow.component.contextmenu.SubMenuBase
-
Adds a separator between items.
- addThemeNames(String...) - Method in class com.vaadin.flow.component.contextmenu.MenuItemBase
-
Adds one or more theme names to this item.
C
- close() - Method in class com.vaadin.flow.component.contextmenu.ContextMenuBase
-
Closes this context menu if it is currently open.
- com.vaadin.flow.component.contextmenu - package com.vaadin.flow.component.contextmenu
- ContextMenu - Class in com.vaadin.flow.component.contextmenu
-
Context Menu is a component that you can attach to any component to display a context menu.
- ContextMenu() - Constructor for class com.vaadin.flow.component.contextmenu.ContextMenu
-
Creates an empty context menu.
- ContextMenu(Component) - Constructor for class com.vaadin.flow.component.contextmenu.ContextMenu
-
Creates an empty context menu with the given target component.
- ContextMenuBase<C extends ContextMenuBase<C,
I, S>, I extends MenuItemBase<C, I, S>, S extends SubMenuBase<C, I, S>> - Class in com.vaadin.flow.component.contextmenu -
Base functionality for server-side components based on
<vaadin-context-menu>. - ContextMenuBase() - Constructor for class com.vaadin.flow.component.contextmenu.ContextMenuBase
-
Creates an empty context menu.
- ContextMenuBase.OpenedChangeEvent<TComponent extends ContextMenuBase<TComponent,
?, ?>> - Class in com.vaadin.flow.component.contextmenu -
opened-changedevent is sent when the opened state changes. - createMenuManager() - Method in class com.vaadin.flow.component.contextmenu.SubMenu
- createMenuManager() - Method in class com.vaadin.flow.component.contextmenu.SubMenuBase
-
Creates a (sub) menu manager instance which contains logic to control the (sub) menu content.
- createMenuManager(SerializableRunnable) - Method in class com.vaadin.flow.component.contextmenu.ContextMenu
- createMenuManager(SerializableRunnable) - Method in class com.vaadin.flow.component.contextmenu.ContextMenuBase
-
Creates a menu manager instance which contains logic to control the menu content.
- createSubMenu() - Method in class com.vaadin.flow.component.contextmenu.MenuItem
- createSubMenu() - Method in class com.vaadin.flow.component.contextmenu.MenuItemBase
E
- EVENT_DETAIL - Static variable in class com.vaadin.flow.component.contextmenu.ContextMenuBase
- executeJsWhenAttached(String, Serializable...) - Method in class com.vaadin.flow.component.contextmenu.MenuItemBase
G
- generate() - Method in class com.vaadin.flow.component.contextmenu.MenuItemsArrayGenerator
-
Rebuilds the client-side items array with the current components in the menu and its sub menus.
- getChildren() - Method in class com.vaadin.flow.component.contextmenu.ContextMenuBase
-
Gets the child components of this component.
- getChildren() - Method in class com.vaadin.flow.component.contextmenu.MenuManager
-
Gets all (sub)menu children.
- getChildren() - Method in class com.vaadin.flow.component.contextmenu.SubMenuBase
-
Gets the child components of this sub menu.
- getContextMenu() - Method in class com.vaadin.flow.component.contextmenu.MenuItemBase
-
Gets the context menu component that this item belongs to.
- getItems() - Method in class com.vaadin.flow.component.contextmenu.ContextMenuBase
-
Gets the items added to this component (the children of this component that are instances of
MenuItem). - getItems() - Method in class com.vaadin.flow.component.contextmenu.MenuManager
-
Gets all children items.
- getItems() - Method in class com.vaadin.flow.component.contextmenu.SubMenuBase
-
Gets the items added to this sub menu (the children of this component that are instances of
MenuItem). - getMenuManager() - Method in class com.vaadin.flow.component.contextmenu.ContextMenuBase
-
Gets the menu manager.
- getMenuManager() - Method in class com.vaadin.flow.component.contextmenu.SubMenuBase
-
Gets a (sub) menu manager.
- getParentMenuItem() - Method in class com.vaadin.flow.component.contextmenu.SubMenuBase
-
Gets the menu item component that opens this sub menu.
- getSubMenu() - Method in class com.vaadin.flow.component.contextmenu.MenuItemBase
-
Gets the sub menu API for this menu item.
- getTarget() - Method in class com.vaadin.flow.component.contextmenu.ContextMenuBase
-
Gets the target component of this context menu, or
nullif it doesn't have a target.
H
- HasMenuItems - Interface in com.vaadin.flow.component.contextmenu
-
A common interface for components that can have
MenuItems with click listeners inside them. - hasThemeName(String) - Method in class com.vaadin.flow.component.contextmenu.MenuItemBase
-
Checks if the item has the given theme name.
I
- isCheckable() - Method in class com.vaadin.flow.component.contextmenu.MenuItemBase
-
Gets whether this item toggles a checkmark icon when clicked.
- isChecked() - Method in class com.vaadin.flow.component.contextmenu.MenuItemBase
-
Gets the checked state of this item.
- isDisableOnClick() - Method in class com.vaadin.flow.component.contextmenu.MenuItemBase
-
Gets whether the item is set to be disabled when clicked.
- isKeepOpen() - Method in class com.vaadin.flow.component.contextmenu.MenuItemBase
-
Gets whether clicking this item keeps the menu open.
- isOpened() - Method in class com.vaadin.flow.component.contextmenu.ContextMenuBase
-
Gets the open state from the context menu.
- isOpened() - Method in class com.vaadin.flow.component.contextmenu.ContextMenuBase.OpenedChangeEvent
- isOpenOnClick() - Method in class com.vaadin.flow.component.contextmenu.ContextMenuBase
-
Gets whether the context menu can be opened via left click.
- isParentItem() - Method in class com.vaadin.flow.component.contextmenu.MenuItemBase
-
Gets whether this item has a sub menu attached to it or not.
M
- MenuItem - Class in com.vaadin.flow.component.contextmenu
-
Item component used inside
ContextMenuandSubMenu. - MenuItem(ContextMenu, SerializableRunnable) - Constructor for class com.vaadin.flow.component.contextmenu.MenuItem
- MenuItemBase<C extends ContextMenuBase<C,
I, S>, I extends MenuItemBase<C, I, S>, S extends SubMenuBase<C, I, S>> - Class in com.vaadin.flow.component.contextmenu -
Base class for item component used inside
ContextMenus. - MenuItemBase(C) - Constructor for class com.vaadin.flow.component.contextmenu.MenuItemBase
-
Default constructor
- MenuItemsArrayGenerator<I extends MenuItemBase<?,
I, ?>> - Class in com.vaadin.flow.component.contextmenu -
A class which is utilized internally by components such as context menu and menu bar.
- MenuItemsArrayGenerator(Component) - Constructor for class com.vaadin.flow.component.contextmenu.MenuItemsArrayGenerator
- MenuManager<C extends com.vaadin.flow.component.Component,
I extends MenuItemBase<?, I, S>, S extends SubMenuBase<?, I, S>> - Class in com.vaadin.flow.component.contextmenu -
Common management logic for context menus and sub menus.
- MenuManager(C, SerializableRunnable, SerializableBiFunction<C, SerializableRunnable, I>, Class<I>, I) - Constructor for class com.vaadin.flow.component.contextmenu.MenuManager
-
Creates a new manager instance.
O
- onBeforeOpenMenu(JsonObject) - Method in class com.vaadin.flow.component.contextmenu.ContextMenuBase
-
Decides whether to open the menu when the
ContextMenuBase.beforeOpenHandler(DomEvent)is processed, sub-classes can easily override it and perform additional operations in this phase. - OpenedChangeEvent(TComponent, boolean) - Constructor for class com.vaadin.flow.component.contextmenu.ContextMenuBase.OpenedChangeEvent
R
- remove(Component...) - Method in class com.vaadin.flow.component.contextmenu.ContextMenuBase
-
Removes the given components from the context menu.
- remove(Component...) - Method in class com.vaadin.flow.component.contextmenu.MenuManager
-
Removes components to the (sub)menu.
- remove(Component...) - Method in class com.vaadin.flow.component.contextmenu.SubMenuBase
-
Removes the given components from the sub menu.
- removeAll() - Method in class com.vaadin.flow.component.contextmenu.ContextMenuBase
-
Removes all the child components.
- removeAll() - Method in class com.vaadin.flow.component.contextmenu.MenuManager
-
Remove all components and items from (sub)menu.
- removeAll() - Method in class com.vaadin.flow.component.contextmenu.SubMenuBase
-
Removes all components from the sub menu.
- removeThemeNames(String...) - Method in class com.vaadin.flow.component.contextmenu.MenuItemBase
-
Removes one or more theme names from this item.
S
- setCheckable(boolean) - Method in class com.vaadin.flow.component.contextmenu.MenuItemBase
-
Sets the checkable state of this menu item.
- setChecked(boolean) - Method in class com.vaadin.flow.component.contextmenu.MenuItemBase
-
Sets the checked state of this item.
- setDisableOnClick(boolean) - Method in class com.vaadin.flow.component.contextmenu.MenuItemBase
-
Sets whether the item should be disabled when clicked.
- setEnabled(boolean) - Method in class com.vaadin.flow.component.contextmenu.MenuItemBase
- setKeepOpen(boolean) - Method in class com.vaadin.flow.component.contextmenu.MenuItemBase
-
Sets the keep open state of this menu item.
- setOpenOnClick(boolean) - Method in class com.vaadin.flow.component.contextmenu.ContextMenuBase
-
Determines the way for opening the context menu.
- setTarget(Component) - Method in class com.vaadin.flow.component.contextmenu.ContextMenuBase
-
Sets the target component for this context menu.
- SubMenu - Class in com.vaadin.flow.component.contextmenu
-
API that allows adding content into the sub menus of a
ContextMenuto create hierarchical menus. - SubMenu(MenuItem, SerializableRunnable) - Constructor for class com.vaadin.flow.component.contextmenu.SubMenu
- SubMenuBase<C extends ContextMenuBase<C,
I, S>, I extends MenuItemBase<C, I, S>, S extends SubMenuBase<C, I, S>> - Class in com.vaadin.flow.component.contextmenu -
Base class for sub-menus in
ContextMenuBaseextensions. - SubMenuBase(I) - Constructor for class com.vaadin.flow.component.contextmenu.SubMenuBase
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form