Interface VFXScrollable
- All Known Implementing Classes:
VFXGrid,VFXList,VFXPaginatedList,VFXTable
public interface VFXScrollable
Interface to quickly wrap a content in a
VFXScrollPane and make it scrollable. How the wrapping is done
depends on the implementing class.
It also offers two utilities to set or bind the speed of a VFXScrollPane:
setSpeed(VFXScrollPane, ScrollParams, ScrollParams), bindSpeed(VFXScrollPane, ScrollParams, ScrollParams)-
Method Summary
Modifier and TypeMethodDescriptionstatic voidbindSpeed(VFXScrollPane vsp, ScrollParams vSpeed, ScrollParams hSpeed) Binds scroll increments to the givenVFXScrollPane, using the providedScrollParamsfor vertical and horizontal scrolling.Wraps this in aVFXScrollPaneto enable scrolling.static voidsetSpeed(VFXScrollPane vsp, ScrollParams vSpeed, ScrollParams hSpeed) Applies fixed scroll increments to the givenVFXScrollPane, using the providedScrollParamsfor vertical and horizontal scrolling.
-
Method Details
-
makeScrollable
VFXScrollPane makeScrollable()Wraps this in aVFXScrollPaneto enable scrolling. -
setSpeed
Applies fixed scroll increments to the givenVFXScrollPane, using the providedScrollParamsfor vertical and horizontal scrolling. If you want to apply a certain speed dynamically, usebindSpeed(VFXScrollPane, ScrollParams, ScrollParams)instead.- See Also:
-
bindSpeed
Binds scroll increments to the givenVFXScrollPane, using the providedScrollParamsfor vertical and horizontal scrolling.This method establishes bindings that automatically update scroll increments when relevant properties (e.g., bounds, layout size) change.
- See Also:
-