|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.vaadin.client.widget.escalator.FlyweightCell
public class FlyweightCell
A FlyweightCell represents a cell in the Grid or
Escalator at a certain point in time.
Since the FlyweightCell 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.
| Field Summary | |
|---|---|
static java.lang.String |
COLSPAN_ATTR
|
| Constructor Summary | |
|---|---|
FlyweightCell(FlyweightRow row,
int column)
|
|
| Method Summary | |
|---|---|
int |
getColSpan()
Return the colspan attribute of the element of the cell. |
int |
getColumn()
Returns the column index of the cell |
TableCellElement |
getElement()
Returns the element of the cell. |
int |
getRow()
Returns the row index of the cell |
void |
setColSpan(int numberOfCells)
|
void |
setElement(TableCellElement element)
Sets the DOM element for this FlyweightCell, either a TD or
a TH. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String COLSPAN_ATTR
| Constructor Detail |
|---|
public FlyweightCell(FlyweightRow row,
int column)
| Method Detail |
|---|
public int getRow()
public int getColumn()
public TableCellElement getElement()
TD element
or a TH element.
public int getColSpan()
public void setElement(TableCellElement element)
TD or
a TH. It is the caller's responsibility to actually insert
the given element to the document when needed.
element - the element corresponding to this cell, cannot be nullpublic void setColSpan(int numberOfCells)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||