|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.vaadin.client.widget.grid.CellReference<java.lang.Object>
com.vaadin.client.widget.grid.RendererCellReference
public class RendererCellReference
A data class which contains information which identifies a cell being
rendered 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 | |
|---|---|
RendererCellReference(RowReference<java.lang.Object> rowReference)
Creates a new renderer cell reference bound to a row reference. |
|
| Method Summary | |
|---|---|
int |
getColSpan()
Gets the colspan attribute of the element of this cell. |
TableCellElement |
getElement()
Returns the element of the cell. |
void |
set(FlyweightCell cell,
int columnIndex,
Grid.Column<?,?> column)
Sets the identifying information for this cell. |
void |
setColSpan(int numberOfCells)
Sets the colspan attribute of the element of this cell. |
| Methods inherited from class com.vaadin.client.widget.grid.CellReference |
|---|
getColumn, getColumnIndex, getColumnIndexDOM, getGrid, getRow, getRowIndex, getRowReference, getValue, set |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public RendererCellReference(RowReference<java.lang.Object> rowReference)
rowReference - the row reference to bind to| Method Detail |
|---|
public void set(FlyweightCell cell,
int columnIndex,
Grid.Column<?,?> column)
cell - the flyweight cell to referencecolumnIndex - the index of the column in the grid, including hidden cellscolumn - the column to referencepublic TableCellElement getElement()
TD element
or a TH element.
getElement in class CellReference<java.lang.Object>public void setColSpan(int numberOfCells)
numberOfCells - the number of columns that the cell should spanpublic int getColSpan()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||