Class VirtualScrollPaneSkin

java.lang.Object
javafx.scene.control.SkinBase<VirtualScrollPane>
io.github.palexdev.virtualizedfx.controls.skins.VirtualScrollPaneSkin
All Implemented Interfaces:
Skin<VirtualScrollPane>

public class VirtualScrollPaneSkin extends SkinBase<VirtualScrollPane>
Default skin implementation for VirtualScrollPane.

There are three components: the content container and the two scroll bars.

All the components are positioned and sized according to a custom layout strategy which varies based on several properties, five are the main ones: VirtualScrollPane.layoutModeProperty(), VirtualScrollPane.vBarPosProperty(), VirtualScrollPane.hBarPosProperty(), VirtualScrollPane.vBarPolicyProperty() and VirtualScrollPane.hBarPolicyProperty().

- The LayoutMode specifies if the scroll pane should reserve extra space for the scroll bars (ScrollPaneEnums.LayoutMode.DEFAULT), or they can be positioned above the content (ScrollPaneEnums.LayoutMode.COMPACT). This last option is especially useful in combination with VirtualScrollPane.autoHideBarsProperty().

- The vBarPos allows to specify the position of the vertical scroll bar LEFT/RIGHT(default)

- The hBarPos allows to specify the position of the horizontal scroll bar TOP/BOTTOM(default)

- The vBarPolicy allows to specify the visibility policy for the vertical scroll bar

- The hBarPolicy allows to specify the visibility policy for the horizontal scroll bar