protected static class Grid.Header extends Grid.StaticSection<Grid.HeaderRow>
Grid.StaticSection.StaticRow<CELLTYPE extends com.vaadin.ui.Grid.StaticSection.StaticCell>
grid, rows
Modifier and Type | Method and Description |
---|---|
protected Grid.HeaderRow |
createRow() |
Grid.HeaderRow |
getDefaultRow()
Returns the current default row of this header.
|
protected GridStaticSectionState |
getSectionState() |
protected void |
readDesign(org.jsoup.nodes.Element tableSectionElement,
DesignContext designContext)
Writes the declarative design from the given table section element.
|
Grid.HeaderRow |
removeRow(int rowIndex)
Removes the row at the given position.
|
protected void |
sanityCheck()
Performs a sanity check that section is in correct state.
|
void |
setDefaultRow(Grid.HeaderRow row)
Sets the default row of this header.
|
addColumn, addRowAt, appendRow, getRow, getRowCount, isVisible, markAsDirty, prependRow, removeColumn, removeRow, setVisible, writeDesign
protected Header(Grid grid)
public void setDefaultRow(Grid.HeaderRow row)
row
- the new default row, or null for no default rowIllegalArgumentException
- this header does not contain the rowpublic Grid.HeaderRow getDefaultRow()
protected GridStaticSectionState getSectionState()
getSectionState
in class Grid.StaticSection<Grid.HeaderRow>
protected Grid.HeaderRow createRow()
createRow
in class Grid.StaticSection<Grid.HeaderRow>
public Grid.HeaderRow removeRow(int rowIndex)
Grid.StaticSection
removeRow
in class Grid.StaticSection<Grid.HeaderRow>
rowIndex
- the position of the rowGrid.StaticSection.removeRow(StaticRow)
,
Grid.StaticSection.addRowAt(int)
,
Grid.StaticSection.appendRow()
,
Grid.StaticSection.prependRow()
protected void sanityCheck() throws IllegalStateException
Grid.StaticSection
sanityCheck
in class Grid.StaticSection<Grid.HeaderRow>
IllegalStateException
- if merged cells are not i n continuous rangeprotected void readDesign(org.jsoup.nodes.Element tableSectionElement, DesignContext designContext)
Grid.StaticSection
readDesign
in class Grid.StaticSection<Grid.HeaderRow>
tableSectionElement
- Element to read design fromdesignContext
- the design contextCopyright © 2023 Vaadin Ltd. All rights reserved.