Class JmixGridContextMenu<E>

java.lang.Object
com.vaadin.flow.component.Component
com.vaadin.flow.component.contextmenu.ContextMenuBase<com.vaadin.flow.component.grid.contextmenu.GridContextMenu<T>,com.vaadin.flow.component.grid.contextmenu.GridMenuItem<T>,com.vaadin.flow.component.grid.contextmenu.GridSubMenu<T>>
com.vaadin.flow.component.grid.contextmenu.GridContextMenu<E>
io.jmix.flowui.kit.component.grid.JmixGridContextMenu<E>
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

public class JmixGridContextMenu<E> extends com.vaadin.flow.component.grid.contextmenu.GridContextMenu<E> implements HasSubParts
See Also:
  • Nested Class Summary

    Nested classes/interfaces inherited from class com.vaadin.flow.component.grid.contextmenu.GridContextMenu

    com.vaadin.flow.component.grid.contextmenu.GridContextMenu.GridContextMenuItemClickEvent<T extends Object>, com.vaadin.flow.component.grid.contextmenu.GridContextMenu.GridContextMenuOpenedEvent<T extends Object>

    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
    Constructor
    Description
     
    JmixGridContextMenu(com.vaadin.flow.component.grid.Grid<E> target)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    com.vaadin.flow.component.grid.contextmenu.GridMenuItem<E>
    addItemAtIndex(int index, com.vaadin.flow.component.Component component)
     
    com.vaadin.flow.component.grid.contextmenu.GridMenuItem<E>
    addItemAtIndex(int index, com.vaadin.flow.component.Component component, com.vaadin.flow.component.ComponentEventListener<com.vaadin.flow.component.grid.contextmenu.GridContextMenu.GridContextMenuItemClickEvent<E>> clickListener)
     
    com.vaadin.flow.component.grid.contextmenu.GridMenuItem<E>
    addItemAtIndex(int index, String text)
     
    com.vaadin.flow.component.grid.contextmenu.GridMenuItem<E>
    addItemAtIndex(int index, String text, com.vaadin.flow.component.ComponentEventListener<com.vaadin.flow.component.grid.contextmenu.GridContextMenu.GridContextMenuItemClickEvent<E>> clickListener)
     
    protected com.vaadin.flow.component.contextmenu.MenuManager<com.vaadin.flow.component.grid.contextmenu.GridContextMenu<E>,com.vaadin.flow.component.grid.contextmenu.GridMenuItem<E>,com.vaadin.flow.component.grid.contextmenu.GridSubMenu<E>>
    createMenuManager(com.vaadin.flow.function.SerializableRunnable contentReset)
     
    protected com.vaadin.flow.component.grid.contextmenu.GridMenuItem<E>
    findMenuItemByFullPathRecursive(Collection<com.vaadin.flow.component.grid.contextmenu.GridMenuItem<E>> childItems, String[] ids)
    Performs recursive search for a menu item by id path parts (for example: ["cm1", "menu1", "item2"])
    protected com.vaadin.flow.component.grid.contextmenu.GridMenuItem<E>
    findMenuItemByIdRecursive(Collection<com.vaadin.flow.component.grid.contextmenu.GridMenuItem<E>> childItems, String id)
    Performs recursive search for a menu item by single id (for example: "item2")
    protected JmixMenuManager<com.vaadin.flow.component.grid.contextmenu.GridContextMenu<E>,com.vaadin.flow.component.grid.contextmenu.GridMenuItem<E>,com.vaadin.flow.component.grid.contextmenu.GridSubMenu<E>>
     
     

    Methods inherited from class com.vaadin.flow.component.grid.contextmenu.GridContextMenu

    addGridContextMenuOpenedListener, addItem, addItem, getDynamicContentHandler, onBeforeOpenMenu, setDynamicContentHandler, setTarget

    Methods inherited from class com.vaadin.flow.component.contextmenu.ContextMenuBase

    add, addComponentAtIndex, addItem, addItem, addOpenedChangeListener, close, getChildren, getItems, getTarget, isOpened, isOpenOnClick, remove, removeAll, setOpenOnClick

    Methods 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, setVisible

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface com.vaadin.flow.component.AttachNotifier

    addAttachListener

    Methods inherited from interface com.vaadin.flow.component.DetachNotifier

    addDetachListener

    Methods inherited from interface com.vaadin.flow.component.HasComponents

    add, add, addComponentAsFirst, remove

    Methods inherited from interface com.vaadin.flow.component.HasElement

    getElement

    Methods inherited from interface com.vaadin.flow.component.HasEnabled

    isEnabled, setEnabled

    Methods inherited from interface com.vaadin.flow.component.HasStyle

    addClassName, addClassNames, getClassName, getClassNames, getStyle, hasClassName, removeClassName, removeClassNames, setClassName, setClassName
  • Constructor Details

    • JmixGridContextMenu

      public JmixGridContextMenu()
    • JmixGridContextMenu

      public JmixGridContextMenu(com.vaadin.flow.component.grid.Grid<E> target)
  • Method Details

    • addItemAtIndex

      public com.vaadin.flow.component.grid.contextmenu.GridMenuItem<E> addItemAtIndex(int index, String text)
    • addItemAtIndex

      public com.vaadin.flow.component.grid.contextmenu.GridMenuItem<E> addItemAtIndex(int index, String text, @Nullable com.vaadin.flow.component.ComponentEventListener<com.vaadin.flow.component.grid.contextmenu.GridContextMenu.GridContextMenuItemClickEvent<E>> clickListener)
    • addItemAtIndex

      public com.vaadin.flow.component.grid.contextmenu.GridMenuItem<E> addItemAtIndex(int index, com.vaadin.flow.component.Component component)
    • addItemAtIndex

      public com.vaadin.flow.component.grid.contextmenu.GridMenuItem<E> addItemAtIndex(int index, com.vaadin.flow.component.Component component, @Nullable com.vaadin.flow.component.ComponentEventListener<com.vaadin.flow.component.grid.contextmenu.GridContextMenu.GridContextMenuItemClickEvent<E>> clickListener)
    • createMenuManager

      protected com.vaadin.flow.component.contextmenu.MenuManager<com.vaadin.flow.component.grid.contextmenu.GridContextMenu<E>,com.vaadin.flow.component.grid.contextmenu.GridMenuItem<E>,com.vaadin.flow.component.grid.contextmenu.GridSubMenu<E>> createMenuManager(com.vaadin.flow.function.SerializableRunnable contentReset)
      Overrides:
      createMenuManager in class com.vaadin.flow.component.grid.contextmenu.GridContextMenu<E>
    • getMenuManager

      protected JmixMenuManager<com.vaadin.flow.component.grid.contextmenu.GridContextMenu<E>,com.vaadin.flow.component.grid.contextmenu.GridMenuItem<E>,com.vaadin.flow.component.grid.contextmenu.GridSubMenu<E>> getMenuManager()
      Overrides:
      getMenuManager in class com.vaadin.flow.component.contextmenu.ContextMenuBase<com.vaadin.flow.component.grid.contextmenu.GridContextMenu<E>,com.vaadin.flow.component.grid.contextmenu.GridMenuItem<E>,com.vaadin.flow.component.grid.contextmenu.GridSubMenu<E>>
    • getSubPart

      @Nullable public Object getSubPart(String name)
      Specified by:
      getSubPart in interface HasSubParts
      Returns:
      a menu item with id matching the name if exists.
    • findMenuItemByIdRecursive

      @Nullable protected com.vaadin.flow.component.grid.contextmenu.GridMenuItem<E> findMenuItemByIdRecursive(Collection<com.vaadin.flow.component.grid.contextmenu.GridMenuItem<E>> childItems, String id)
      Performs recursive search for a menu item by single id (for example: "item2")
    • findMenuItemByFullPathRecursive

      @Nullable protected com.vaadin.flow.component.grid.contextmenu.GridMenuItem<E> findMenuItemByFullPathRecursive(Collection<com.vaadin.flow.component.grid.contextmenu.GridMenuItem<E>> childItems, String[] ids)
      Performs recursive search for a menu item by id path parts (for example: ["cm1", "menu1", "item2"])