T - the row object typepublic class RowReference<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 |
|---|
RowReference(Grid<T> grid)
Creates a new row reference for the given grid.
|
| Modifier and Type | Method and Description |
|---|---|
com.google.gwt.dom.client.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,
com.google.gwt.dom.client.TableRowElement element)
Sets the identifying information for this row.
|
public void set(int rowIndex,
T row,
com.google.gwt.dom.client.TableRowElement element)
rowIndex - the index of the rowrow - the row objectelement - the element of the rowpublic Grid<T> getGrid()
public int getRowIndex()
public T getRow()
public com.google.gwt.dom.client.TableRowElement getElement()
Copyright © 2018 Vaadin Ltd. All rights reserved.