|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.vaadin.client.widgets.Grid.StaticSection<Grid.HeaderRow>
com.vaadin.client.widgets.Grid.Header
protected static class Grid.Header
Represents the header section of a Grid. A header consists of a single header row containing a header cell for each column. Each cell has a simple textual caption.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class com.vaadin.client.widgets.Grid.StaticSection |
|---|
Grid.StaticSection.StaticCell, Grid.StaticSection.StaticRow<CELLTYPE extends Grid.StaticSection.StaticCell> |
| Constructor Summary | |
|---|---|
protected |
Grid.Header()
|
| Method Summary | |
|---|---|
protected void |
addColumn(Grid.Column<?,?> column)
|
protected Grid.HeaderRow |
createRow()
Creates and returns a new instance of the row type. |
java.util.Collection<java.lang.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. |
| Methods inherited from class com.vaadin.client.widgets.Grid.StaticSection |
|---|
addRowAt, appendRow, getGrid, getRow, getRowCount, getRows, getVisibleRowCount, isVisible, prependRow, removeColumn, removeRow, setGrid, setVisible, updateColSpans |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected Grid.Header()
| Method Detail |
|---|
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 row
java.lang.IllegalArgumentException - 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.StaticSectionNote 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 java.util.Collection<java.lang.String> getConsumedEvents()
protected void addColumn(Grid.Column<?,?> column)
addColumn in class Grid.StaticSection<Grid.HeaderRow>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||