Package com.storedobject.vaadin
Class GridRow
java.lang.Object
com.storedobject.vaadin.GridRow
Utility class to handle join operations of header and footer row cells.
Each cell in the row represented by
GridRow.Cell has a name and is the same as its column name. If a cell is
a merged cell (after a join(String...) operation), then, its name will be the column name of the
first column of the merged columns.- Author:
- Syam
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classA class that represents a single cell of the row. -
Method Summary
Modifier and TypeMethodDescriptionGet a specific cell from this row.getCells()Get all the cells of this row.join(int startintgIndex) Join all cells starting at a given index and ending at the last column (inclusive).join(int startintgIndex, int endingIndex) Join cells for a range of column indices.Join cells.join(Collection<String> names) Join cells.joinCells(GridRow.Cell... cells) Join cells.
-
Method Details
-
join
Join all cells starting at a given index and ending at the last column (inclusive).- Parameters:
startintgIndex- Starting index of the column- Returns:
- The new Cell that is created or null if join operation fails.
-
join
Join cells for a range of column indices.- Parameters:
startintgIndex- Starting index of the columnendingIndex- Ending index of the column (exclusive).- Returns:
- The new Cell that is created or null if join operation fails.
-
join
Join cells. (If no cell names are passed, all cells in the row are joined).- Parameters:
names- Names of the cells to join (Names should be specified in proper order from left to right)- Returns:
- The new Cell that is created or null if join operation fails.
-
join
Join cells. (If no cell names are passed, all cells in the row are joined).- Parameters:
names- Names of the cells to join (Names should be specified in proper order from left to right)- Returns:
- The new Cell that is created or null if join operation fails.
-
joinCells
Join cells. (If no cells are passed, all cells in the row are joined).- Parameters:
cells- Cells to join (Cells should be specified in proper order from left to right)- Returns:
- The new Cell that is created or null if join operation fails.
-
getCell
Get a specific cell from this row.- Parameters:
name- Name of the cell- Returns:
- Cell with the given name if it exists, otherwise
null.
-
getCells
Get all the cells of this row.- Returns:
- Stream of cells of this row.
-