Package com.vaadin.featurepack.ui
Class FGrid.Header
java.lang.Object
com.vaadin.featurepack.ui.FGrid.StaticSection<FGrid.HeaderRow>
com.vaadin.featurepack.ui.FGrid.Header
- All Implemented Interfaces:
Serializable
- Enclosing class:
FGrid
Represents the header section of a Grid.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class com.vaadin.featurepack.ui.FGrid.StaticSection
FGrid.StaticSection.GridStaticCellType, FGrid.StaticSection.StaticRow<CELLTYPE extends com.vaadin.featurepack.ui.FGrid.StaticSection.StaticCell> -
Field Summary
Fields inherited from class com.vaadin.featurepack.ui.FGrid.StaticSection
grid, rows -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddRowAt(int index) Inserts a new row at the given position.protected FGrid.HeaderRowReturns the current default row of this header.removeRow(int rowIndex) Removes the row at the given position.protected voidPerforms a sanity check that section is in correct state.voidSets the default row of this header.Methods inherited from class com.vaadin.featurepack.ui.FGrid.StaticSection
addColumn, appendRow, getRow, getRowCount, isVisible, markAsDirty, prependRow, removeColumn, removeRow, setVisible
-
Constructor Details
-
Header
-
-
Method Details
-
setDefaultRow
Sets the default row of this header. The default row is a special header row providing a user interface for sorting columns.- Parameters:
row- the new default row, or null for no default row- Throws:
IllegalArgumentException- this header does not contain the row
-
getDefaultRow
Returns the current default row of this header. The default row is a special header row providing a user interface for sorting columns.- Returns:
- the default row or null if no default row set
-
createRow
- Specified by:
createRowin classFGrid.StaticSection<FGrid.HeaderRow>
-
removeRow
Description copied from class:FGrid.StaticSectionRemoves the row at the given position.- Overrides:
removeRowin classFGrid.StaticSection<FGrid.HeaderRow>- Parameters:
rowIndex- the position of the row- See Also:
-
addRowAt
Description copied from class:FGrid.StaticSectionInserts a new row at the given position.- Overrides:
addRowAtin classFGrid.StaticSection<FGrid.HeaderRow>- Parameters:
index- the position at which to insert the row- Returns:
- the new row
- See Also:
-
sanityCheck
Description copied from class:FGrid.StaticSectionPerforms a sanity check that section is in correct state.- Overrides:
sanityCheckin classFGrid.StaticSection<FGrid.HeaderRow>- Throws:
IllegalStateException- if merged cells are not i n continuous range
-