Class GridContextMenu.GridContextMenuOpenedEvent<T>

java.lang.Object
java.util.EventObject
com.vaadin.flow.component.ComponentEvent<TComponent>
com.vaadin.flow.component.contextmenu.ContextMenuBase.OpenedChangeEvent<GridContextMenu<T>>
io.jmix.groupgridflowui.kit.vaadin.grid.contextmenu.GridContextMenu.GridContextMenuOpenedEvent<T>
All Implemented Interfaces:
Serializable
Enclosing class:
GridContextMenu<T>

public static class GridContextMenu.GridContextMenuOpenedEvent<T> extends com.vaadin.flow.component.contextmenu.ContextMenuBase.OpenedChangeEvent<GridContextMenu<T>>
See Also:
  • Field Summary

    Fields inherited from class java.util.EventObject

    source
  • Constructor Summary

    Constructors
    Constructor
    Description
    GridContextMenuOpenedEvent(GridContextMenu<T> source, boolean fromClient)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    Gets the column ID in the Grid that was the target of the context-click, or an empty Optional if the context-click didn't target any application column in the Grid (eg.
    Gets the item in the Grid that was the target of the context-click, or an empty Optional if the context-click didn't target any item in the Grid (eg.

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

    isOpened

    Methods inherited from class com.vaadin.flow.component.ComponentEvent

    getSource, isFromClient, unregisterListener

    Methods inherited from class java.util.EventObject

    toString

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • GridContextMenuOpenedEvent

      public GridContextMenuOpenedEvent(GridContextMenu<T> source, boolean fromClient)
  • Method Details

    • getItem

      public Optional<T> getItem()
      Gets the item in the Grid that was the target of the context-click, or an empty Optional if the context-click didn't target any item in the Grid (eg. if targeting a header).
      Returns:
      the target item of the context-click
    • getColumnId

      public Optional<String> getColumnId()
      Gets the column ID in the Grid that was the target of the context-click, or an empty Optional if the context-click didn't target any application column in the Grid (eg. selection column).
      Returns:
      the target item of the context-click