|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.vaadin.client.widget.grid.CellReference<T>
T - the type of the row object containing this cellpublic class CellReference<T>
A data class which contains information which identifies a cell in a
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 Summary | |
|---|---|
CellReference(RowReference<T> rowReference)
|
|
| Method Summary | |
|---|---|
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. |
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. |
java.lang.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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CellReference(RowReference<T> rowReference)
| Method Detail |
|---|
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 java.lang.Object getValue()
public TableCellElement getElement()
protected RowReference<T> getRowReference()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||