Package com.vaadin.ui.components.grid
Interface FooterRow
-
- All Superinterfaces:
java.io.Serializable
- All Known Implementing Classes:
Footer.Row
public interface FooterRow extends java.io.SerializableA footer row in a Grid.- Since:
- 8.0
- Author:
- Vaadin Ltd
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description FooterCellgetCell(Grid.Column<?,?> column)Returns the cell on this row corresponding to the given column.FooterCellgetCell(java.lang.String columnId)Returns the cell on this row corresponding to the given column id.java.util.Collection<? extends Component>getComponents()Gets a collection of all components inside this row.java.lang.StringgetStyleName()Returns the custom style name for this row.FooterCelljoin(FooterCell... cellsToMerge)Merges column cells in the row.FooterCelljoin(Grid.Column<?,?>... columnsToMerge)Merges cells corresponding to the given columns in the row.FooterCelljoin(java.lang.String... columnIdsToMerge)Merges cells corresponding to the given column ids in the row.FooterCelljoin(java.util.Set<FooterCell> cellsToMerge)Merges column cells in the row.voidsetStyleName(java.lang.String styleName)Sets a custom style name for this row.
-
-
-
Method Detail
-
getCell
FooterCell getCell(java.lang.String columnId)
Returns the cell on this row corresponding to the given column id.- Parameters:
columnId- the id of the column whose footer cell to get, not null- Returns:
- the footer cell
- Throws:
java.lang.IllegalArgumentException- if there is no such column in the grid- See Also:
Grid.Column.setId(String)
-
getCell
FooterCell getCell(Grid.Column<?,?> column)
Returns the cell on this row corresponding to the given column.- Parameters:
column- the column whose footer cell to get, not null- Returns:
- the footer cell
- Throws:
java.lang.IllegalArgumentException- if there is no such column in the grid
-
join
FooterCell join(java.util.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.- 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
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.- 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
FooterCell join(Grid.Column<?,?>... columnsToMerge)
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.- 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:
join(Set),setCaption
-
join
FooterCell join(java.lang.String... columnIdsToMerge)
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.- 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:
join(Set),setCaption,Grid.Column.setId(String)
-
getStyleName
java.lang.String getStyleName()
Returns the custom style name for this row.- Returns:
- the style name or null if no style name has been set
-
setStyleName
void setStyleName(java.lang.String styleName)
Sets a custom style name for this row.- Parameters:
styleName- the style name to set or null to not use any style name
-
getComponents
java.util.Collection<? extends Component> getComponents()
Gets a collection of all components inside this row.The order of the components in the returned collection is not specified.
- Returns:
- a collection of components in the row
- Since:
- 8.0.3
-
-