Interface Table.StyleProvider<E>

All Known Subinterfaces:
GroupTable.GroupStyleProvider<E>
All Known Implementing Classes:
AbstractTable.InstalledStyleProvider, DiffStyleProvider
Enclosing interface:
Table<E>

public static interface Table.StyleProvider<E>
Allows to define different styles for table cells.
  • Method Summary

    Modifier and Type
    Method
    Description
    getStyleName(E entity, String property)
    Called by Table to get a style for row or cell.
    All unhandled exceptions from StyleProvider in Web components by default are logged with ERROR level and not shown to users.
  • Method Details

    • getStyleName

      String getStyleName(E entity, @Nullable String property)
      Called by Table to get a style for row or cell.
      All unhandled exceptions from StyleProvider in Web components by default are logged with ERROR level and not shown to users.
      Parameters:
      entity - an entity instance represented by the current row
      property - column identifier if getting a style for a cell, or null if getting the style for a row
      Returns:
      style name or null to apply the default