Interface CellGenerator<T>

  • Type Parameters:
    T - Type of data associated with the cell.
    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 CellGenerator<T>
    Interface for objects generating cells.
    Since:
    2020-04-15
    Author:
    miki
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      com.vaadin.flow.component.Component generateComponent​(T value, int row, int column)
      Constructs a component that would represent given value in given row and column.
    • Method Detail

      • generateComponent

        com.vaadin.flow.component.Component generateComponent​(T value,
                                                              int row,
                                                              int column)
        Constructs a component that would represent given value in given row and column.
        Parameters:
        value - Value to generate component for.
        row - Row the component will be placed in.
        column - Column the component will be placed in.
        Returns:
        A component. Must not be null.