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 classCellFactory rather than the function directly.-
Method Summary
Modifier and TypeMethodDescriptiondefault CConvenience method, shortcut forgetCellFactory().create(...)Specifies the wrapper classCellFactoryfor the cell factory functiondefault voidsetCellFactory(Function<T, C> cellFactory) Sets the cell factory function used to create cells.
-
Method Details
-
create
-
getCellFactory
CellFactory<T,C> getCellFactory()Specifies the wrapper classCellFactoryfor the cell factory function -
setCellFactory
-