Interface RowComponentGenerator<C extends com.vaadin.flow.component.Component & com.vaadin.flow.component.HasComponents>

  • Functional Interface:
    This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

    @FunctionalInterface
    public interface RowComponentGenerator<C extends com.vaadin.flow.component.Component & com.vaadin.flow.component.HasComponents>
    Interface for objects generating a component for each row in an ItemGrid.
    Since:
    2020-04-16
    Author:
    miki
    • Method Detail

      • generateRowComponent

        C generateRowComponent​(int rowNumber)
        Creates a component that corresponds to a given row number.
        Parameters:
        rowNumber - Number of the row to create component for. 0-based.
        Returns:
        A component. Must not be null.