Interface WithCellFactory<T,C extends VFXCell<T>>

All Known Implementing Classes:
VFXDefaultTableColumn, VFXGrid, VFXList, VFXPaginatedList, VFXTableColumn

public interface WithCellFactory<T,C extends VFXCell<T>>
Not all containers are directly responsible for creating their cells. For example, in the VFXTable, each column builds cells for a specific data type. This design prevents the VFXContainer API from exposing a cell factory directly.

This interface makes those classes that are directly responsible for building cells expose the cell factory function.

Note: implementations must expose the wrapper class CellFactory rather than the function directly.
  • Method Summary

    Modifier and Type
    Method
    Description
    default C
    create(T item)
    Convenience method, shortcut for getCellFactory().create(...)
    Specifies the wrapper class CellFactory for the cell factory function
    default void
    setCellFactory(Function<T,C> cellFactory)
    Sets the cell factory function used to create cells.
  • Method Details

    • create

      default C create(T item)
      Convenience method, shortcut for getCellFactory().create(...)
    • getCellFactory

      CellFactory<T,C> getCellFactory()
      Specifies the wrapper class CellFactory for the cell factory function
    • setCellFactory

      default void setCellFactory(Function<T,C> cellFactory)
      Sets the cell factory function used to create cells.