Package com.vaadin.ui.components.grid
Class Footer.Row
- java.lang.Object
-
- com.vaadin.ui.components.grid.StaticSection.StaticRow<Footer.Row.Cell>
-
- com.vaadin.ui.components.grid.Footer.Row
-
- All Implemented Interfaces:
FooterRow
,Serializable
- Enclosing class:
- Footer
public class Footer.Row extends StaticSection.StaticRow<Footer.Row.Cell> implements FooterRow
A row in a Grid Footer.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description class
Footer.Row.Cell
A cell in a Grid footer row.
-
Constructor Summary
Constructors Modifier Constructor Description protected
Row()
Creates a new footer row.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Footer.Row.Cell
createCell()
Creates and returns a new instance of the cell type.protected String
getCellTagName()
Returns the declarative tag name used for the cells in this row.FooterCell
join(FooterCell... cellsToMerge)
Merges column cells in the row.FooterCell
join(Grid.Column<?,?>... columnsToMerge)
Merges cells corresponding to the given columns in the row.FooterCell
join(String... columnIdsToMerge)
Merges cells corresponding to the given column ids in the row.FooterCell
join(Set<FooterCell> cellsToMerge)
Merges column cells in the row.-
Methods inherited from class com.vaadin.ui.components.grid.StaticSection.StaticRow
addCell, addCell, getCell, getCell, getComponents, getRowState, getStyleName, internalAddCell, internalGetCell, readDesign, removeCell, setStyleName, writeCellState, writeDesign
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.vaadin.ui.components.grid.FooterRow
getCell, getCell, getComponents, getStyleName, setStyleName
-
-
-
-
Method Detail
-
createCell
protected Footer.Row.Cell createCell()
Description copied from class:StaticSection.StaticRow
Creates and returns a new instance of the cell type.- Specified by:
createCell
in classStaticSection.StaticRow<Footer.Row.Cell>
- Returns:
- the created cell
-
getCellTagName
protected String getCellTagName()
Description copied from class:StaticSection.StaticRow
Returns the declarative tag name used for the cells in this row.- Specified by:
getCellTagName
in classStaticSection.StaticRow<Footer.Row.Cell>
- Returns:
- the cell tag name
-
join
public FooterCell join(Set<FooterCell> cellsToMerge)
Merges column cells in the row. Original cells are hidden, and new merged cell is shown instead. The cell has a width of all merged cells together, inherits styles of the first merged cell but has empty caption.- Specified by:
join
in interfaceFooterRow
- Parameters:
cellsToMerge
- the cells which should be merged. The cells should not be merged to any other cell set.- Returns:
- the remaining visible cell after the merge
- See Also:
join(FooterCell...)
,setCaption
-
join
public FooterCell join(FooterCell... cellsToMerge)
Merges column cells in the row. Original cells are hidden, and new merged cell is shown instead. The cell has a width of all merged cells together, inherits styles of the first merged cell but has empty caption.- Specified by:
join
in interfaceFooterRow
- Parameters:
cellsToMerge
- the cells which should be merged. The cells should not be merged to any other cell set.- Returns:
- the remaining visible cell after the merge
- See Also:
join(Set)
,setCaption
-
join
public FooterCell join(Grid.Column<?,?>... columnsToMerge)
Description copied from interface:FooterRow
Merges cells corresponding to the given columns in the row. Original cells are hidden, and new merged cell is shown instead. The cell has a width of all merged cells together, inherits styles of the first merged cell but has empty caption.- Specified by:
join
in interfaceFooterRow
- Parameters:
columnsToMerge
- the columns of the cells that should be merged. The cells should not be merged to any other cell set.- Returns:
- the remaining visible cell after the merge
- See Also:
FooterRow.join(Set)
,setCaption
-
join
public FooterCell join(String... columnIdsToMerge)
Description copied from interface:FooterRow
Merges cells corresponding to the given column ids in the row. Original cells are hidden, and new merged cell is shown instead. The cell has a width of all merged cells together, inherits styles of the first merged cell but has empty caption.- Specified by:
join
in interfaceFooterRow
- Parameters:
columnIdsToMerge
- the ids of the columns of the cells that should be merged. The cells should not be merged to any other cell set.- Returns:
- the remaining visible cell after the merge
- See Also:
FooterRow.join(Set)
,setCaption
,Grid.Column.setId(String)
-
-