Class CellSelectionEvent<T>

java.lang.Object
org.vaadin.miki.superfields.itemgrid.CellSelectionEvent<T>
Type Parameters:
T - Type of data associated with each cell event.

public class CellSelectionEvent<T> extends Object
Stores information about a cell being selected or not.
Since:
2020-04-15
Author:
miki
  • Constructor Details

    • CellSelectionEvent

      public CellSelectionEvent(CellInformation<T> information, boolean selected)
      Creates the event.
      Parameters:
      information - Information about the affected cell.
      selected - Whether or not the cell is now selected.
  • Method Details

    • reversed

      public CellSelectionEvent<T> reversed()
      Helper method that creates a new event with selection reversed.
      Returns:
      A new object, identical to the current one except isSelected() flag.
    • isSelected

      public boolean isSelected()
    • getCellInformation

      public CellInformation<T> getCellInformation()
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object