com.vaadin.client.widget.grid.
Class EventCellReference<T>
- java.lang.Object
-
- com.vaadin.client.widget.grid.CellReference<T>
-
- com.vaadin.client.widget.grid.EventCellReference<T>
-
public class EventCellReference<T> extends CellReference<T>
A data class which contains information which identifies a cell being the target of an event from
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.Since:
7.4
Author:
Vaadin Ltd
-
-
Constructor Summary
Constructors Constructor and Description EventCellReference(Grid<T> grid)
-
Method Summary
All Methods 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)
Sets the RowReference and CellReference to point to given Cell.
-
Methods inherited from class com.vaadin.client.widget.grid.CellReference
getColumn, getColumnIndex, getColumnIndexDOM, getGrid, getRow, getRowIndex, getRowReference, getValue, set
-
-
-
-
Method Detail
-
set
public void set(Cell targetCell, GridConstants.Section section)
Sets the RowReference and CellReference to point to given Cell.
Parameters:
targetCell
- cell to point to
-
getElement
public com.google.gwt.dom.client.TableCellElement getElement()
Description copied from class:
CellReference
Get the element of the cell.
Overrides:
getElement
in classCellReference<T>
Returns:
the element of the cell
-
isHeader
public boolean isHeader()
Is the cell reference for a cell in the header of the Grid.
Returns:
true if referenced cell is in the header,
false
if notSince:
7.5
-
isBody
public boolean isBody()
Is the cell reference for a cell in the body of the Grid.
Returns:
true if referenced cell is in the body,
false
if notSince:
7.5
-
isFooter
public boolean isFooter()
Is the cell reference for a cell in the footer of the Grid.
Returns:
true if referenced cell is in the footer,
false
if notSince:
7.5
-
getSection
public GridConstants.Section getSection()
Gets the Grid section where the referenced cell is.
Returns:
grid section
Since:
7.5
-
-