T
- the type of the row object containing this cellpublic class CellReference<T> extends Object
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 |
---|
CellReference(RowReference<T> rowReference) |
Modifier and Type | Method and Description |
---|---|
Grid.Column<?,T> |
getColumn()
Gets the column objects.
|
int |
getColumnIndex()
Gets the index of the column.
|
int |
getColumnIndexDOM()
Gets the index of the cell in the DOM.
|
com.google.gwt.dom.client.TableCellElement |
getElement()
Get the element of the cell.
|
Grid<T> |
getGrid()
Gets the grid that contains the referenced cell.
|
T |
getRow()
Gets the row data object.
|
int |
getRowIndex()
Gets the row index of the row.
|
protected RowReference<T> |
getRowReference()
Gets the RowReference for this CellReference.
|
Object |
getValue()
Gets the value of the cell.
|
void |
set(int columnIndexDOM,
int columnIndex,
Grid.Column<?,T> column)
Sets the identifying information for this cell.
|
public CellReference(RowReference<T> rowReference)
public void set(int columnIndexDOM, int columnIndex, Grid.Column<?,T> column)
The difference between columnIndexDOM
and columnIndex
comes from hidden columns.
columnIndexDOM
- the index of the column in the DOMcolumnIndex
- the index of the columncolumn
- the column objectpublic Grid<T> getGrid()
public int getRowIndex()
public T getRow()
public int getColumnIndex()
NOTE: The index includes hidden columns in the count, unlike
getColumnIndexDOM()
.
public int getColumnIndexDOM()
getColumnIndex()
is caused by hidden columns.public Grid.Column<?,T> getColumn()
public Object getValue()
public com.google.gwt.dom.client.TableCellElement getElement()
protected RowReference<T> getRowReference()
Copyright © 2018 Vaadin Ltd. All rights reserved.