com.vaadin.ui.components.grid.

Class Header.Row

    • Constructor Detail

      • Row

        protected Row()

        Creates a new header row.

    • Method Detail

      • isDefault

        protected boolean isDefault()

        Returns whether this row is the default header row.

        Returns:

        true if this row is the default row, false otherwise.

      • setDefault

        protected void setDefault​(boolean defaultHeader)

        Sets whether this row is the default header row.

        Parameters:

        defaultHeader - true to set to default, false otherwise.

      • join

        public HeaderCell join​(Set<HeaderCell> 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 interface HeaderRow

        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(HeaderCell...), setCaption

      • join

        public HeaderCell join​(HeaderCell... 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 interface HeaderRow

        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 HeaderCell join​(Grid.Column<?,​?>... columnsToMerge)

        Description copied from interface: HeaderRow

        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 interface HeaderRow

        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:

        HeaderRow.join(Set), setCaption

      • join

        public HeaderCell join​(String... columnIdsToMerge)

        Description copied from interface: HeaderRow

        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 interface HeaderRow

        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:

        HeaderRow.join(Set), setCaption, Grid.Column.setId(String)