Class JmixGroupGridContextMenu<E>
java.lang.Object
com.vaadin.flow.component.Component
com.vaadin.flow.component.contextmenu.ContextMenuBase<GridContextMenu<T>,GridMenuItem<T>,GridSubMenu<T>>
io.jmix.groupgridflowui.kit.vaadin.grid.contextmenu.GridContextMenu<E>
io.jmix.groupgridflowui.kit.component.JmixGroupGridContextMenu<E>
- Type Parameters:
E- item type
- All Implemented Interfaces:
com.vaadin.flow.component.AttachNotifier,com.vaadin.flow.component.DetachNotifier,com.vaadin.flow.component.HasComponents,com.vaadin.flow.component.HasElement,com.vaadin.flow.component.HasEnabled,com.vaadin.flow.component.HasStyle,HasSubParts,Serializable
Experimental. It can be changed or removed in later releases.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class io.jmix.groupgridflowui.kit.vaadin.grid.contextmenu.GridContextMenu
GridContextMenu.GridContextMenuItemClickEvent<T>, GridContextMenu.GridContextMenuOpenedEvent<T>Nested classes/interfaces inherited from class com.vaadin.flow.component.contextmenu.ContextMenuBase
com.vaadin.flow.component.contextmenu.ContextMenuBase.OpenedChangeEvent<TComponent extends com.vaadin.flow.component.contextmenu.ContextMenuBase<TComponent,?, ?>> -
Field Summary
Fields inherited from class com.vaadin.flow.component.contextmenu.ContextMenuBase
EVENT_DETAIL -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddItemAtIndex(int index, com.vaadin.flow.component.Component component) addItemAtIndex(int index, com.vaadin.flow.component.Component component, com.vaadin.flow.component.ComponentEventListener<GridContextMenu.GridContextMenuItemClickEvent<E>> clickListener) addItemAtIndex(int index, String text) addItemAtIndex(int index, String text, com.vaadin.flow.component.ComponentEventListener<GridContextMenu.GridContextMenuItemClickEvent<E>> clickListener) protected com.vaadin.flow.component.contextmenu.MenuManager<GridContextMenu<E>,GridMenuItem<E>, GridSubMenu<E>> createMenuManager(com.vaadin.flow.function.SerializableRunnable contentReset) protected GridMenuItem<E>findMenuItemByFullPathRecursive(Collection<GridMenuItem<E>> childItems, String[] ids) Performs recursive search for a menu item by id path parts (for example: ["cm1", "menu1", "item2"])protected GridMenuItem<E>findMenuItemByIdRecursive(Collection<GridMenuItem<E>> childItems, String id) Performs recursive search for a menu item by single id (for example: "item2")protected JmixMenuManager<GridContextMenu<E>,GridMenuItem<E>, GridSubMenu<E>> getSubPart(String name) Returns a sub part object by its name.Methods inherited from class io.jmix.groupgridflowui.kit.vaadin.grid.contextmenu.GridContextMenu
addGridContextMenuOpenedListener, addItem, addItem, getDynamicContentHandler, onBeforeOpenMenu, setDynamicContentHandler, setTargetMethods inherited from class com.vaadin.flow.component.contextmenu.ContextMenuBase
add, add, add, addComponent, addComponent, addComponentAsFirst, addComponentAtIndex, addItem, addItem, addOpenedChangeListener, addSeparator, close, getChildren, getItems, getTarget, isOpened, isOpenOnClick, remove, removeAll, setOpenOnClickMethods inherited from class com.vaadin.flow.component.Component
addListener, findAncestor, fireEvent, from, get, getElement, getEventBus, getId, getListeners, getLocale, getParent, getTranslation, getTranslation, getTranslation, getTranslation, getTranslation, getTranslation, getUI, hasListener, isAttached, isTemplateMapped, isVisible, onAttach, onDetach, onEnabledStateChanged, removeFromParent, scrollIntoView, scrollIntoView, set, setElement, setId, setVisibleMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.vaadin.flow.component.AttachNotifier
addAttachListenerMethods inherited from interface com.vaadin.flow.component.DetachNotifier
addDetachListenerMethods inherited from interface com.vaadin.flow.component.HasComponents
removeMethods inherited from interface com.vaadin.flow.component.HasElement
getElementMethods inherited from interface com.vaadin.flow.component.HasEnabled
isEnabled, setEnabledMethods inherited from interface com.vaadin.flow.component.HasStyle
addClassName, addClassNames, getClassName, getClassNames, getStyle, hasClassName, removeClassName, removeClassNames, setClassName, setClassName
-
Constructor Details
-
JmixGroupGridContextMenu
public JmixGroupGridContextMenu() -
JmixGroupGridContextMenu
-
-
Method Details
-
addItemAtIndex
-
addItemAtIndex
public GridMenuItem<E> addItemAtIndex(int index, String text, @Nullable com.vaadin.flow.component.ComponentEventListener<GridContextMenu.GridContextMenuItemClickEvent<E>> clickListener) -
addItemAtIndex
-
addItemAtIndex
public GridMenuItem<E> addItemAtIndex(int index, com.vaadin.flow.component.Component component, @Nullable com.vaadin.flow.component.ComponentEventListener<GridContextMenu.GridContextMenuItemClickEvent<E>> clickListener) -
createMenuManager
protected com.vaadin.flow.component.contextmenu.MenuManager<GridContextMenu<E>,GridMenuItem<E>, createMenuManagerGridSubMenu<E>> (com.vaadin.flow.function.SerializableRunnable contentReset) - Overrides:
createMenuManagerin classGridContextMenu<E>
-
getMenuManager
- Overrides:
getMenuManagerin classcom.vaadin.flow.component.contextmenu.ContextMenuBase<GridContextMenu<E>,GridMenuItem<E>, GridSubMenu<E>>
-
getSubPart
Description copied from interface:HasSubPartsReturns a sub part object by its name.- Specified by:
getSubPartin interfaceHasSubParts- Parameters:
name- sub part name, e.g. component id- Returns:
- a menu item with id matching the name if exists.
-
findMenuItemByIdRecursive
@Nullable protected GridMenuItem<E> findMenuItemByIdRecursive(Collection<GridMenuItem<E>> childItems, String id) Performs recursive search for a menu item by single id (for example: "item2") -
findMenuItemByFullPathRecursive
@Nullable protected GridMenuItem<E> findMenuItemByFullPathRecursive(Collection<GridMenuItem<E>> childItems, String[] ids) Performs recursive search for a menu item by id path parts (for example: ["cm1", "menu1", "item2"])
-