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 Summary
Constructors Constructor Description CellSelectionEvent(CellInformation<T> information, boolean selected)Creates the event.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)CellInformation<T>getCellInformation()inthashCode()booleanisSelected()CellSelectionEvent<T>reversed()Helper method that creates a new event with selection reversed.StringtoString()
-
-
-
Constructor Detail
-
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 Detail
-
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()
-
-