Module VirtualizedFX
Class VirtualScrollPaneSkin
java.lang.Object
javafx.scene.control.SkinBase<VirtualScrollPane>
io.github.palexdev.virtualizedfx.controls.skins.VirtualScrollPaneSkin
- All Implemented Interfaces:
Skin<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
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected doublecomputeMinHeight(double width, double topInset, double rightInset, double bottomInset, double leftInset) protected doublecomputeMinWidth(double height, double topInset, double rightInset, double bottomInset, double leftInset) protected doublecomputePrefHeight(double width, double topInset, double rightInset, double bottomInset, double leftInset) protected doublecomputePrefWidth(double height, double topInset, double rightInset, double bottomInset, double leftInset) voiddispose()protected voidlayoutChildren(double x, double y, double w, double h) Methods inherited from class javafx.scene.control.SkinBase
computeBaselineOffset, computeMaxHeight, computeMaxWidth, consumeMouseEvents, executeAccessibleAction, getChildren, getClassCssMetaData, getCssMetaData, getNode, getSkinnable, layoutInArea, layoutInArea, layoutInArea, positionInArea, positionInArea, pseudoClassStateChanged, queryAccessibleAttribute, registerChangeListener, registerInvalidationListener, registerListChangeListener, snappedBottomInset, snappedLeftInset, snappedRightInset, snappedTopInset, snapPosition, snapPositionX, snapPositionY, snapSize, snapSizeX, snapSizeY, snapSpace, snapSpaceX, snapSpaceY, unregisterChangeListeners, unregisterInvalidationListeners, unregisterListChangeListeners
-
Constructor Details
-
VirtualScrollPaneSkin
-
-
Method Details
-
computeMinWidth
protected double computeMinWidth(double height, double topInset, double rightInset, double bottomInset, double leftInset) - Overrides:
computeMinWidthin classSkinBase<VirtualScrollPane>
-
computeMinHeight
protected double computeMinHeight(double width, double topInset, double rightInset, double bottomInset, double leftInset) - Overrides:
computeMinHeightin classSkinBase<VirtualScrollPane>
-
computePrefWidth
protected double computePrefWidth(double height, double topInset, double rightInset, double bottomInset, double leftInset) - Overrides:
computePrefWidthin classSkinBase<VirtualScrollPane>
-
computePrefHeight
protected double computePrefHeight(double width, double topInset, double rightInset, double bottomInset, double leftInset) - Overrides:
computePrefHeightin classSkinBase<VirtualScrollPane>
-
layoutChildren
protected void layoutChildren(double x, double y, double w, double h) - Overrides:
layoutChildrenin classSkinBase<VirtualScrollPane>
-
dispose
public void dispose()- Specified by:
disposein interfaceSkin<VirtualScrollPane>- Overrides:
disposein classSkinBase<VirtualScrollPane>
-