Class DataGrid.ItemClickEvent<E>

All Implemented Interfaces:
Serializable
Enclosing interface:
DataGrid<E>

public static class DataGrid.ItemClickEvent<E> extends DataGrid.DataGridClickEvent
Click event fired by a DataGrid
See Also:
  • Field Details

    • item

      protected E item
    • itemId

      protected Object itemId
    • columnId

      protected String columnId
  • Constructor Details

    • ItemClickEvent

      public ItemClickEvent(DataGrid component, MouseEventDetails details, E item, @Nullable Object itemId, @Nullable String columnId)
      Constructor for a item click event.
      Parameters:
      component - the DataGrid from which this event originates
      details - an instance of MouseEventDetails with information about mouse event details
      item - an entity instance represented by the clicked row
      itemId - an item Id
      columnId - id of the clicked DataGrid column
  • Method Details

    • getItem

      public E getItem()
      Returns:
      an entity instance represented by the clicked row
    • getItemId

      @Nullable public Object getItemId()
      Returns:
      an item Id
    • getColumnId

      @Nullable public String getColumnId()
      Returns:
      id of the clicked DataGrid column