public abstract class Header extends StaticSection<Header.Row>
Modifier and Type | Class and Description |
---|---|
class |
Header.Row
A row in a Grid header.
|
StaticSection.StaticRow<CELL extends com.vaadin.ui.components.grid.StaticSection.StaticCell>
Constructor and Description |
---|
Header() |
Modifier and Type | Method and Description |
---|---|
Header.Row |
createRow()
Creates a new row instance.
|
Header.Row |
getDefaultRow()
Returns the default row of this header.
|
void |
removeRow(int index)
Removes the row at the given index.
|
void |
setDefaultRow(Header.Row defaultRow)
Sets the default row of this header.
|
addColumn, addRowAt, getColumnByInternalId, getGrid, getInternalIdForColumn, getRow, getRowCount, getRows, getState, isVisible, markAsDirty, readDesign, removeColumn, removeRow, setVisible, writeDesign
public Header.Row createRow()
StaticSection
createRow
in class StaticSection<Header.Row>
public void removeRow(int index)
StaticSection
removeRow
in class StaticSection<Header.Row>
index
- the index of the row to removepublic Header.Row getDefaultRow()
null
if there is no default rowpublic void setDefaultRow(Header.Row defaultRow)
defaultRow
- the new default row, or null for no default rowIllegalArgumentException
- if the header does not contain the rowCopyright © 2018 Vaadin Ltd. All rights reserved.