T - The row type of the grid. The row type is the POJO type from where
the data is retrieved into the column cells.public class EventCellReference<T> extends CellReference<T>
Grid.
Since this class follows the Flyweight-pattern any instance of
this object is subject to change without the user knowing it and so should
not be stored anywhere outside of the method providing these instances.
| Constructor and Description |
|---|
EventCellReference(Grid<T> grid)
Constructs a cell reference for an event targeting a grid cell.
|
| Modifier and Type | Method and Description |
|---|---|
com.google.gwt.dom.client.TableCellElement |
getElement()
Get the element of the cell.
|
GridConstants.Section |
getSection()
Gets the Grid section where the referenced cell is.
|
boolean |
isBody()
Is the cell reference for a cell in the body of the Grid.
|
boolean |
isFooter()
Is the cell reference for a cell in the footer of the Grid.
|
boolean |
isHeader()
Is the cell reference for a cell in the header of the Grid.
|
void |
set(Cell targetCell,
GridConstants.Section section)
Configures this CellReference and its internal RowReference to point to
the given Cell.
|
getColumn, getColumnIndex, getColumnIndexDOM, getGrid, getRow, getRowIndex, getRowReference, getValue, setpublic EventCellReference(Grid<T> grid)
#set(Cell, Section).grid - the grid the event originates fromEventCellReferencepublic void set(Cell targetCell, GridConstants.Section section)
targetCell - the cell to point tosection - the section the cell belongs topublic com.google.gwt.dom.client.TableCellElement getElement()
CellReferencegetElement in class CellReference<T>public boolean isHeader()
true if referenced cell is in the header,
false if notpublic boolean isBody()
true if referenced cell is in the body,
false if notpublic boolean isFooter()
true if referenced cell is in the footer,
false if notpublic GridConstants.Section getSection()
Copyright © 2023 Vaadin Ltd. All rights reserved.