protected static class Grid.Header extends Grid.StaticSection<Grid.HeaderRow>
Grid.StaticSection.StaticCell, Grid.StaticSection.StaticRow<CELLTYPE extends Grid.StaticSection.StaticCell>
Modifier | Constructor and Description |
---|---|
protected |
Header() |
Modifier and Type | Method and Description |
---|---|
protected void |
addColumn(Grid.Column<?,?> column) |
protected Grid.HeaderRow |
createRow()
Creates and returns a new instance of the row type.
|
Collection<String> |
getConsumedEvents()
Returns the events consumed by the header.
|
Grid.HeaderRow |
getDefaultRow()
Returns the current default row of this header.
|
void |
removeRow(int index)
Removes the row at the given position.
|
protected void |
requestSectionRefresh()
Informs the grid that this section should be re-rendered.
|
void |
setDefaultRow(Grid.HeaderRow row)
Sets the default row of this header.
|
addRowAt, appendRow, getGrid, getRow, getRowCount, getRows, getVisibleRowCount, isVisible, prependRow, removeColumn, removeRow, setGrid, setVisible, updateColSpans
public void removeRow(int index)
Grid.StaticSection
removeRow
in class Grid.StaticSection<Grid.HeaderRow>
index
- the position of the rowGrid.StaticSection.addRowAt(int)
,
Grid.StaticSection.appendRow()
,
Grid.StaticSection.prependRow()
,
Grid.StaticSection.removeRow(StaticRow)
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 Grid.HeaderRow createRow()
Grid.StaticSection
createRow
in class Grid.StaticSection<Grid.HeaderRow>
protected void requestSectionRefresh()
Grid.StaticSection
Note that re-render means calling update() on each cell, preAttach()/postAttach()/preDetach()/postDetach() is not called as the cells are not removed from the DOM.
requestSectionRefresh
in class Grid.StaticSection<Grid.HeaderRow>
public Collection<String> getConsumedEvents()
protected void addColumn(Grid.Column<?,?> column)
addColumn
in class Grid.StaticSection<Grid.HeaderRow>
Copyright © 2018 Vaadin Ltd. All rights reserved.