Module VirtualizedFX
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 C
Convenience method, shortcut forgetCellFactory().create(...)
Specifies the wrapper classCellFactory
for the cell factory functiondefault void
setCellFactory
(Function<T, C> cellFactory) Sets the cell factory function used to create cells.
-
Method Details
-
create
Convenience method, shortcut forgetCellFactory().create(...)
-
getCellFactory
CellFactory<T,C> getCellFactory()Specifies the wrapper classCellFactory
for the cell factory function -
setCellFactory
Sets the cell factory function used to create cells.
-