|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.vaadin.client.widget.grid.RowReference<T>
T - the row object typepublic class RowReference<T>
A data class which contains information which identifies a row 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 | |
|---|---|
RowReference(Grid<T> grid)
Creates a new row reference for the given grid. |
|
| Method Summary | |
|---|---|
TableRowElement |
getElement()
Gets the table row element of the row. |
Grid<T> |
getGrid()
Gets the grid that contains the referenced row. |
T |
getRow()
Gets the row data object. |
int |
getRowIndex()
Gets the row index of the row. |
void |
set(int rowIndex,
T row,
TableRowElement element)
Sets the identifying information for this row. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public RowReference(Grid<T> grid)
grid - the grid that the row belongs to| Method Detail |
|---|
public void set(int rowIndex,
T row,
TableRowElement element)
rowIndex - the index of the rowrow - the row objectelemenet - the element of the rowpublic Grid<T> getGrid()
public int getRowIndex()
public T getRow()
public TableRowElement getElement()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||