- 类型参数:
T- the type of objects to representC- the type of Cell to use
- 所有已知实现类:
SimpleVirtualFlow
public interface VirtualFlow<T,C extends Cell<T>>
Public API for every Virtual Flow
-
属性概要
属性类型属性说明Property for the cell factory function.Specifies whether the cells should take all the space available on the y axis.Specifies whether the cells should take all the space available on the x axis.Property for the horizontal scroll bar's value.Property for the vertical scroll bar's value. -
方法概要
修饰符和类型方法说明Property for the cell factory function.Specifies whether the cells should take all the space available on the y axis.Specifies whether the cells should take all the space available on the x axis.doubledoublegetHBar()doublegetItems()getVBar()doubleProperty for the horizontal scroll bar's value.boolean获取属性fitToHeight的值。boolean获取属性fitToWidth的值。voidsetCellFactory(Function<T, C> cellFactory) Sets the function used to build a Cell from an object of type T.voidsetFitToHeight(boolean fitToHeight) 设置属性fitToHeight的值。voidsetFitToWidth(boolean fitToWidth) 设置属性fitToWidth的值。voidsetHorizontalPosition(double hValue) Sets the horizontal scroll bar's valuevoidsetItems(ObservableList<T> items) Replaces the items list with the given one.voidsetVerticalPosition(double vValue) Sets the vertical scroll bar's valueProperty for the vertical scroll bar's value.
-
属性详细资料
-
cellFactory
Property for the cell factory function. -
fitToWidth
BooleanProperty fitToWidthPropertySpecifies whether the cells should take all the space available on the x axis.This is used by the
OrientationHelper.VerticalHelper. -
fitToHeight
BooleanProperty fitToHeightPropertySpecifies whether the cells should take all the space available on the y axis.This is used by the
OrientationHelper.HorizontalHelper. -
horizontalPosition
DoubleProperty horizontalPositionPropertyProperty for the horizontal scroll bar's value. -
verticalPosition
DoubleProperty verticalPositionPropertyProperty for the vertical scroll bar's value.
-
-
方法详细资料
-
getItems
ObservableList<T> getItems()- 返回:
- the items list
-
setItems
Replaces the items list with the given one. -
getCellFactory
- 返回:
- 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. -
setCellFactory
Sets the function used to build a Cell from an object of type T. -
getCellWidth
double getCellWidth()- 返回:
- the width of the cells
-
getCellHeight
double getCellHeight()- 返回:
- the height of the cells
-
getHBar
ScrollBar getHBar()- 返回:
- the instance of the horizontal scroll bar, null if the virtual flow doesn't have it
-
getVBar
ScrollBar getVBar()- 返回:
- the instance of the vertical scroll bar, null if the virtual flow doesn't have it
-
isFitToWidth
boolean isFitToWidth()获取属性fitToWidth的值。- 属性说明:
- Specifies whether the cells should take all the space
available on the x axis.
This is used by the
OrientationHelper.VerticalHelper.
-
fitToWidthProperty
BooleanProperty fitToWidthProperty()Specifies whether the cells should take all the space available on the x axis.This is used by the
OrientationHelper.VerticalHelper. -
setFitToWidth
void setFitToWidth(boolean fitToWidth) 设置属性fitToWidth的值。- 属性说明:
- Specifies whether the cells should take all the space
available on the x axis.
This is used by the
OrientationHelper.VerticalHelper.
-
isFitToHeight
boolean isFitToHeight()获取属性fitToHeight的值。- 属性说明:
- Specifies whether the cells should take all the space
available on the y axis.
This is used by the
OrientationHelper.HorizontalHelper.
-
fitToHeightProperty
BooleanProperty fitToHeightProperty()Specifies whether the cells should take all the space available on the y axis.This is used by the
OrientationHelper.HorizontalHelper. -
setFitToHeight
void setFitToHeight(boolean fitToHeight) 设置属性fitToHeight的值。- 属性说明:
- Specifies whether the cells should take all the space
available on the y axis.
This is used by the
OrientationHelper.HorizontalHelper.
-
getHorizontalPosition
double getHorizontalPosition()- 返回:
- 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()- 返回:
- the vertical scroll bar's value
-
verticalPositionProperty
DoubleProperty verticalPositionProperty()Property for the vertical scroll bar's value. -
setVerticalPosition
void setVerticalPosition(double vValue) Sets the vertical scroll bar's value -
getVirtualFlow
Region getVirtualFlow()- 返回:
- the instance of the virtual flow
-