Interface RowStyleGenerator<T>

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

    public interface RowStyleGenerator<T>
    extends Serializable
    Callback interface for generating custom style names for data rows
    Since:
    7.4
    Author:
    Vaadin Ltd
    See Also:
    Grid#setRowStyleGenerator(RowStyleGenerator)
    • Method Detail

      • getStyle

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