Interface CellStyleGenerator<T>

  • Type Parameters:
    T - the row type of the target grid

    public interface CellStyleGenerator<T>
    Callback interface for generating custom style names for cells
    Since:
    7.4
    Author:
    Vaadin Ltd
    See Also:
    Grid.setCellStyleGenerator(CellStyleGenerator)
    • Method Detail

      • getStyle

        String getStyle​(CellReference<T> cellReference)
        Called by Grid to generate a style name for a column element.
        Parameters:
        cellReference - The cell to generate a style for
        Returns:
        the style name to add to this cell, or null to not set any style