public class RendererCellReference extends CellReference<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 |
---|
RendererCellReference(RowReference<Object> rowReference)
Creates a new renderer cell reference bound to a row reference.
|
Modifier and Type | Method and Description |
---|---|
int |
getColSpan()
Gets the colspan attribute of the element of this cell.
|
com.google.gwt.dom.client.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.
|
getColumn, getColumnIndex, getColumnIndexDOM, getGrid, getRow, getRowIndex, getRowReference, getValue, set
public RendererCellReference(RowReference<Object> rowReference)
rowReference
- the row reference to bind topublic 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 com.google.gwt.dom.client.TableCellElement getElement()
TD
element
or a TH
element.getElement
in class CellReference<Object>
public void setColSpan(int numberOfCells)
numberOfCells
- the number of columns that the cell should spanpublic int getColSpan()
Copyright © 2020 Vaadin Ltd. All rights reserved.