Class VFXScrollPane
- All Implemented Interfaces:
io.github.palexdev.mfxcore.behavior.WithBehavior<VFXScrollPaneBehavior>,io.github.palexdev.mfxcore.controls.MFXSkinnable<io.github.palexdev.mfxcore.controls.SkinBase<?,,?>> io.github.palexdev.mfxcore.controls.MFXStyleable,Styleable,EventTarget,Skinnable
Control.
The default skin is VFXScrollPaneSkin. The default behavior is VFXScrollPaneBehavior. Also implements MFXStyleable.
Features:
- You can change how the scroll bars are laid out as well as their appearance with the layoutModeProperty()
- You can align the content within the viewport by setting the alignmentProperty()
(works only when the content is smaller than the viewport)
- The mainAxisProperty() determines which is the primary scroll direction. By default, it's vertical and
to scroll horizontally you have to press the Shift key
- You can make the content always fit the size of the scroll pane by setting the properties
fitToWidthProperty() and fitToHeightProperty() (works only for non-virtualized contents)
- You choose on which side to have the two scroll bars with vBarPosProperty() and hBarPosProperty()
- The scrollBarsGapProperty() determines how much space separates the scroll bars
- You can make the scroll bars hide automatically after a certain amount of time, autoHideBarsProperty()
- You can disable the bars and the scrolling by setting the relative policies:
vBarPolicyProperty(), hBarPolicyProperty()
- Allows scrolling by dragging the mouse on the viewport by enabling the dragToScrollProperty(), and
it's also possible to enable smooth scrolling for it: dragSmoothScrollProperty()
- All the properties of VFXScrollBar are ported and bound here:
vTrackIncrementProperty(), vUnitIncrementProperty(), hTrackIncrementProperty(), hUnitIncrementProperty(),
showButtonsProperty(), buttonsGapProperty(), smoothScrollProperty(), trackSmoothScrollProperty()
- Finally you can set the radius for the viewport's clip with the clipBorderRadiusProperty()
- ":compact": active when the layoutModeProperty() is set to ScrollPaneEnums.LayoutMode.COMPACT
- ":drag-to-scroll": active when the dragToScrollProperty() is set to true
VFXScrollBars, it also allows to change their behavior with
hBarBehaviorProperty() and vBarBehaviorProperty().-
Property Summary
PropertiesTypePropertyDescriptionio.github.palexdev.mfxcore.base.properties.styleable.StyleableObjectProperty<Pos> Allows to align the scroll pane's content within its viewport.io.github.palexdev.mfxcore.base.properties.styleable.StyleableBooleanPropertySpecifies whether to auto hide the scroll bars after a certain amount of time.io.github.palexdev.mfxcore.base.properties.styleable.StyleableDoublePropertySpecifies the gap between the scroll bars' thumb and their buttons.io.github.palexdev.mfxcore.base.properties.styleable.StyleableDoublePropertyUsed by the viewport's clip to set its border radius.Specifies the current scroll pane's content.io.github.palexdev.mfxcore.base.properties.styleable.StyleableBooleanPropertySpecifies whether to use animations for thedragToScrollProperty()feature, making the scroll smooth.io.github.palexdev.mfxcore.base.properties.styleable.StyleableBooleanPropertySpecifies whether the content can be scrolled with mouse dragging.io.github.palexdev.mfxcore.base.properties.styleable.StyleableBooleanPropertyMakes the content be at least as tall as the scroll pane.io.github.palexdev.mfxcore.base.properties.styleable.StyleableBooleanPropertyMakes the content be at least as wide as the scroll pane.io.github.palexdev.mfxcore.base.properties.functional.FunctionProperty<VFXScrollBar, VFXScrollBarBehavior> Specifies the function used to build the horizontal scroll bar's behavior.io.github.palexdev.mfxcore.base.properties.styleable.StyleableObjectProperty<ScrollPaneEnums.ScrollBarPolicy> Specifies the horizontal scroll bar visibility policy.io.github.palexdev.mfxcore.base.properties.styleable.StyleableObjectProperty<ScrollPaneEnums.HBarPos> Specifies the position of the horizontal scroll bar.Specifies the horizontal scroll bar's maximum value.Specifies the horizontal scroll bar's minimum value.io.github.palexdev.mfxcore.base.properties.styleable.StyleableDoublePropertySpecifies the amount added/subtracted to the horizontal scroll bar's value used by the scroll bar's track.io.github.palexdev.mfxcore.base.properties.styleable.StyleableDoublePropertySpecifies the amount added/subtracted to the horizontal scroll bar's value used by the buttons and by scrolling.Specifies the horizontal scroll bar's value.io.github.palexdev.mfxcore.base.properties.styleable.StyleableObjectProperty<ScrollPaneEnums.LayoutMode> io.github.palexdev.mfxcore.base.properties.styleable.StyleableObjectProperty<Orientation> Specifies the main scroll axis.io.github.palexdev.mfxcore.base.properties.styleable.StyleableDoublePropertyDetermines how much space divides the two scroll bars.io.github.palexdev.mfxcore.base.properties.styleable.StyleableBooleanPropertySpecifies whether to show or not the scroll bars' buttons.io.github.palexdev.mfxcore.base.properties.styleable.StyleableBooleanPropertySpecifies whether the scrolling should be smooth, done by animations.io.github.palexdev.mfxcore.base.properties.styleable.StyleableBooleanPropertySpecifies if the scrolling made by the track should be smooth, done by animations.io.github.palexdev.mfxcore.base.properties.functional.FunctionProperty<VFXScrollBar, VFXScrollBarBehavior> Specifies the function used to build the vertical scroll bar's behavior.io.github.palexdev.mfxcore.base.properties.styleable.StyleableObjectProperty<ScrollPaneEnums.ScrollBarPolicy> Specifies the vertical scroll bar visibility policy.io.github.palexdev.mfxcore.base.properties.styleable.StyleableObjectProperty<ScrollPaneEnums.VBarPos> Specifies the position of the vertical scroll bar.Specifies the vertical scroll bar's maximum value.Specifies the vertical scroll bar's minimum value.io.github.palexdev.mfxcore.base.properties.styleable.StyleableDoublePropertySpecifies the amount added/subtracted to the vertical scroll bar's value used by the scroll bar's track.io.github.palexdev.mfxcore.base.properties.styleable.StyleableDoublePropertySpecifies the amount added/subtracted to the vertical scroll bar's value used by the buttons and by scrolling.Specifies the vertical scroll bar's value.Properties inherited from class io.github.palexdev.mfxcore.controls.Control
behaviorProvider, skinProviderProperties inherited from class javafx.scene.control.Control
contextMenu, skin, tooltipProperties inherited from class javafx.scene.layout.Region
background, border, cacheShape, centerShape, height, insets, maxHeight, maxWidth, minHeight, minWidth, opaqueInsets, padding, prefHeight, prefWidth, scaleShape, shape, snapToPixel, widthProperties inherited from class javafx.scene.Parent
needsLayoutProperties inherited from class javafx.scene.Node
accessibleHelp, accessibleRoleDescription, accessibleRole, accessibleText, blendMode, boundsInLocal, boundsInParent, cacheHint, cache, clip, cursor, depthTest, disabled, disable, effectiveNodeOrientation, effect, eventDispatcher, focused, focusTraversable, focusVisible, focusWithin, hover, id, inputMethodRequests, layoutBounds, layoutX, layoutY, localToParentTransform, localToSceneTransform, managed, mouseTransparent, nodeOrientation, onContextMenuRequested, onDragDetected, onDragDone, onDragDropped, onDragEntered, onDragExited, onDragOver, onInputMethodTextChanged, onKeyPressed, onKeyReleased, onKeyTyped, onMouseClicked, onMouseDragEntered, onMouseDragExited, onMouseDragged, onMouseDragOver, onMouseDragReleased, onMouseEntered, onMouseExited, onMouseMoved, onMousePressed, onMouseReleased, onRotate, onRotationFinished, onRotationStarted, onScrollFinished, onScroll, onScrollStarted, onSwipeDown, onSwipeLeft, onSwipeRight, onSwipeUp, onTouchMoved, onTouchPressed, onTouchReleased, onTouchStationary, onZoomFinished, onZoom, onZoomStarted, opacity, parent, pickOnBounds, pressed, rotate, rotationAxis, scaleX, scaleY, scaleZ, scene, style, translateX, translateY, translateZ, viewOrder, visible -
Field Summary
FieldsFields inherited from class javafx.scene.layout.Region
USE_COMPUTED_SIZE, USE_PREF_SIZEFields inherited from class javafx.scene.Node
BASELINE_OFFSET_SAME_AS_HEIGHT -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionio.github.palexdev.mfxcore.base.properties.styleable.StyleableObjectProperty<Pos> Allows to align the scroll pane's content within its viewport.io.github.palexdev.mfxcore.base.properties.styleable.StyleableBooleanPropertySpecifies whether to auto hide the scroll bars after a certain amount of time.io.github.palexdev.mfxcore.base.properties.styleable.StyleableDoublePropertySpecifies the gap between the scroll bars' thumb and their buttons.io.github.palexdev.mfxcore.base.properties.styleable.StyleableDoublePropertyUsed by the viewport's clip to set its border radius.Specifies the current scroll pane's content.Supplier<io.github.palexdev.mfxcore.controls.SkinBase<?, ?>> io.github.palexdev.mfxcore.base.properties.styleable.StyleableBooleanPropertySpecifies whether to use animations for thedragToScrollProperty()feature, making the scroll smooth.io.github.palexdev.mfxcore.base.properties.styleable.StyleableBooleanPropertySpecifies whether the content can be scrolled with mouse dragging.io.github.palexdev.mfxcore.base.properties.styleable.StyleableBooleanPropertyMakes the content be at least as tall as the scroll pane.io.github.palexdev.mfxcore.base.properties.styleable.StyleableBooleanPropertyMakes the content be at least as wide as the scroll pane.Gets the value of thealignmentproperty.doubleGets the value of thebuttonsGapproperty.static List<CssMetaData<? extends Styleable, ?>> doubleGets the value of theclipBorderRadiusproperty.Gets the value of thecontentproperty.io.github.palexdev.mfxcore.base.beans.Sizeprotected List<CssMetaData<? extends Styleable, ?>> Gets the value of thehBarBehaviorproperty.Gets the value of thehBarPolicyproperty.Gets the value of thehBarPosproperty.doublegetHMax()Gets the value of thehMaxproperty.doublegetHMin()Gets the value of thehMinproperty.doubleGets the value of thehTrackIncrementproperty.doubleGets the value of thehUnitIncrementproperty.doubleGets the value of thehValueproperty.Gets the value of thelayoutModeproperty.Gets the value of themainAxisproperty.doubleGets the value of thescrollBarsGapproperty.Gets the value of thevBarBehaviorproperty.Gets the value of thevBarPolicyproperty.Gets the value of thevBarPosproperty.doublegetVMax()Gets the value of thevMaxproperty.doublegetVMin()Gets the value of thevMinproperty.doubleGets the value of thevTrackIncrementproperty.doubleGets the value of thevUnitIncrementproperty.doubleGets the value of thevValueproperty.io.github.palexdev.mfxcore.base.properties.functional.FunctionProperty<VFXScrollBar, VFXScrollBarBehavior> Specifies the function used to build the horizontal scroll bar's behavior.io.github.palexdev.mfxcore.base.properties.styleable.StyleableObjectProperty<ScrollPaneEnums.ScrollBarPolicy> Specifies the horizontal scroll bar visibility policy.io.github.palexdev.mfxcore.base.properties.styleable.StyleableObjectProperty<ScrollPaneEnums.HBarPos> Specifies the position of the horizontal scroll bar.Specifies the horizontal scroll bar's maximum value.Specifies the horizontal scroll bar's minimum value.io.github.palexdev.mfxcore.base.properties.styleable.StyleableDoublePropertySpecifies the amount added/subtracted to the horizontal scroll bar's value used by the scroll bar's track.io.github.palexdev.mfxcore.base.properties.styleable.StyleableDoublePropertySpecifies the amount added/subtracted to the horizontal scroll bar's value used by the buttons and by scrolling.Specifies the horizontal scroll bar's value.booleanGets the value of theautoHideBarsproperty.booleanGets the value of thedragSmoothScrollproperty.booleanGets the value of thedragToScrollproperty.booleanGets the value of thefitToHeightproperty.booleanGets the value of thefitToWidthproperty.booleanGets the value of theshowButtonsproperty.booleanGets the value of thesmoothScrollproperty.booleanGets the value of thetrackSmoothScrollproperty.io.github.palexdev.mfxcore.base.properties.styleable.StyleableObjectProperty<ScrollPaneEnums.LayoutMode> io.github.palexdev.mfxcore.base.properties.styleable.StyleableObjectProperty<Orientation> Specifies the main scroll axis.io.github.palexdev.mfxcore.base.properties.styleable.StyleableDoublePropertyDetermines how much space divides the two scroll bars.voidsetAlignment(Pos alignment) Sets the value of thealignmentproperty.voidsetAutoHideBars(boolean autoHideBars) Sets the value of theautoHideBarsproperty.voidsetButtonsGap(double buttonsGap) Sets the value of thebuttonsGapproperty.voidsetClipBorderRadius(double clipBorderRadius) Sets the value of theclipBorderRadiusproperty.voidsetContent(Node content) Sets the value of thecontentproperty.voidsetDragSmoothScroll(boolean dragSmoothScroll) Sets the value of thedragSmoothScrollproperty.voidsetDragToScroll(boolean dragToScroll) Sets the value of thedragToScrollproperty.voidsetFitToHeight(boolean fitToHeight) Sets the value of thefitToHeightproperty.voidsetFitToWidth(boolean fitToWidth) Sets the value of thefitToWidthproperty.voidsetHBarBehavior(Function<VFXScrollBar, VFXScrollBarBehavior> hBarBehavior) Sets the value of thehBarBehaviorproperty.voidsetHBarPolicy(ScrollPaneEnums.ScrollBarPolicy hBarPolicy) Sets the value of thehBarPolicyproperty.voidsetHBarPos(ScrollPaneEnums.HBarPos hBarPos) Sets the value of thehBarPosproperty.voidsetHMax(double hMax) Sets the value of thehMaxproperty.voidsetHMin(double hMin) Sets the value of thehMinproperty.voidsetHTrackIncrement(double hTrackIncrement) Sets the value of thehTrackIncrementproperty.voidsetHUnitIncrement(double hUnitIncrement) Sets the value of thehUnitIncrementproperty.voidsetHValue(double hValue) Sets the value of thehValueproperty.voidsetLayoutMode(ScrollPaneEnums.LayoutMode layoutMode) Sets the value of thelayoutModeproperty.voidsetMainAxis(Orientation mainAxis) Sets the value of themainAxisproperty.voidsetScrollBarsGap(double scrollBarsGap) Sets the value of thescrollBarsGapproperty.voidsetScrollBarsPos(Pos pos) Convenience method to combinesetVBarPos(VBarPos)andsetHBarPos(HBarPos).voidsetShowButtons(boolean showButtons) Sets the value of theshowButtonsproperty.voidsetSmoothScroll(boolean smoothScroll) Sets the value of thesmoothScrollproperty.voidsetTrackSmoothScroll(boolean trackSmoothScroll) Sets the value of thetrackSmoothScrollproperty.voidsetVBarBehavior(Function<VFXScrollBar, VFXScrollBarBehavior> vBarBehavior) Sets the value of thevBarBehaviorproperty.voidsetVBarPolicy(ScrollPaneEnums.ScrollBarPolicy vBarPolicy) Sets the value of thevBarPolicyproperty.voidsetVBarPos(ScrollPaneEnums.VBarPos vBarPos) Sets the value of thevBarPosproperty.voidsetVMax(double vMax) Sets the value of thevMaxproperty.voidsetVMin(double vMin) Sets the value of thevMinproperty.voidsetVTrackIncrement(double trackIncrement) Sets the value of thevTrackIncrementproperty.voidsetVUnitIncrement(double unitIncrement) Sets the value of thevUnitIncrementproperty.voidsetVValue(double vValue) Sets the value of thevValueproperty.io.github.palexdev.mfxcore.base.properties.styleable.StyleableBooleanPropertySpecifies whether to show or not the scroll bars' buttons.io.github.palexdev.mfxcore.base.properties.styleable.StyleableBooleanPropertySpecifies whether the scrolling should be smooth, done by animations.io.github.palexdev.mfxcore.base.properties.styleable.StyleableBooleanPropertySpecifies if the scrolling made by the track should be smooth, done by animations.io.github.palexdev.mfxcore.base.properties.functional.FunctionProperty<VFXScrollBar, VFXScrollBarBehavior> Specifies the function used to build the vertical scroll bar's behavior.io.github.palexdev.mfxcore.base.properties.styleable.StyleableObjectProperty<ScrollPaneEnums.ScrollBarPolicy> Specifies the vertical scroll bar visibility policy.io.github.palexdev.mfxcore.base.properties.styleable.StyleableObjectProperty<ScrollPaneEnums.VBarPos> Specifies the position of the vertical scroll bar.Specifies the vertical scroll bar's maximum value.Specifies the vertical scroll bar's minimum value.io.github.palexdev.mfxcore.base.properties.styleable.StyleableDoublePropertySpecifies the amount added/subtracted to the vertical scroll bar's value used by the scroll bar's track.io.github.palexdev.mfxcore.base.properties.styleable.StyleableDoublePropertySpecifies the amount added/subtracted to the vertical scroll bar's value used by the buttons and by scrolling.Specifies the vertical scroll bar's value.Methods inherited from class io.github.palexdev.mfxcore.controls.Control
behaviorProviderProperty, buildSkin, createDefaultSkin, getBehavior, skinProviderPropertyMethods inherited from class javafx.scene.control.Control
computeMaxHeight, computeMaxWidth, computeMinHeight, computeMinWidth, computePrefHeight, computePrefWidth, contextMenuProperty, executeAccessibleAction, getBaselineOffset, getContextMenu, getCssMetaData, getInitialFocusTraversable, getSkin, getTooltip, isResizable, layoutChildren, queryAccessibleAttribute, setContextMenu, setSkin, setTooltip, skinProperty, tooltipPropertyMethods inherited from class javafx.scene.layout.Region
backgroundProperty, borderProperty, cacheShapeProperty, centerShapeProperty, getBackground, getBorder, getHeight, getInsets, getMaxHeight, getMaxWidth, getMinHeight, getMinWidth, getOpaqueInsets, getPadding, getPrefHeight, getPrefWidth, getShape, getUserAgentStylesheet, getWidth, heightProperty, insetsProperty, isCacheShape, isCenterShape, isScaleShape, isSnapToPixel, layoutInArea, layoutInArea, layoutInArea, layoutInArea, maxHeight, maxHeightProperty, maxWidth, maxWidthProperty, minHeight, minHeightProperty, minWidth, minWidthProperty, opaqueInsetsProperty, paddingProperty, positionInArea, positionInArea, prefHeight, prefHeightProperty, prefWidth, prefWidthProperty, resize, scaleShapeProperty, setBackground, setBorder, setCacheShape, setCenterShape, setHeight, setMaxHeight, setMaxSize, setMaxWidth, setMinHeight, setMinSize, setMinWidth, setOpaqueInsets, setPadding, setPrefHeight, setPrefSize, setPrefWidth, setScaleShape, setShape, setSnapToPixel, setWidth, shapeProperty, snappedBottomInset, snappedLeftInset, snappedRightInset, snappedTopInset, snapPosition, snapPositionX, snapPositionY, snapSize, snapSizeX, snapSizeY, snapSpace, snapSpaceX, snapSpaceY, snapToPixelProperty, widthPropertyMethods inherited from class javafx.scene.Parent
getChildren, getChildrenUnmodifiable, getManagedChildren, getStylesheets, isNeedsLayout, layout, lookup, needsLayoutProperty, requestLayout, requestParentLayout, setNeedsLayout, updateBoundsMethods inherited from class javafx.scene.Node
accessibleHelpProperty, accessibleRoleDescriptionProperty, accessibleRoleProperty, accessibleTextProperty, addEventFilter, addEventHandler, applyCss, autosize, blendModeProperty, boundsInLocalProperty, boundsInParentProperty, buildEventDispatchChain, cacheHintProperty, cacheProperty, clipProperty, computeAreaInScreen, contains, contains, cursorProperty, depthTestProperty, disabledProperty, disableProperty, effectiveNodeOrientationProperty, effectProperty, eventDispatcherProperty, fireEvent, focusedProperty, focusTraversableProperty, focusVisibleProperty, focusWithinProperty, getAccessibleHelp, getAccessibleRole, getAccessibleRoleDescription, getAccessibleText, getBlendMode, getBoundsInLocal, getBoundsInParent, getCacheHint, getClip, getContentBias, getCursor, getDepthTest, getEffect, getEffectiveNodeOrientation, getEventDispatcher, getId, getInitialCursor, getInputMethodRequests, getLayoutBounds, getLayoutX, getLayoutY, getLocalToParentTransform, getLocalToSceneTransform, getNodeOrientation, getOnContextMenuRequested, getOnDragDetected, getOnDragDone, getOnDragDropped, getOnDragEntered, getOnDragExited, getOnDragOver, getOnInputMethodTextChanged, getOnKeyPressed, getOnKeyReleased, getOnKeyTyped, getOnMouseClicked, getOnMouseDragEntered, getOnMouseDragExited, getOnMouseDragged, getOnMouseDragOver, getOnMouseDragReleased, getOnMouseEntered, getOnMouseExited, getOnMouseMoved, getOnMousePressed, getOnMouseReleased, getOnRotate, getOnRotationFinished, getOnRotationStarted, getOnScroll, getOnScrollFinished, getOnScrollStarted, getOnSwipeDown, getOnSwipeLeft, getOnSwipeRight, getOnSwipeUp, getOnTouchMoved, getOnTouchPressed, getOnTouchReleased, getOnTouchStationary, getOnZoom, getOnZoomFinished, getOnZoomStarted, getOpacity, getParent, getProperties, getPseudoClassStates, getRotate, getRotationAxis, getScaleX, getScaleY, getScaleZ, getScene, getStyle, getStyleableParent, getStyleClass, getTransforms, getTranslateX, getTranslateY, getTranslateZ, getTypeSelector, getUserData, getViewOrder, hasProperties, hoverProperty, idProperty, inputMethodRequestsProperty, intersects, intersects, isCache, isDisable, isDisabled, isFocused, isFocusTraversable, isFocusVisible, isFocusWithin, isHover, isManaged, isMouseTransparent, isPickOnBounds, isPressed, isVisible, layoutBoundsProperty, layoutXProperty, layoutYProperty, localToParent, localToParent, localToParent, localToParent, localToParent, localToParentTransformProperty, localToScene, localToScene, localToScene, localToScene, localToScene, localToScene, localToScene, localToScene, localToScene, localToScene, localToSceneTransformProperty, localToScreen, localToScreen, localToScreen, localToScreen, localToScreen, lookupAll, managedProperty, mouseTransparentProperty, nodeOrientationProperty, notifyAccessibleAttributeChanged, onContextMenuRequestedProperty, onDragDetectedProperty, onDragDoneProperty, onDragDroppedProperty, onDragEnteredProperty, onDragExitedProperty, onDragOverProperty, onInputMethodTextChangedProperty, onKeyPressedProperty, onKeyReleasedProperty, onKeyTypedProperty, onMouseClickedProperty, onMouseDragEnteredProperty, onMouseDragExitedProperty, onMouseDraggedProperty, onMouseDragOverProperty, onMouseDragReleasedProperty, onMouseEnteredProperty, onMouseExitedProperty, onMouseMovedProperty, onMousePressedProperty, onMouseReleasedProperty, onRotateProperty, onRotationFinishedProperty, onRotationStartedProperty, onScrollFinishedProperty, onScrollProperty, onScrollStartedProperty, onSwipeDownProperty, onSwipeLeftProperty, onSwipeRightProperty, onSwipeUpProperty, onTouchMovedProperty, onTouchPressedProperty, onTouchReleasedProperty, onTouchStationaryProperty, onZoomFinishedProperty, onZoomProperty, onZoomStartedProperty, opacityProperty, parentProperty, parentToLocal, parentToLocal, parentToLocal, parentToLocal, parentToLocal, pickOnBoundsProperty, pressedProperty, pseudoClassStateChanged, relocate, removeEventFilter, removeEventHandler, requestFocus, requestFocusTraversal, resizeRelocate, rotateProperty, rotationAxisProperty, scaleXProperty, scaleYProperty, scaleZProperty, sceneProperty, sceneToLocal, sceneToLocal, sceneToLocal, sceneToLocal, sceneToLocal, sceneToLocal, sceneToLocal, sceneToLocal, screenToLocal, screenToLocal, screenToLocal, setAccessibleHelp, setAccessibleRole, setAccessibleRoleDescription, setAccessibleText, setBlendMode, setCache, setCacheHint, setClip, setCursor, setDepthTest, setDisable, setDisabled, setEffect, setEventDispatcher, setEventHandler, setFocused, setFocusTraversable, setHover, setId, setInputMethodRequests, setLayoutX, setLayoutY, setManaged, setMouseTransparent, setNodeOrientation, setOnContextMenuRequested, setOnDragDetected, setOnDragDone, setOnDragDropped, setOnDragEntered, setOnDragExited, setOnDragOver, setOnInputMethodTextChanged, setOnKeyPressed, setOnKeyReleased, setOnKeyTyped, setOnMouseClicked, setOnMouseDragEntered, setOnMouseDragExited, setOnMouseDragged, setOnMouseDragOver, setOnMouseDragReleased, setOnMouseEntered, setOnMouseExited, setOnMouseMoved, setOnMousePressed, setOnMouseReleased, setOnRotate, setOnRotationFinished, setOnRotationStarted, setOnScroll, setOnScrollFinished, setOnScrollStarted, setOnSwipeDown, setOnSwipeLeft, setOnSwipeRight, setOnSwipeUp, setOnTouchMoved, setOnTouchPressed, setOnTouchReleased, setOnTouchStationary, setOnZoom, setOnZoomFinished, setOnZoomStarted, setOpacity, setPickOnBounds, setPressed, setRotate, setRotationAxis, setScaleX, setScaleY, setScaleZ, setStyle, setTranslateX, setTranslateY, setTranslateZ, setUserData, setViewOrder, setVisible, snapshot, snapshot, startDragAndDrop, startFullDrag, styleProperty, toBack, toFront, toString, translateXProperty, translateYProperty, translateZProperty, usesMirroring, viewOrderProperty, visiblePropertyMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface io.github.palexdev.mfxcore.controls.MFXSkinnable
getSkinProvider, setDefaultSkinProvider, setSkinProviderMethods inherited from interface io.github.palexdev.mfxcore.controls.MFXStyleable
defaultStyleClassesMethods inherited from interface javafx.css.Styleable
getStyleableNodeMethods inherited from interface io.github.palexdev.mfxcore.behavior.WithBehavior
getBehaviorProvider, setBehaviorProvider, setDefaultBehaviorProvider
-
Property Details
-
layoutMode
public io.github.palexdev.mfxcore.base.properties.styleable.StyleableObjectProperty<ScrollPaneEnums.LayoutMode> layoutModeProperty- See Also:
-
alignment
public io.github.palexdev.mfxcore.base.properties.styleable.StyleableObjectProperty<Pos> alignmentPropertyAllows to align the scroll pane's content within its viewport. The alignment is ignored if the content is larger than the viewport.This is also settable via CSS with the "-vfx-alignment" property.
- See Also:
-
mainAxis
public io.github.palexdev.mfxcore.base.properties.styleable.StyleableObjectProperty<Orientation> mainAxisPropertySpecifies the main scroll axis.This is used by the skin to determine the behavior of the scroll when the Shift button is pressed. By default, for:
- VERTICAL orientation: if Shift is pressed the scroll will be horizontal
- HORIZONTAL orientation: if Shift is pressed the scroll will be vertical
This is also settable via CSS with the "-vfx-main-axis" property.
- See Also:
-
fitToWidth
public io.github.palexdev.mfxcore.base.properties.styleable.StyleableBooleanProperty fitToWidthPropertyMakes the content be at least as wide as the scroll pane.This is also settable via CSS with the "-vfx-fit-to-width" property.
- See Also:
-
fitToHeight
public io.github.palexdev.mfxcore.base.properties.styleable.StyleableBooleanProperty fitToHeightPropertyMakes the content be at least as tall as the scroll pane.This is also settable via CSS with the "-vfx-fit-to-height" property.
- See Also:
-
vBarPos
public io.github.palexdev.mfxcore.base.properties.styleable.StyleableObjectProperty<ScrollPaneEnums.VBarPos> vBarPosPropertySpecifies the position of the vertical scroll bar.This is also settable via CSS with the "-vfx-vbar-pos" property.
- See Also:
-
hBarPos
public io.github.palexdev.mfxcore.base.properties.styleable.StyleableObjectProperty<ScrollPaneEnums.HBarPos> hBarPosPropertySpecifies the position of the horizontal scroll bar.This is also settable via CSS with the "-vfx-hbar-pos" property.
- See Also:
-
scrollBarsGap
public io.github.palexdev.mfxcore.base.properties.styleable.StyleableDoubleProperty scrollBarsGapPropertyDetermines how much space divides the two scroll bars. Imagine this as the corner UI element that was present in the scroll panes back in the day.This is also settable via CSS with the "-vfx-bars-gap" property.
- See Also:
-
autoHideBars
public io.github.palexdev.mfxcore.base.properties.styleable.StyleableBooleanProperty autoHideBarsPropertySpecifies whether to auto hide the scroll bars after a certain amount of time.This is also settable via CSS with the "-vfx-auto-hide-bars" property.
- See Also:
-
vBarPolicy
public io.github.palexdev.mfxcore.base.properties.styleable.StyleableObjectProperty<ScrollPaneEnums.ScrollBarPolicy> vBarPolicyPropertySpecifies the vertical scroll bar visibility policy.This is also settable via CSS with the "-vfx-vbar-policy" property.
- See Also:
-
hBarPolicy
public io.github.palexdev.mfxcore.base.properties.styleable.StyleableObjectProperty<ScrollPaneEnums.ScrollBarPolicy> hBarPolicyPropertySpecifies the horizontal scroll bar visibility policy.This is also settable via CSS with the "-vfx-hbar-policy" property.
- See Also:
-
vTrackIncrement
public io.github.palexdev.mfxcore.base.properties.styleable.StyleableDoubleProperty vTrackIncrementPropertySpecifies the amount added/subtracted to the vertical scroll bar's value used by the scroll bar's track.This is also settable via CSS with the "-vfx-vtrack-increment" property.
- See Also:
-
vUnitIncrement
public io.github.palexdev.mfxcore.base.properties.styleable.StyleableDoubleProperty vUnitIncrementPropertySpecifies the amount added/subtracted to the vertical scroll bar's value used by the buttons and by scrolling.This is also settable via CSS with the "-vfx-vunit-increment" property.
- See Also:
-
hTrackIncrement
public io.github.palexdev.mfxcore.base.properties.styleable.StyleableDoubleProperty hTrackIncrementPropertySpecifies the amount added/subtracted to the horizontal scroll bar's value used by the scroll bar's track.This is also settable via CSS with the "-vfx-htrack-increment" property.
- See Also:
-
hUnitIncrement
public io.github.palexdev.mfxcore.base.properties.styleable.StyleableDoubleProperty hUnitIncrementPropertySpecifies the amount added/subtracted to the horizontal scroll bar's value used by the buttons and by scrolling.This is also settable via CSS with the "-vfx-hunit-increment" property.
- See Also:
-
showButtons
public io.github.palexdev.mfxcore.base.properties.styleable.StyleableBooleanProperty showButtonsPropertySpecifies whether to show or not the scroll bars' buttons.This is also settable via CSS with the "-vfx-show-buttons" property.
- See Also:
-
buttonsGap
public io.github.palexdev.mfxcore.base.properties.styleable.StyleableDoubleProperty buttonsGapPropertySpecifies the gap between the scroll bars' thumb and their buttons.This is also settable via CSS with the "-vfx-buttons-gap" property.
- See Also:
-
smoothScroll
public io.github.palexdev.mfxcore.base.properties.styleable.StyleableBooleanProperty smoothScrollPropertySpecifies whether the scrolling should be smooth, done by animations.This is also settable via CSS with the "-vfx-smooth-scroll" property.
- See Also:
-
trackSmoothScroll
public io.github.palexdev.mfxcore.base.properties.styleable.StyleableBooleanProperty trackSmoothScrollPropertySpecifies if the scrolling made by the track should be smooth, done by animations. The default behavior considers this feature an addition to thesmoothScrollProperty(), meaning that for this to work the aforementioned feature must be enabled too.This is also settable via CSS with the "-vfx-track-smooth-scroll" property.
- See Also:
-
dragToScroll
public io.github.palexdev.mfxcore.base.properties.styleable.StyleableBooleanProperty dragToScrollPropertySpecifies whether the content can be scrolled with mouse dragging.This is also settable via CSS with the "-vfx-drag-to-scroll" property.
- See Also:
-
dragSmoothScroll
public io.github.palexdev.mfxcore.base.properties.styleable.StyleableBooleanProperty dragSmoothScrollPropertySpecifies whether to use animations for thedragToScrollProperty()feature, making the scroll smooth.This is also settable via CSS with the "-vfx-drag-smooth-scroll" property.
- See Also:
-
clipBorderRadius
public io.github.palexdev.mfxcore.base.properties.styleable.StyleableDoubleProperty clipBorderRadiusPropertyUsed by the viewport's clip to set its border radius. This is useful when you want to make a rounded scroll pane and prevents the content from going outside the view. Side note: the clip is aRectangle, now for some fucking reason the rectangle's arcWidth and arcHeight values used to make it round do not act like the border-radius or background-radius properties, instead their value is usually 2 / 2.5 times the latter. So for a border radius of 5 you want this value to be at least 10/13.This is also settable via CSS with the "-vfx-clip-border-radius" property.
- See Also:
-
content
-
vMin
-
vValue
-
vMax
-
hMin
-
hValue
-
hMax
-
vBarBehavior
public io.github.palexdev.mfxcore.base.properties.functional.FunctionProperty<VFXScrollBar, VFXScrollBarBehavior> vBarBehaviorPropertySpecifies the function used to build the vertical scroll bar's behavior.- See Also:
-
hBarBehavior
public io.github.palexdev.mfxcore.base.properties.functional.FunctionProperty<VFXScrollBar, VFXScrollBarBehavior> hBarBehaviorPropertySpecifies the function used to build the horizontal scroll bar's behavior.- See Also:
-
-
Field Details
-
DRAG_TO_SCROLL_PSEUDO_CLASS
-
-
Constructor Details
-
VFXScrollPane
public VFXScrollPane() -
VFXScrollPane
-
-
Method Details
-
getContentBounds
public io.github.palexdev.mfxcore.base.beans.Size getContentBounds()- Returns:
- the appropriate sizes for the scroll pane's content. For virtualized containers (
VFXContainer) the values are given by theVFXContainer.virtualMaxXProperty()and theVFXContainer.virtualMaxYProperty()
-
defaultSkinProvider
- Specified by:
defaultSkinProviderin interfaceio.github.palexdev.mfxcore.controls.MFXSkinnable<io.github.palexdev.mfxcore.controls.SkinBase<?,?>>
-
defaultBehaviorProvider
- Specified by:
defaultBehaviorProviderin interfaceio.github.palexdev.mfxcore.behavior.WithBehavior<VFXScrollPaneBehavior>
-
defaultStyleClasses
-
getLayoutMode
Gets the value of thelayoutModeproperty.- Property description:
- Returns:
- the value of the
layoutModeproperty - See Also:
-
layoutModeProperty
public io.github.palexdev.mfxcore.base.properties.styleable.StyleableObjectProperty<ScrollPaneEnums.LayoutMode> layoutModeProperty()- Returns:
- the
layoutModeproperty - See Also:
-
setLayoutMode
Sets the value of thelayoutModeproperty.- Property description:
- Parameters:
layoutMode- the value for thelayoutModeproperty- See Also:
-
getAlignment
Gets the value of thealignmentproperty.- Property description:
- Allows to align the scroll pane's content within its viewport. The alignment is ignored if the content is larger
than the viewport.
This is also settable via CSS with the "-vfx-alignment" property.
- Returns:
- the value of the
alignmentproperty - See Also:
-
alignmentProperty
public io.github.palexdev.mfxcore.base.properties.styleable.StyleableObjectProperty<Pos> alignmentProperty()Allows to align the scroll pane's content within its viewport. The alignment is ignored if the content is larger than the viewport.This is also settable via CSS with the "-vfx-alignment" property.
- Returns:
- the
alignmentproperty - See Also:
-
setAlignment
Sets the value of thealignmentproperty.- Property description:
- Allows to align the scroll pane's content within its viewport. The alignment is ignored if the content is larger
than the viewport.
This is also settable via CSS with the "-vfx-alignment" property.
- Parameters:
alignment- the value for thealignmentproperty- See Also:
-
getMainAxis
Gets the value of themainAxisproperty.- Property description:
- Specifies the main scroll axis.
This is used by the skin to determine the behavior of the scroll when the Shift button is pressed. By default, for:
- VERTICAL orientation: if Shift is pressed the scroll will be horizontal
- HORIZONTAL orientation: if Shift is pressed the scroll will be vertical
This is also settable via CSS with the "-vfx-main-axis" property.
- Returns:
- the value of the
mainAxisproperty - See Also:
-
mainAxisProperty
public io.github.palexdev.mfxcore.base.properties.styleable.StyleableObjectProperty<Orientation> mainAxisProperty()Specifies the main scroll axis.This is used by the skin to determine the behavior of the scroll when the Shift button is pressed. By default, for:
- VERTICAL orientation: if Shift is pressed the scroll will be horizontal
- HORIZONTAL orientation: if Shift is pressed the scroll will be vertical
This is also settable via CSS with the "-vfx-main-axis" property.
- Returns:
- the
mainAxisproperty - See Also:
-
setMainAxis
Sets the value of themainAxisproperty.- Property description:
- Specifies the main scroll axis.
This is used by the skin to determine the behavior of the scroll when the Shift button is pressed. By default, for:
- VERTICAL orientation: if Shift is pressed the scroll will be horizontal
- HORIZONTAL orientation: if Shift is pressed the scroll will be vertical
This is also settable via CSS with the "-vfx-main-axis" property.
- Parameters:
mainAxis- the value for themainAxisproperty- See Also:
-
isFitToWidth
public boolean isFitToWidth()Gets the value of thefitToWidthproperty.- Property description:
- Makes the content be at least as wide as the scroll pane.
This is also settable via CSS with the "-vfx-fit-to-width" property.
- Returns:
- the value of the
fitToWidthproperty - See Also:
-
fitToWidthProperty
public io.github.palexdev.mfxcore.base.properties.styleable.StyleableBooleanProperty fitToWidthProperty()Makes the content be at least as wide as the scroll pane.This is also settable via CSS with the "-vfx-fit-to-width" property.
- Returns:
- the
fitToWidthproperty - See Also:
-
setFitToWidth
public void setFitToWidth(boolean fitToWidth) Sets the value of thefitToWidthproperty.- Property description:
- Makes the content be at least as wide as the scroll pane.
This is also settable via CSS with the "-vfx-fit-to-width" property.
- Parameters:
fitToWidth- the value for thefitToWidthproperty- See Also:
-
isFitToHeight
public boolean isFitToHeight()Gets the value of thefitToHeightproperty.- Property description:
- Makes the content be at least as tall as the scroll pane.
This is also settable via CSS with the "-vfx-fit-to-height" property.
- Returns:
- the value of the
fitToHeightproperty - See Also:
-
fitToHeightProperty
public io.github.palexdev.mfxcore.base.properties.styleable.StyleableBooleanProperty fitToHeightProperty()Makes the content be at least as tall as the scroll pane.This is also settable via CSS with the "-vfx-fit-to-height" property.
- Returns:
- the
fitToHeightproperty - See Also:
-
setFitToHeight
public void setFitToHeight(boolean fitToHeight) Sets the value of thefitToHeightproperty.- Property description:
- Makes the content be at least as tall as the scroll pane.
This is also settable via CSS with the "-vfx-fit-to-height" property.
- Parameters:
fitToHeight- the value for thefitToHeightproperty- See Also:
-
getVBarPos
Gets the value of thevBarPosproperty.- Property description:
- Specifies the position of the vertical scroll bar.
This is also settable via CSS with the "-vfx-vbar-pos" property.
- Returns:
- the value of the
vBarPosproperty - See Also:
-
vBarPosProperty
public io.github.palexdev.mfxcore.base.properties.styleable.StyleableObjectProperty<ScrollPaneEnums.VBarPos> vBarPosProperty()Specifies the position of the vertical scroll bar.This is also settable via CSS with the "-vfx-vbar-pos" property.
- Returns:
- the
vBarPosproperty - See Also:
-
setVBarPos
Sets the value of thevBarPosproperty.- Property description:
- Specifies the position of the vertical scroll bar.
This is also settable via CSS with the "-vfx-vbar-pos" property.
- Parameters:
vBarPos- the value for thevBarPosproperty- See Also:
-
getHBarPos
Gets the value of thehBarPosproperty.- Property description:
- Specifies the position of the horizontal scroll bar.
This is also settable via CSS with the "-vfx-hbar-pos" property.
- Returns:
- the value of the
hBarPosproperty - See Also:
-
hBarPosProperty
public io.github.palexdev.mfxcore.base.properties.styleable.StyleableObjectProperty<ScrollPaneEnums.HBarPos> hBarPosProperty()Specifies the position of the horizontal scroll bar.This is also settable via CSS with the "-vfx-hbar-pos" property.
- Returns:
- the
hBarPosproperty - See Also:
-
setHBarPos
Sets the value of thehBarPosproperty.- Property description:
- Specifies the position of the horizontal scroll bar.
This is also settable via CSS with the "-vfx-hbar-pos" property.
- Parameters:
hBarPos- the value for thehBarPosproperty- See Also:
-
setScrollBarsPos
Convenience method to combinesetVBarPos(VBarPos)andsetHBarPos(HBarPos). However, note that only four positions are allowed:Pos.TOP_LEFT,Pos.TOP_RIGHT,Pos.BOTTOM_LEFT,Pos.BOTTOM_RIGHT(default!). -
getScrollBarsGap
public double getScrollBarsGap()Gets the value of thescrollBarsGapproperty.- Property description:
- Determines how much space divides the two scroll bars. Imagine this as the corner UI element that was present in
the scroll panes back in the day.
This is also settable via CSS with the "-vfx-bars-gap" property.
- Returns:
- the value of the
scrollBarsGapproperty - See Also:
-
scrollBarsGapProperty
public io.github.palexdev.mfxcore.base.properties.styleable.StyleableDoubleProperty scrollBarsGapProperty()Determines how much space divides the two scroll bars. Imagine this as the corner UI element that was present in the scroll panes back in the day.This is also settable via CSS with the "-vfx-bars-gap" property.
- Returns:
- the
scrollBarsGapproperty - See Also:
-
setScrollBarsGap
public void setScrollBarsGap(double scrollBarsGap) Sets the value of thescrollBarsGapproperty.- Property description:
- Determines how much space divides the two scroll bars. Imagine this as the corner UI element that was present in
the scroll panes back in the day.
This is also settable via CSS with the "-vfx-bars-gap" property.
- Parameters:
scrollBarsGap- the value for thescrollBarsGapproperty- See Also:
-
isAutoHideBars
public boolean isAutoHideBars()Gets the value of theautoHideBarsproperty.- Property description:
- Specifies whether to auto hide the scroll bars after a certain amount of time.
This is also settable via CSS with the "-vfx-auto-hide-bars" property.
- Returns:
- the value of the
autoHideBarsproperty - See Also:
-
autoHideBarsProperty
public io.github.palexdev.mfxcore.base.properties.styleable.StyleableBooleanProperty autoHideBarsProperty()Specifies whether to auto hide the scroll bars after a certain amount of time.This is also settable via CSS with the "-vfx-auto-hide-bars" property.
- Returns:
- the
autoHideBarsproperty - See Also:
-
setAutoHideBars
public void setAutoHideBars(boolean autoHideBars) Sets the value of theautoHideBarsproperty.- Property description:
- Specifies whether to auto hide the scroll bars after a certain amount of time.
This is also settable via CSS with the "-vfx-auto-hide-bars" property.
- Parameters:
autoHideBars- the value for theautoHideBarsproperty- See Also:
-
getVBarPolicy
Gets the value of thevBarPolicyproperty.- Property description:
- Specifies the vertical scroll bar visibility policy.
This is also settable via CSS with the "-vfx-vbar-policy" property.
- Returns:
- the value of the
vBarPolicyproperty - See Also:
-
vBarPolicyProperty
public io.github.palexdev.mfxcore.base.properties.styleable.StyleableObjectProperty<ScrollPaneEnums.ScrollBarPolicy> vBarPolicyProperty()Specifies the vertical scroll bar visibility policy.This is also settable via CSS with the "-vfx-vbar-policy" property.
- Returns:
- the
vBarPolicyproperty - See Also:
-
setVBarPolicy
Sets the value of thevBarPolicyproperty.- Property description:
- Specifies the vertical scroll bar visibility policy.
This is also settable via CSS with the "-vfx-vbar-policy" property.
- Parameters:
vBarPolicy- the value for thevBarPolicyproperty- See Also:
-
getHBarPolicy
Gets the value of thehBarPolicyproperty.- Property description:
- Specifies the horizontal scroll bar visibility policy.
This is also settable via CSS with the "-vfx-hbar-policy" property.
- Returns:
- the value of the
hBarPolicyproperty - See Also:
-
hBarPolicyProperty
public io.github.palexdev.mfxcore.base.properties.styleable.StyleableObjectProperty<ScrollPaneEnums.ScrollBarPolicy> hBarPolicyProperty()Specifies the horizontal scroll bar visibility policy.This is also settable via CSS with the "-vfx-hbar-policy" property.
- Returns:
- the
hBarPolicyproperty - See Also:
-
setHBarPolicy
Sets the value of thehBarPolicyproperty.- Property description:
- Specifies the horizontal scroll bar visibility policy.
This is also settable via CSS with the "-vfx-hbar-policy" property.
- Parameters:
hBarPolicy- the value for thehBarPolicyproperty- See Also:
-
getVTrackIncrement
public double getVTrackIncrement()Gets the value of thevTrackIncrementproperty.- Property description:
- Specifies the amount added/subtracted to the vertical scroll bar's value used by the
scroll bar's track.
This is also settable via CSS with the "-vfx-vtrack-increment" property.
- Returns:
- the value of the
vTrackIncrementproperty - See Also:
-
vTrackIncrementProperty
public io.github.palexdev.mfxcore.base.properties.styleable.StyleableDoubleProperty vTrackIncrementProperty()Specifies the amount added/subtracted to the vertical scroll bar's value used by the scroll bar's track.This is also settable via CSS with the "-vfx-vtrack-increment" property.
- Returns:
- the
vTrackIncrementproperty - See Also:
-
setVTrackIncrement
public void setVTrackIncrement(double trackIncrement) Sets the value of thevTrackIncrementproperty.- Property description:
- Specifies the amount added/subtracted to the vertical scroll bar's value used by the
scroll bar's track.
This is also settable via CSS with the "-vfx-vtrack-increment" property.
- Parameters:
trackIncrement- the value for thevTrackIncrementproperty- See Also:
-
getVUnitIncrement
public double getVUnitIncrement()Gets the value of thevUnitIncrementproperty.- Property description:
- Specifies the amount added/subtracted to the vertical scroll bar's value used by the
buttons and by scrolling.
This is also settable via CSS with the "-vfx-vunit-increment" property.
- Returns:
- the value of the
vUnitIncrementproperty - See Also:
-
vUnitIncrementProperty
public io.github.palexdev.mfxcore.base.properties.styleable.StyleableDoubleProperty vUnitIncrementProperty()Specifies the amount added/subtracted to the vertical scroll bar's value used by the buttons and by scrolling.This is also settable via CSS with the "-vfx-vunit-increment" property.
- Returns:
- the
vUnitIncrementproperty - See Also:
-
setVUnitIncrement
public void setVUnitIncrement(double unitIncrement) Sets the value of thevUnitIncrementproperty.- Property description:
- Specifies the amount added/subtracted to the vertical scroll bar's value used by the
buttons and by scrolling.
This is also settable via CSS with the "-vfx-vunit-increment" property.
- Parameters:
unitIncrement- the value for thevUnitIncrementproperty- See Also:
-
getHTrackIncrement
public double getHTrackIncrement()Gets the value of thehTrackIncrementproperty.- Property description:
- Specifies the amount added/subtracted to the horizontal scroll bar's value used by the
scroll bar's track.
This is also settable via CSS with the "-vfx-htrack-increment" property.
- Returns:
- the value of the
hTrackIncrementproperty - See Also:
-
hTrackIncrementProperty
public io.github.palexdev.mfxcore.base.properties.styleable.StyleableDoubleProperty hTrackIncrementProperty()Specifies the amount added/subtracted to the horizontal scroll bar's value used by the scroll bar's track.This is also settable via CSS with the "-vfx-htrack-increment" property.
- Returns:
- the
hTrackIncrementproperty - See Also:
-
setHTrackIncrement
public void setHTrackIncrement(double hTrackIncrement) Sets the value of thehTrackIncrementproperty.- Property description:
- Specifies the amount added/subtracted to the horizontal scroll bar's value used by the
scroll bar's track.
This is also settable via CSS with the "-vfx-htrack-increment" property.
- Parameters:
hTrackIncrement- the value for thehTrackIncrementproperty- See Also:
-
getHUnitIncrement
public double getHUnitIncrement()Gets the value of thehUnitIncrementproperty.- Property description:
- Specifies the amount added/subtracted to the horizontal scroll bar's value used by the
buttons and by scrolling.
This is also settable via CSS with the "-vfx-hunit-increment" property.
- Returns:
- the value of the
hUnitIncrementproperty - See Also:
-
hUnitIncrementProperty
public io.github.palexdev.mfxcore.base.properties.styleable.StyleableDoubleProperty hUnitIncrementProperty()Specifies the amount added/subtracted to the horizontal scroll bar's value used by the buttons and by scrolling.This is also settable via CSS with the "-vfx-hunit-increment" property.
- Returns:
- the
hUnitIncrementproperty - See Also:
-
setHUnitIncrement
public void setHUnitIncrement(double hUnitIncrement) Sets the value of thehUnitIncrementproperty.- Property description:
- Specifies the amount added/subtracted to the horizontal scroll bar's value used by the
buttons and by scrolling.
This is also settable via CSS with the "-vfx-hunit-increment" property.
- Parameters:
hUnitIncrement- the value for thehUnitIncrementproperty- See Also:
-
isShowButtons
public boolean isShowButtons()Gets the value of theshowButtonsproperty.- Property description:
- Specifies whether to show or not the scroll bars' buttons.
This is also settable via CSS with the "-vfx-show-buttons" property.
- Returns:
- the value of the
showButtonsproperty - See Also:
-
showButtonsProperty
public io.github.palexdev.mfxcore.base.properties.styleable.StyleableBooleanProperty showButtonsProperty()Specifies whether to show or not the scroll bars' buttons.This is also settable via CSS with the "-vfx-show-buttons" property.
- Returns:
- the
showButtonsproperty - See Also:
-
setShowButtons
public void setShowButtons(boolean showButtons) Sets the value of theshowButtonsproperty.- Property description:
- Specifies whether to show or not the scroll bars' buttons.
This is also settable via CSS with the "-vfx-show-buttons" property.
- Parameters:
showButtons- the value for theshowButtonsproperty- See Also:
-
getButtonsGap
public double getButtonsGap()Gets the value of thebuttonsGapproperty.- Property description:
- Specifies the gap between the scroll bars' thumb and their buttons.
This is also settable via CSS with the "-vfx-buttons-gap" property.
- Returns:
- the value of the
buttonsGapproperty - See Also:
-
buttonsGapProperty
public io.github.palexdev.mfxcore.base.properties.styleable.StyleableDoubleProperty buttonsGapProperty()Specifies the gap between the scroll bars' thumb and their buttons.This is also settable via CSS with the "-vfx-buttons-gap" property.
- Returns:
- the
buttonsGapproperty - See Also:
-
setButtonsGap
public void setButtonsGap(double buttonsGap) Sets the value of thebuttonsGapproperty.- Property description:
- Specifies the gap between the scroll bars' thumb and their buttons.
This is also settable via CSS with the "-vfx-buttons-gap" property.
- Parameters:
buttonsGap- the value for thebuttonsGapproperty- See Also:
-
isSmoothScroll
public boolean isSmoothScroll()Gets the value of thesmoothScrollproperty.- Property description:
- Specifies whether the scrolling should be smooth, done by animations.
This is also settable via CSS with the "-vfx-smooth-scroll" property.
- Returns:
- the value of the
smoothScrollproperty - See Also:
-
smoothScrollProperty
public io.github.palexdev.mfxcore.base.properties.styleable.StyleableBooleanProperty smoothScrollProperty()Specifies whether the scrolling should be smooth, done by animations.This is also settable via CSS with the "-vfx-smooth-scroll" property.
- Returns:
- the
smoothScrollproperty - See Also:
-
setSmoothScroll
public void setSmoothScroll(boolean smoothScroll) Sets the value of thesmoothScrollproperty.- Property description:
- Specifies whether the scrolling should be smooth, done by animations.
This is also settable via CSS with the "-vfx-smooth-scroll" property.
- Parameters:
smoothScroll- the value for thesmoothScrollproperty- See Also:
-
isTrackSmoothScroll
public boolean isTrackSmoothScroll()Gets the value of thetrackSmoothScrollproperty.- Property description:
- Specifies if the scrolling made by the track should be smooth, done by animations.
The default behavior considers this feature an addition to the
smoothScrollProperty(), meaning that for this to work the aforementioned feature must be enabled too.This is also settable via CSS with the "-vfx-track-smooth-scroll" property.
- Returns:
- the value of the
trackSmoothScrollproperty - See Also:
-
trackSmoothScrollProperty
public io.github.palexdev.mfxcore.base.properties.styleable.StyleableBooleanProperty trackSmoothScrollProperty()Specifies if the scrolling made by the track should be smooth, done by animations. The default behavior considers this feature an addition to thesmoothScrollProperty(), meaning that for this to work the aforementioned feature must be enabled too.This is also settable via CSS with the "-vfx-track-smooth-scroll" property.
- Returns:
- the
trackSmoothScrollproperty - See Also:
-
setTrackSmoothScroll
public void setTrackSmoothScroll(boolean trackSmoothScroll) Sets the value of thetrackSmoothScrollproperty.- Property description:
- Specifies if the scrolling made by the track should be smooth, done by animations.
The default behavior considers this feature an addition to the
smoothScrollProperty(), meaning that for this to work the aforementioned feature must be enabled too.This is also settable via CSS with the "-vfx-track-smooth-scroll" property.
- Parameters:
trackSmoothScroll- the value for thetrackSmoothScrollproperty- See Also:
-
isDragToScroll
public boolean isDragToScroll()Gets the value of thedragToScrollproperty.- Property description:
- Specifies whether the content can be scrolled with mouse dragging.
This is also settable via CSS with the "-vfx-drag-to-scroll" property.
- Returns:
- the value of the
dragToScrollproperty - See Also:
-
dragToScrollProperty
public io.github.palexdev.mfxcore.base.properties.styleable.StyleableBooleanProperty dragToScrollProperty()Specifies whether the content can be scrolled with mouse dragging.This is also settable via CSS with the "-vfx-drag-to-scroll" property.
- Returns:
- the
dragToScrollproperty - See Also:
-
setDragToScroll
public void setDragToScroll(boolean dragToScroll) Sets the value of thedragToScrollproperty.- Property description:
- Specifies whether the content can be scrolled with mouse dragging.
This is also settable via CSS with the "-vfx-drag-to-scroll" property.
- Parameters:
dragToScroll- the value for thedragToScrollproperty- See Also:
-
isDragSmoothScroll
public boolean isDragSmoothScroll()Gets the value of thedragSmoothScrollproperty.- Property description:
- Specifies whether to use animations for the
dragToScrollProperty()feature, making the scroll smooth.This is also settable via CSS with the "-vfx-drag-smooth-scroll" property.
- Returns:
- the value of the
dragSmoothScrollproperty - See Also:
-
dragSmoothScrollProperty
public io.github.palexdev.mfxcore.base.properties.styleable.StyleableBooleanProperty dragSmoothScrollProperty()Specifies whether to use animations for thedragToScrollProperty()feature, making the scroll smooth.This is also settable via CSS with the "-vfx-drag-smooth-scroll" property.
- Returns:
- the
dragSmoothScrollproperty - See Also:
-
setDragSmoothScroll
public void setDragSmoothScroll(boolean dragSmoothScroll) Sets the value of thedragSmoothScrollproperty.- Property description:
- Specifies whether to use animations for the
dragToScrollProperty()feature, making the scroll smooth.This is also settable via CSS with the "-vfx-drag-smooth-scroll" property.
- Parameters:
dragSmoothScroll- the value for thedragSmoothScrollproperty- See Also:
-
getClipBorderRadius
public double getClipBorderRadius()Gets the value of theclipBorderRadiusproperty.- Property description:
- Used by the viewport's clip to set its border radius.
This is useful when you want to make a rounded scroll pane and prevents the content from going outside the view.
Side note: the clip is a
Rectangle, now for some fucking reason the rectangle's arcWidth and arcHeight values used to make it round do not act like the border-radius or background-radius properties, instead their value is usually 2 / 2.5 times the latter. So for a border radius of 5 you want this value to be at least 10/13.This is also settable via CSS with the "-vfx-clip-border-radius" property.
- Returns:
- the value of the
clipBorderRadiusproperty - See Also:
-
clipBorderRadiusProperty
public io.github.palexdev.mfxcore.base.properties.styleable.StyleableDoubleProperty clipBorderRadiusProperty()Used by the viewport's clip to set its border radius. This is useful when you want to make a rounded scroll pane and prevents the content from going outside the view. Side note: the clip is aRectangle, now for some fucking reason the rectangle's arcWidth and arcHeight values used to make it round do not act like the border-radius or background-radius properties, instead their value is usually 2 / 2.5 times the latter. So for a border radius of 5 you want this value to be at least 10/13.This is also settable via CSS with the "-vfx-clip-border-radius" property.
- Returns:
- the
clipBorderRadiusproperty - See Also:
-
setClipBorderRadius
public void setClipBorderRadius(double clipBorderRadius) Sets the value of theclipBorderRadiusproperty.- Property description:
- Used by the viewport's clip to set its border radius.
This is useful when you want to make a rounded scroll pane and prevents the content from going outside the view.
Side note: the clip is a
Rectangle, now for some fucking reason the rectangle's arcWidth and arcHeight values used to make it round do not act like the border-radius or background-radius properties, instead their value is usually 2 / 2.5 times the latter. So for a border radius of 5 you want this value to be at least 10/13.This is also settable via CSS with the "-vfx-clip-border-radius" property.
- Parameters:
clipBorderRadius- the value for theclipBorderRadiusproperty- See Also:
-
getClassCssMetaData
-
getControlCssMetaData
- Overrides:
getControlCssMetaDatain classControl
-
getContent
Gets the value of thecontentproperty.- Property description:
- Specifies the current scroll pane's content.
- Returns:
- the value of the
contentproperty - See Also:
-
contentProperty
Specifies the current scroll pane's content.- Returns:
- the
contentproperty - See Also:
-
setContent
Sets the value of thecontentproperty.- Property description:
- Specifies the current scroll pane's content.
- Parameters:
content- the value for thecontentproperty- See Also:
-
getVMin
public double getVMin()Gets the value of thevMinproperty.- Property description:
- Specifies the vertical scroll bar's minimum value.
- Returns:
- the value of the
vMinproperty - See Also:
-
vMinProperty
Specifies the vertical scroll bar's minimum value.- Returns:
- the
vMinproperty - See Also:
-
setVMin
public void setVMin(double vMin) Sets the value of thevMinproperty.- Property description:
- Specifies the vertical scroll bar's minimum value.
- Parameters:
vMin- the value for thevMinproperty- See Also:
-
getVValue
public double getVValue()Gets the value of thevValueproperty.- Property description:
- Specifies the vertical scroll bar's value.
- Returns:
- the value of the
vValueproperty - See Also:
-
vValueProperty
Specifies the vertical scroll bar's value.- Returns:
- the
vValueproperty - See Also:
-
setVValue
public void setVValue(double vValue) Sets the value of thevValueproperty.- Property description:
- Specifies the vertical scroll bar's value.
- Parameters:
vValue- the value for thevValueproperty- See Also:
-
getVMax
public double getVMax()Gets the value of thevMaxproperty.- Property description:
- Specifies the vertical scroll bar's maximum value.
- Returns:
- the value of the
vMaxproperty - See Also:
-
vMaxProperty
Specifies the vertical scroll bar's maximum value.- Returns:
- the
vMaxproperty - See Also:
-
setVMax
public void setVMax(double vMax) Sets the value of thevMaxproperty.- Property description:
- Specifies the vertical scroll bar's maximum value.
- Parameters:
vMax- the value for thevMaxproperty- See Also:
-
getHMin
public double getHMin()Gets the value of thehMinproperty.- Property description:
- Specifies the horizontal scroll bar's minimum value.
- Returns:
- the value of the
hMinproperty - See Also:
-
hMinProperty
Specifies the horizontal scroll bar's minimum value.- Returns:
- the
hMinproperty - See Also:
-
setHMin
public void setHMin(double hMin) Sets the value of thehMinproperty.- Property description:
- Specifies the horizontal scroll bar's minimum value.
- Parameters:
hMin- the value for thehMinproperty- See Also:
-
getHValue
public double getHValue()Gets the value of thehValueproperty.- Property description:
- Specifies the horizontal scroll bar's value.
- Returns:
- the value of the
hValueproperty - See Also:
-
hValueProperty
Specifies the horizontal scroll bar's value.- Returns:
- the
hValueproperty - See Also:
-
setHValue
public void setHValue(double hValue) Sets the value of thehValueproperty.- Property description:
- Specifies the horizontal scroll bar's value.
- Parameters:
hValue- the value for thehValueproperty- See Also:
-
getHMax
public double getHMax()Gets the value of thehMaxproperty.- Property description:
- Specifies the horizontal scroll bar's maximum value.
- Returns:
- the value of the
hMaxproperty - See Also:
-
hMaxProperty
Specifies the horizontal scroll bar's maximum value.- Returns:
- the
hMaxproperty - See Also:
-
setHMax
public void setHMax(double hMax) Sets the value of thehMaxproperty.- Property description:
- Specifies the horizontal scroll bar's maximum value.
- Parameters:
hMax- the value for thehMaxproperty- See Also:
-
getVBarBehavior
Gets the value of thevBarBehaviorproperty.- Property description:
- Specifies the function used to build the vertical scroll bar's behavior.
- Returns:
- the value of the
vBarBehaviorproperty - See Also:
-
vBarBehaviorProperty
public io.github.palexdev.mfxcore.base.properties.functional.FunctionProperty<VFXScrollBar, VFXScrollBarBehavior> vBarBehaviorProperty()Specifies the function used to build the vertical scroll bar's behavior.- Returns:
- the
vBarBehaviorproperty - See Also:
-
setVBarBehavior
Sets the value of thevBarBehaviorproperty.- Property description:
- Specifies the function used to build the vertical scroll bar's behavior.
- Parameters:
vBarBehavior- the value for thevBarBehaviorproperty- See Also:
-
getHBarBehavior
Gets the value of thehBarBehaviorproperty.- Property description:
- Specifies the function used to build the horizontal scroll bar's behavior.
- Returns:
- the value of the
hBarBehaviorproperty - See Also:
-
hBarBehaviorProperty
public io.github.palexdev.mfxcore.base.properties.functional.FunctionProperty<VFXScrollBar, VFXScrollBarBehavior> hBarBehaviorProperty()Specifies the function used to build the horizontal scroll bar's behavior.- Returns:
- the
hBarBehaviorproperty - See Also:
-
setHBarBehavior
Sets the value of thehBarBehaviorproperty.- Property description:
- Specifies the function used to build the horizontal scroll bar's behavior.
- Parameters:
hBarBehavior- the value for thehBarBehaviorproperty- See Also:
-