CELLTYPE
- the type of the cells in the rowpublic abstract static class Grid.StaticSection.StaticRow<CELLTYPE extends Grid.StaticSection.StaticCell> extends Object
Constructor and Description |
---|
StaticRow() |
Modifier and Type | Method and Description |
---|---|
protected void |
addCell(Grid.Column<?,?> column) |
protected abstract CELLTYPE |
createCell() |
CELLTYPE |
getCell(Grid.Column<?,?> column)
Returns the cell on given GridColumn.
|
protected Grid.StaticSection<?> |
getSection() |
String |
getStyleName()
Returns the custom style name for this row.
|
boolean |
hasSpannedCells()
Returns
true if this row contains spanned cells. |
CELLTYPE |
join(CELLTYPE... cells)
Merges columns cells in a row
|
CELLTYPE |
join(Grid.Column<?,?>... columns)
Merges columns cells in a row
|
protected void |
removeCell(Grid.Column<?,?> column) |
protected void |
setSection(Grid.StaticSection<?> section) |
void |
setStyleName(String styleName)
Sets a custom style name for this row.
|
public CELLTYPE getCell(Grid.Column<?,?> column)
column
- the column in gridpublic boolean hasSpannedCells()
true
if this row contains spanned cells.public CELLTYPE join(Grid.Column<?,?>... columns)
columns
- the columns which header should be mergedpublic CELLTYPE join(CELLTYPE... cells)
cells
- The cells to merge. Must be from the same row.protected void addCell(Grid.Column<?,?> column)
protected void removeCell(Grid.Column<?,?> column)
protected abstract CELLTYPE createCell()
protected Grid.StaticSection<?> getSection()
protected void setSection(Grid.StaticSection<?> section)
public String getStyleName()
public void setStyleName(String styleName)
styleName
- the style name to set or null to not use any style
nameCopyright © 2016 Vaadin Ltd. All rights reserved.