Class SimpleVirtualFlow.Builder

java.lang.Object
io.github.palexdev.virtualizedfx.flow.simple.SimpleVirtualFlow.Builder
Enclosing class:
SimpleVirtualFlow<T,C extends Cell<T>>

public static class SimpleVirtualFlow.Builder extends Object
Builder class to create SimpleVirtualFlows.
  • 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 objects
      C - The type of cells
      Parameters:
      items - The items list property
      cellFactory - The function to convert items to cells
      orientation - 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 objects
      C - The type of cells
      Parameters:
      items - The items list
      cellFactory - The function to convert items to cells
      orientation - The orientation