java.lang.Object
io.github.palexdev.virtualizedfx.utils.VSPUtils
Class that offers various utilities for
VirtualScrollPane
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
Disposes the bindings created by the variouswrap()
methodsstatic void
setHSpeed
(VirtualScrollPane vsp, double unitIncrement, double smoothUnit, double trackIncrement) Sets the horizontal scroll speed for the givenVirtualScrollPane
.static void
setVSpeed
(VirtualScrollPane vsp, double unitIncrement, double smoothUnit, double trackIncrement) Sets the vertical scroll speed for the givenVirtualScrollPane
.static <T,
C extends Cell<T>>
VirtualScrollPanewrap
(PaginatedVirtualFlow<T, C> flow) Does the hard job for you by creating a newVirtualScrollPane
wrapping the givenPaginatedVirtualFlow
, initializing the needed bindings for the content bounds, the scrolling and the orientation.static <T,
C extends Cell<T>>
VirtualScrollPanewrap
(VirtualFlow<T, C> flow) Does the hard job for you by creating a newVirtualScrollPane
wrapping the givenVirtualFlow
, initializing the needed bindings for the content bounds, the scrolling and the orientation.static <T,
C extends GridCell<T>>
VirtualScrollPanewrap
(PaginatedVirtualGrid<T, C> grid) Does the hard job for you by creating a newVirtualScrollPane
wrapping the givenPaginatedVirtualFlow
, initializing the needed bindings for the content bounds, the scrolling and the orientation.static <T,
C extends GridCell<T>>
VirtualScrollPanewrap
(VirtualGrid<T, C> grid) Does the hard job for you by creating a newVirtualScrollPane
wrapping the givenVirtualGrid
, initializing the needed bindings for the content bounds, the scrolling and the orientation.static <T> VirtualScrollPane
wrap
(PaginatedVirtualTable<T> table) static <T> VirtualScrollPane
wrap
(VirtualTable<T> table)
-
Method Details
-
wrap
Does the hard job for you by creating a newVirtualScrollPane
wrapping the givenVirtualFlow
, initializing the needed bindings for the content bounds, the scrolling and the orientation. NOTE: once this is not needed anymore you should calldisposeFor(VirtualScrollPane)
to avoid memory leaks which may occur because ofMFXBindings
. -
wrap
Does the hard job for you by creating a newVirtualScrollPane
wrapping the givenPaginatedVirtualFlow
, initializing the needed bindings for the content bounds, the scrolling and the orientation. -
wrap
Does the hard job for you by creating a newVirtualScrollPane
wrapping the givenVirtualGrid
, initializing the needed bindings for the content bounds, the scrolling and the orientation. NOTE: once this is not needed anymore you should calldisposeFor(VirtualScrollPane)
to avoid memory leaks which may occur because ofMFXBindings
-
wrap
Does the hard job for you by creating a newVirtualScrollPane
wrapping the givenPaginatedVirtualFlow
, initializing the needed bindings for the content bounds, the scrolling and the orientation. NOTE: once this is not needed anymore you should calldisposeFor(VirtualScrollPane)
to avoid memory leaks which may occur because ofMFXBindings
andWhen
. -
wrap
-
wrap
-
setHSpeed
public static void setHSpeed(VirtualScrollPane vsp, double unitIncrement, double smoothUnit, double trackIncrement) Sets the horizontal scroll speed for the givenVirtualScrollPane
.- Parameters:
unitIncrement
- the amount of pixels to scroll when using buttons or mouse scrollsmoothUnit
- the amount of pixels to scroll when smooth scrolling with the mousetrackIncrement
- the amount of pixels to scroll when using the track
-
setVSpeed
public static void setVSpeed(VirtualScrollPane vsp, double unitIncrement, double smoothUnit, double trackIncrement) Sets the vertical scroll speed for the givenVirtualScrollPane
.- Parameters:
unitIncrement
- the amount of pixels to scroll when using buttons or mouse scrollsmoothUnit
- the amount of pixels to scroll when smooth scrolling with the mousetrackIncrement
- the amount of pixels to scroll when using the track
-
disposeFor
Disposes the bindings created by the variouswrap()
methods
-