Type Parameters:
T - the source element type
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface @Internal public interface PageItemFactory<T>
Creates the RenderedItem for one element of the current page; supplied by the pagination binding so the engine stays free of renderer concerns.
  • Method Summary

    Modifier and Type
    Method
    Description
    @NotNull RenderedItem
    create(int index, T value)
    Creates the rendered slot content for one page element.
  • Method Details

    • create

      @NotNull @NotNull RenderedItem create(int index, @NotNull T value)
      Creates the rendered slot content for one page element.
      Parameters:
      index - the zero-based position of the element within the current page
      value - the source element
      Returns:
      the rendered slot content, never null