Interface VirtualFlow<T,C extends Cell<T>>
- Type Parameters:
T
- the type of objects to representC
- the type of Cell to use
- All Known Implementing Classes:
SimpleVirtualFlow
public interface VirtualFlow<T,C extends Cell<T>>
Public API for every Virtual Flow
-
Property Summary
PropertiesTypePropertyDescriptionObjectProperty<Function<T,C>>
Property for the cell factory function.Property for the horizontal scroll bar's value.Property for the vertical scroll bar's value. -
Method Summary
Modifier and TypeMethodDescriptionObjectProperty<Function<T,C>>
Property for the cell factory function.getHBar()
double
getItems()
getVBar()
double
Property for the horizontal scroll bar's value.void
setCellFactory(Function<T,C> cellFactory)
Sets the function used to build a Cell from an object of type T.void
setHorizontalPosition(double hValue)
Sets the horizontal scroll bar's valuevoid
setItems(ObservableList<T> items)
Replaces the items list with the given one.void
setVerticalPosition(double vValue)
Sets the vertical scroll bar's valueProperty for the vertical scroll bar's value.
-
Property Details
-
cellFactory
Property for the cell factory function.- See Also:
getCellFactory()
,setCellFactory(Function)
-
horizontalPosition
DoubleProperty horizontalPositionPropertyProperty for the horizontal scroll bar's value. -
verticalPosition
DoubleProperty verticalPositionPropertyProperty for the vertical scroll bar's value.- See Also:
getVerticalPosition()
,setVerticalPosition(double)
-
-
Method Details
-
getItems
ObservableList<T> getItems()- Returns:
- the items list
-
setItems
Replaces the items list with the given one. -
getCellFactory
- Returns:
- the function used to build a Cell from an object of type T
-
cellFactoryProperty
ObjectProperty<Function<T,C>> cellFactoryProperty()Property for the cell factory function.- See Also:
getCellFactory()
,setCellFactory(Function)
-
setCellFactory
Sets the function used to build a Cell from an object of type T. -
getHBar
ScrollBar getHBar()- Returns:
- the instance of the horizontal scroll bar, null if the virtual flow doesn't have it
-
getVBar
ScrollBar getVBar()- Returns:
- the instance of the vertical scroll bar, null if the virtual flow doesn't have it
-
getHorizontalPosition
double getHorizontalPosition()- Returns:
- the horizontal scroll bar's value
-
horizontalPositionProperty
DoubleProperty horizontalPositionProperty()Property for the horizontal scroll bar's value. -
setHorizontalPosition
void setHorizontalPosition(double hValue)Sets the horizontal scroll bar's value -
getVerticalPosition
double getVerticalPosition()- Returns:
- the vertical scroll bar's value
-
verticalPositionProperty
DoubleProperty verticalPositionProperty()Property for the vertical scroll bar's value.- See Also:
getVerticalPosition()
,setVerticalPosition(double)
-
setVerticalPosition
void setVerticalPosition(double vValue)Sets the vertical scroll bar's value -
getVirtualFlow
Region getVirtualFlow()- Returns:
- the instance of the virtual flow
-