Interface DataGrid.StaticRow<T extends DataGrid.StaticCell>

Type Parameters:
T - the type of the cells in the row
All Known Subinterfaces:
DataGrid.FooterRow, DataGrid.HeaderRow
All Known Implementing Classes:
AbstractDataGrid.AbstractStaticRowImp, AbstractDataGrid.FooterRowImpl, AbstractDataGrid.HeaderRowImpl
Enclosing interface:
DataGrid<E>

public static interface DataGrid.StaticRow<T extends DataGrid.StaticCell>
Base interface for DataGrid header and footer rows.
  • Method Summary

    Modifier and Type
    Method
    Description
    getCell(String columnId)
    Returns the cell for the given column id on this row.
    Returns the custom style name for this row.
    join(String... columnIds)
    Merges columns cells in a row.
    void
    setStyleName(String styleName)
    Sets a custom style name for this row.
  • Method Details

    • getStyleName

      @Nullable 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(@Nullable 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
    • join

      T join(String... columnIds)
      Merges columns cells in a row.
      Parameters:
      columnIds - the ids of columns to merge
      Returns:
      the remaining visible cell after the merge
    • getCell

      @Nullable T getCell(String columnId)
      Returns the cell for the given column id on this row. If the column is merged returned cell is the cell for the whole group.
      Parameters:
      columnId - column id
      Returns:
      the cell for the given column id, merged cell for merged properties, null if not found