Class SimpleVirtualFlow.Builder
java.lang.Object
io.github.palexdev.virtualizedfx.flow.simple.SimpleVirtualFlow.Builder
- Enclosing class:
- SimpleVirtualFlow<T,
C extends Cell<T>>
Builder class to create
SimpleVirtualFlow
s.-
Method Summary
Modifier and TypeMethodDescriptionstatic <T,
C extends Cell<T>>
SimpleVirtualFlow<T,C> create
(ObjectProperty<? extends ObservableList<T>> items, Function<T, C> cellFactory, Orientation orientation) static <T,
C extends Cell<T>>
SimpleVirtualFlow<T,C> create
(ObservableList<T> items, Function<T, C> cellFactory, Orientation orientation)
-
Method Details
-
create
public static <T,C extends Cell<T>> SimpleVirtualFlow<T,C> create(ObjectProperty<? extends ObservableList<T>> items, Function<T, C> cellFactory, Orientation orientation) - Type Parameters:
T
- The type of objectsC
- The type of cells- Parameters:
items
- The items list propertycellFactory
- The function to convert items to cellsorientation
- The orientation
-
create
public static <T,C extends Cell<T>> SimpleVirtualFlow<T,C> create(ObservableList<T> items, Function<T, C> cellFactory, Orientation orientation) - Type Parameters:
T
- The type of objectsC
- The type of cells- Parameters:
items
- The items listcellFactory
- The function to convert items to cellsorientation
- The orientation
-