public class Header.Row extends StaticSection.StaticRow<Header.Row.Cell> implements HeaderRow
| Modifier and Type | Class and Description |
|---|---|
class |
Header.Row.Cell
A cell in a Grid header row.
|
| Modifier | Constructor and Description |
|---|---|
protected |
Row()
Creates a new header row.
|
| Modifier and Type | Method and Description |
|---|---|
protected Header.Row.Cell |
createCell()
Creates and returns a new instance of the cell type.
|
protected String |
getCellTagName()
Returns the declarative tag name used for the cells in this row.
|
protected boolean |
isDefault()
Returns whether this row is the default header row.
|
HeaderCell |
join(Grid.Column<?,?>... columnsToMerge)
Merges cells corresponding to the given columns in the row.
|
HeaderCell |
join(HeaderCell... cellsToMerge)
Merges column cells in the row.
|
HeaderCell |
join(Set<HeaderCell> cellsToMerge)
Merges column cells in the row.
|
HeaderCell |
join(String... columnIdsToMerge)
Merges cells corresponding to the given column ids in the row.
|
protected void |
readDesign(org.jsoup.nodes.Element trElement,
DesignContext designContext)
Reads the declarative design from the given table row element.
|
protected void |
setDefault(boolean defaultHeader)
Sets whether this row is the default header row.
|
protected void |
writeDesign(org.jsoup.nodes.Element trElement,
DesignContext designContext)
Writes the declarative design to the given table row element.
|
addCell, addCell, getCell, getCell, getComponents, getRowState, getStyleName, internalAddCell, internalGetCell, removeCell, setStyleName, writeCellStateclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetCell, getCell, getComponents, getStyleName, setStyleNameprotected Header.Row.Cell createCell()
StaticSection.StaticRowcreateCell in class StaticSection.StaticRow<Header.Row.Cell>protected String getCellTagName()
StaticSection.StaticRowgetCellTagName in class StaticSection.StaticRow<Header.Row.Cell>protected boolean isDefault()
true if this row is the default row, false
otherwise.protected void setDefault(boolean defaultHeader)
defaultHeader - true to set to default, false otherwise.public HeaderCell join(Set<HeaderCell> cellsToMerge)
join in interface HeaderRowcellsToMerge - the cells which should be merged. The cells should not be
merged to any other cell set.join(HeaderCell...),
setCaptionpublic HeaderCell join(HeaderCell... cellsToMerge)
join in interface HeaderRowcellsToMerge - the cells which should be merged. The cells should not be
merged to any other cell set.join(Set),
setCaptionpublic HeaderCell join(Grid.Column<?,?>... columnsToMerge)
HeaderRowjoin in interface HeaderRowcolumnsToMerge - the columns of the cells that should be merged. The cells
should not be merged to any other cell set.HeaderRow.join(Set),
setCaptionpublic HeaderCell join(String... columnIdsToMerge)
HeaderRowjoin in interface HeaderRowcolumnIdsToMerge - the ids of the columns of the cells that should be merged. The
cells should not be merged to any other cell set.HeaderRow.join(Set),
setCaption,
Grid.Column.setId(String)protected void readDesign(org.jsoup.nodes.Element trElement,
DesignContext designContext)
StaticSection.StaticRowreadDesign in class StaticSection.StaticRow<Header.Row.Cell>trElement - Element to read design fromdesignContext - the design contextprotected void writeDesign(org.jsoup.nodes.Element trElement,
DesignContext designContext)
StaticSection.StaticRowwriteDesign in class StaticSection.StaticRow<Header.Row.Cell>trElement - Element to write design todesignContext - the design contextCopyright © 2022 Vaadin Ltd. All rights reserved.