Index
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form
A
- ACCESSIBLE_DISABLED_MENU_ITEMS - Static variable in class com.vaadin.flow.component.contextmenu.AccessibleDisabledMenuItemsFeatureFlagProvider
- AccessibleDisabledMenuItemsFeatureFlagProvider - Class in com.vaadin.flow.component.contextmenu
- AccessibleDisabledMenuItemsFeatureFlagProvider() - Constructor for class com.vaadin.flow.component.contextmenu.AccessibleDisabledMenuItemsFeatureFlagProvider
- 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(Component, String) - Method in class com.vaadin.flow.component.contextmenu.ContextMenuBase
-
Creates a new menu item with the given component content and tooltip text and adds it to the context menu.
- addItem(Component, String) - Method in class com.vaadin.flow.component.contextmenu.MenuManager
-
Adds a component as a menu item with a tooltip text.
- addItem(Component, String) - Method in class com.vaadin.flow.component.contextmenu.SubMenu
-
Creates a new
MenuItemcomponent with the given tooltip text and adds it to this sub menu. - addItem(Component, String, ComponentEventListener<ClickEvent<MenuItem>>) - Method in class com.vaadin.flow.component.contextmenu.SubMenu
-
Creates a new
MenuItemcomponent with the given tooltip text and click listener and adds it to this sub menu. - addItem(Component, String, ComponentEventListener<ClickEvent<I>>) - Method in class com.vaadin.flow.component.contextmenu.MenuManager
-
Adds a component as a menu item with a tooltip text and 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.
- addItem(String, String) - Method in class com.vaadin.flow.component.contextmenu.ContextMenuBase
-
Creates a new menu item with the given text content and tooltip text and adds it to the context menu.
- addItem(String, String) - Method in class com.vaadin.flow.component.contextmenu.MenuManager
-
Adds a text as a menu item with a tooltip text.
- addItem(String, String) - Method in class com.vaadin.flow.component.contextmenu.SubMenu
-
Creates a new
MenuItemcomponent with the given text content and tooltip text and adds it to this sub menu. - addItem(String, String, ComponentEventListener<ClickEvent<MenuItem>>) - Method in class com.vaadin.flow.component.contextmenu.SubMenu
-
Creates a new
MenuItemcomponent with the given text content, tooltip text and click listener and adds it to this sub menu. - addItem(String, String, ComponentEventListener<ClickEvent<I>>) - Method in class com.vaadin.flow.component.contextmenu.MenuManager
-
Adds a text as a menu item with a tooltip text and 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.
B
- bindEnabled(Signal<Boolean>) - Method in class com.vaadin.flow.component.contextmenu.MenuItemBase
- BOTTOM - Enum constant in enum class com.vaadin.flow.component.contextmenu.ContextMenuPosition
- BOTTOM_END - Enum constant in enum class com.vaadin.flow.component.contextmenu.ContextMenuPosition
- BOTTOM_START - Enum constant in enum class com.vaadin.flow.component.contextmenu.ContextMenuPosition
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,
I, - Class in com.vaadin.flow.component.contextmenuS> -
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> - Class in com.vaadin.flow.component.contextmenu
-
opened-changedevent is sent when the opened state changes. - ContextMenuPosition - Enum Class in com.vaadin.flow.component.contextmenu
-
Context menu position in relation to the target element.
- 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
- END - Enum constant in enum class com.vaadin.flow.component.contextmenu.ContextMenuPosition
- END_BOTTOM - Enum constant in enum class com.vaadin.flow.component.contextmenu.ContextMenuPosition
- END_TOP - Enum constant in enum class com.vaadin.flow.component.contextmenu.ContextMenuPosition
- ensureTooltipElement() - Method in class com.vaadin.flow.component.contextmenu.MenuItemBase
- EVENT_DETAIL - Static variable in class com.vaadin.flow.component.contextmenu.ContextMenuBase
- executeJsWhenAttached(String, Serializable...) - Method in class com.vaadin.flow.component.contextmenu.MenuItemBase
-
Deprecated, for removal: This API element is subject to removal in a future version.
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.
- getContextMenus(Component) - Static method in class com.vaadin.flow.component.contextmenu.ContextMenu
-
Gets the context menus that have the given component as their target, in the order their target was set.
- getContextMenus(Component, Class<? super M>) - Static method in class com.vaadin.flow.component.contextmenu.ContextMenuBase
-
Gets the context menus of the given type that have the given component as their target, in the order their target was set.
- getDownloadHandler() - Method in class com.vaadin.flow.component.contextmenu.MenuItem
-
Gets the handler that produces the file downloaded when the item is clicked.
- getFeatures() - Method in class com.vaadin.flow.component.contextmenu.AccessibleDisabledMenuItemsFeatureFlagProvider
- 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). - getMenuDownloadManager() - Method in class com.vaadin.flow.component.contextmenu.MenuItem
-
Gets the manager for the download registrations of the menu that this item belongs to.
- 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.
- getPosition() - Method in class com.vaadin.flow.component.contextmenu.ContextMenu
-
Gets position of the context menu with respect to its
target. - getPosition() - Method in enum class com.vaadin.flow.component.contextmenu.ContextMenuPosition
- 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
- MenuDownloadManager - Class in com.vaadin.flow.component.contextmenu
-
Manages the download registrations of the items of a menu, including the items of its sub menus.
- MenuDownloadManager(Component, SerializableSupplier<List<MenuItem>>, SerializableFunction<MenuItem, Component>) - Constructor for class com.vaadin.flow.component.contextmenu.MenuDownloadManager
-
Creates a manager for the download registrations of a menu.
- 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,
I, - Class in com.vaadin.flow.component.contextmenuS> -
Base class for item component used inside
ContextMenus. - MenuItemBase(C) - Constructor for class com.vaadin.flow.component.contextmenu.MenuItemBase
-
Default constructor
- MenuItemBase(C, SerializableRunnable) - Constructor for class com.vaadin.flow.component.contextmenu.MenuItemBase
-
Creates a menu item belonging to the given menu.
- MenuItemsArrayGenerator<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,
I, - Class in com.vaadin.flow.component.contextmenuS> -
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(ObjectNode) - 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 from 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.
- setDownloadHandler(DownloadHandler) - Method in class com.vaadin.flow.component.contextmenu.MenuItem
-
Sets a handler that produces a file to download when the item is clicked.
- setEnabled(boolean) - Method in class com.vaadin.flow.component.contextmenu.MenuItem
-
Sets the menu item explicitly disabled or enabled.
- 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.
- setPosition(ContextMenuPosition) - Method in class com.vaadin.flow.component.contextmenu.ContextMenu
-
Sets position of the context menu with respect to its target.
- setTarget(Component) - Method in class com.vaadin.flow.component.contextmenu.ContextMenu
- setTarget(Component) - Method in class com.vaadin.flow.component.contextmenu.ContextMenuBase
-
Sets the target component for this context menu.
- setTooltipPosition(Tooltip.TooltipPosition) - Method in class com.vaadin.flow.component.contextmenu.MenuItemBase
-
Sets the tooltip position for this menu item, overriding the default.
- setTooltipText(String) - Method in class com.vaadin.flow.component.contextmenu.MenuItemBase
-
Sets the tooltip text for this menu item.
- START - Enum constant in enum class com.vaadin.flow.component.contextmenu.ContextMenuPosition
- START_BOTTOM - Enum constant in enum class com.vaadin.flow.component.contextmenu.ContextMenuPosition
- START_TOP - Enum constant in enum class com.vaadin.flow.component.contextmenu.ContextMenuPosition
- 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,
I, - Class in com.vaadin.flow.component.contextmenuS> -
Base class for sub-menus in
ContextMenuBaseextensions. - SubMenuBase(I) - Constructor for class com.vaadin.flow.component.contextmenu.SubMenuBase
T
- TOP - Enum constant in enum class com.vaadin.flow.component.contextmenu.ContextMenuPosition
- TOP_END - Enum constant in enum class com.vaadin.flow.component.contextmenu.ContextMenuPosition
- TOP_START - Enum constant in enum class com.vaadin.flow.component.contextmenu.ContextMenuPosition
U
- update() - Method in class com.vaadin.flow.component.contextmenu.MenuDownloadManager
-
Registers the download handlers of the items in the menu on the component that currently owns their registration, and removes the registrations of items that are no longer in the menu or no longer have a download handler.
V
- valueOf(String) - Static method in enum class com.vaadin.flow.component.contextmenu.ContextMenuPosition
-
Returns the enum constant of this class with the specified name.
- values() - Static method in enum class com.vaadin.flow.component.contextmenu.ContextMenuPosition
-
Returns an array containing the constants of this enum class, in the order they are declared.
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form
JsInvokersinterface and call it withElement.executeJs(Class)instead. This method will be removed in a future release.