com.vaadin.client.widget.escalator.
Class FlyweightCell
- java.lang.Object
-
- com.vaadin.client.widget.escalator.FlyweightCell
-
public class FlyweightCell extends Object
A
FlyweightCell
represents a cell in theGrid
orEscalator
at a certain point in time.Since the
FlyweightCell
follows theFlyweight
-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.Since:
7.4
Author:
Vaadin Ltd
-
-
Field Summary
Fields Modifier and Type Field and Description static String
COLSPAN_ATTR
-
Constructor Summary
Constructors Constructor and Description FlyweightCell(FlyweightRow row, int column)
-
Method Summary
All Methods Modifier and Type Method and Description int
getColSpan()
Return the colspan attribute of the element of the cell.
int
getColumn()
Returns the column index of the cell
com.google.gwt.dom.client.TableCellElement
getElement()
Returns the element of the cell.
int
getRow()
Returns the row index of the cell
void
setColSpan(int numberOfCells)
void
setElement(com.google.gwt.dom.client.TableCellElement element)
Sets the DOM element for this FlyweightCell, either a
TD
or aTH
.
-
-
-
Field Detail
-
COLSPAN_ATTR
public static final String COLSPAN_ATTR
See Also:
-
-
Constructor Detail
-
FlyweightCell
public FlyweightCell(FlyweightRow row, int column)
-
-
Method Detail
-
getRow
public int getRow()
Returns the row index of the cell
-
getColumn
public int getColumn()
Returns the column index of the cell
-
getElement
public com.google.gwt.dom.client.TableCellElement getElement()
Returns the element of the cell. Can be either a
TD
element or aTH
element.
-
getColSpan
public int getColSpan()
Return the colspan attribute of the element of the cell.
-
setElement
public void setElement(com.google.gwt.dom.client.TableCellElement element)
Sets the DOM element for this FlyweightCell, either a
TD
or aTH
. It is the caller's responsibility to actually insert the given element to the document when needed.Parameters:
element
- the element corresponding to this cell, cannot be null
-
setColSpan
public void setColSpan(int numberOfCells)
-
-