public interface ContextMenuBuilder extends ContextMenuConfigurator<ClickEventListener<com.vaadin.flow.component.contextmenu.MenuItem,ClickEvent<com.vaadin.flow.component.contextmenu.MenuItem>>,com.vaadin.flow.component.contextmenu.ContextMenu,com.vaadin.flow.component.contextmenu.MenuItem,com.vaadin.flow.component.contextmenu.SubMenu,ContextMenuBuilder>
ContextMenu component builder.ContextMenuConfigurator.MenuItemBuilder<L extends EventListener,M extends com.vaadin.flow.component.contextmenu.ContextMenuBase<M,I,S>,I extends com.vaadin.flow.component.contextmenu.MenuItemBase<M,I,S>,S extends com.vaadin.flow.component.contextmenu.SubMenuBase<M,I,S>,B extends ContextMenuConfigurator<L,M,I,S,B>>ComponentConfigurator.BaseComponentConfiguratorHasStyleConfigurator.BaseHasStyleConfigurator| Modifier and Type | Method and Description |
|---|---|
default com.vaadin.flow.component.contextmenu.ContextMenu |
build()
Build the
ContextMenu. |
com.vaadin.flow.component.contextmenu.ContextMenu |
build(com.vaadin.flow.component.Component target)
Build the
ContextMenu and bind it to the given target component. |
default com.vaadin.flow.component.contextmenu.ContextMenu |
build(HasComponent target)
Build the
ContextMenu and bind it to the given target component. |
static ContextMenuBuilder |
create()
Create a new
ContextMenuBuilder to create and configure ContextMenu component instances. |
openOnClick, withItem, withItem, withItem, withItem, withItem, withItem, withItem, withItem, withItem, withItem, withOpenedChangeListenercreate, elementConfiguration, hidden, id, visible, withAttachListener, withDetachListenerwithEventListener, withEventListener, withThemeNamecreate, styleName, styleNamescom.vaadin.flow.component.contextmenu.ContextMenu build(com.vaadin.flow.component.Component target)
ContextMenu and bind it to the given target component.
By default, the context menu can be opened with a right click or a long touch on the target component.
target - The target component for this context menuContextMenu instancedefault com.vaadin.flow.component.contextmenu.ContextMenu build(HasComponent target)
ContextMenu and bind it to the given target component.
By default, the context menu can be opened with a right click or a long touch on the target component.
target - The target component for this context menuContextMenu instancedefault com.vaadin.flow.component.contextmenu.ContextMenu build()
ContextMenu. The context menu will not be bound to any target component, the
ContextMenuBase.setTarget(Component) method should be used later to configure the target component.ContextMenu instancestatic ContextMenuBuilder create()
ContextMenuBuilder to create and configure ContextMenu component instances.ContextMenuBuilderCopyright © 2020 The Holon Platform. All rights reserved.