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)
Creates and adds a cell to this row for the given column.
|
protected abstract CELLTYPE |
createCell()
Creates a cell of a type that matches this row.
|
CELLTYPE |
getCell(Grid.Column<?,?> column)
Returns the cell on given GridColumn.
|
protected Grid.StaticSection<?> |
getSection()
Returns the section where this row belongs.
|
protected int |
getSizeOfCellGroup(Grid.Column<?,?> column)
Returns the size of the cell group for the given column.
|
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)
Removes a cell for the given column from this row.
|
protected void |
setSection(Grid.StaticSection<?> section)
Sets the section where this row belongs.
|
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 int getSizeOfCellGroup(Grid.Column<?,?> column)
column - the column whose cell group size is being investigated0protected void addCell(Grid.Column<?,?> column)
column - the column that requires a new cellprotected void removeCell(Grid.Column<?,?> column)
column - the column that should have its cell reference clearedprotected abstract CELLTYPE createCell()
protected Grid.StaticSection<?> getSection()
protected void setSection(Grid.StaticSection<?> section)
section - the section to setpublic String getStyleName()
public void setStyleName(String styleName)
styleName - the style name to set or null to not use any style
nameCopyright © 2023 Vaadin Ltd. All rights reserved.