Class VFXScrollBar
- All Implemented Interfaces:
io.github.palexdev.mfxcore.behavior.WithBehavior<VFXScrollBarBehavior>,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 VFXScrollBarSkin. The default behavior is VFXScrollBarBehavior. Also implements MFXStyleable.
In addition to an appealing style, the component offers many new features compared to the boring standard
JavaFX' scroll bar, such as:
- standard or slim appearance (depends on the stylesheet!), layoutModeProperty()
- the possibility of showing/hiding the increase and decrease buttons, showButtonsProperty()
- the possibility of controlling the gap between the buttons and the thumb, buttonsGapProperty()
- inbuilt smooth scroll both for the thumb and the track, smoothScrollProperty(), trackSmoothScrollProperty()
- the possibility of querying the scroll direction, scrollDirectionProperty()
PseudoClass worth mentioning:
- ":compact": active when the layoutModeProperty() is set to ScrollPaneEnums.LayoutMode.COMPACT
- ":buttons": active when the increment and decrement buttons are visible, showButtonsProperty()
- ":dragging": active when the thumb is being dragged
- ":horizontal": active when the scroll bar's orientation is HORIZONTAL
- ":vertical": active when the scroll bar's orientation is VERTICAL
For the sake of simplicity and abstraction, the bar's values are expressed as percentages. The minimum and maximum values can be set by usingsetMin(double) and setMax(double) but cannot go below 0.0
and above 1.0 respectively. The valueProperty() is automatically clamped between the min and max values.-
Property Summary
PropertiesTypePropertyDescriptionio.github.palexdev.mfxcore.base.properties.styleable.StyleableDoublePropertySpecifies the gap between the increase/decrease buttons and the track.io.github.palexdev.mfxcore.base.properties.styleable.StyleableObjectProperty<ScrollPaneEnums.LayoutMode> Specifies the scroll bar's appearance.Specifies the maximum possible value forvalueProperty().Specifies the minimum possible value forvalueProperty().io.github.palexdev.mfxcore.base.properties.styleable.StyleableObjectProperty<Orientation> Specifies the scroll bar's orientation.ReadOnlyObjectProperty<io.github.palexdev.mfxcore.utils.fx.ScrollUtils.ScrollDirection> Specifies the current scroll direction.io.github.palexdev.mfxcore.base.properties.styleable.StyleableBooleanPropertySpecifies whether the increase/decrease buttons are visible.io.github.palexdev.mfxcore.base.properties.styleable.StyleableBooleanPropertySpecifies whether the scrolling should be smooth, done by animations.io.github.palexdev.mfxcore.base.properties.styleable.StyleableDoublePropertySpecifies the amount added/subtracted to thevalueProperty()used by the scroll bar's track.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.styleable.StyleableDoublePropertySpecifies the amount added/subtracted to thevalueProperty()used by the increment/decrement buttons and by scrolling.Specifies the scroll value, clamped betweenminProperty()andmaxProperty().Specifies how much content is visible.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
FieldsModifier and TypeFieldDescriptionstatic final PseudoClassstatic final PseudoClassstatic final PseudoClassstatic final PseudoClassFields 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.StyleableDoublePropertySpecifies the gap between the increase/decrease buttons and the track.Supplier<io.github.palexdev.mfxcore.controls.SkinBase<?, ?>> doubleGets the value of thebuttonsGapproperty.static List<CssMetaData<? extends Styleable, ?>> protected List<CssMetaData<? extends Styleable, ?>> Gets the value of thelayoutModeproperty.doublegetMax()Gets the value of themaxproperty.doublegetMin()Gets the value of theminproperty.Gets the value of theorientationproperty.io.github.palexdev.mfxcore.utils.fx.ScrollUtils.ScrollDirectionGets the value of thescrollDirectionproperty.doubleGets the value of thetrackIncrementproperty.doubleGets the value of theunitIncrementproperty.doublegetValue()Gets the value of thevalueproperty.doubleGets the value of thevisibleAmountproperty.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> Specifies the scroll bar's appearance.Specifies the maximum possible value forvalueProperty().Specifies the minimum possible value forvalueProperty().io.github.palexdev.mfxcore.base.properties.styleable.StyleableObjectProperty<Orientation> Specifies the scroll bar's orientation.ReadOnlyObjectProperty<io.github.palexdev.mfxcore.utils.fx.ScrollUtils.ScrollDirection> Specifies the current scroll direction.voidsetButtonsGap(double buttonsGap) Sets the value of thebuttonsGapproperty.voidsetLayoutMode(ScrollPaneEnums.LayoutMode layoutMode) Sets the value of thelayoutModeproperty.voidsetMax(double max) Sets the value of themaxproperty.voidsetMin(double min) Sets the value of theminproperty.voidsetOrientation(Orientation orientation) Sets the value of theorientationproperty.voidsetShowButtons(boolean showButtons) Sets the value of theshowButtonsproperty.voidsetSmoothScroll(boolean smoothScroll) Sets the value of thesmoothScrollproperty.voidsetTrackIncrement(double trackIncrement) Sets the value of thetrackIncrementproperty.voidsetTrackSmoothScroll(boolean trackSmoothScroll) Sets the value of thetrackSmoothScrollproperty.voidsetUnitIncrement(double unitIncrement) Sets the value of theunitIncrementproperty.voidsetValue(double value) Sets the value of thevalueproperty.voidsetVisibleAmount(double visibleAmount) Sets the value of thevisibleAmountproperty.io.github.palexdev.mfxcore.base.properties.styleable.StyleableBooleanPropertySpecifies whether the increase/decrease buttons are visible.io.github.palexdev.mfxcore.base.properties.styleable.StyleableBooleanPropertySpecifies whether the scrolling should be smooth, done by animations.io.github.palexdev.mfxcore.base.properties.styleable.StyleableDoublePropertySpecifies the amount added/subtracted to thevalueProperty()used by the scroll bar's track.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.styleable.StyleableDoublePropertySpecifies the amount added/subtracted to thevalueProperty()used by the increment/decrement buttons and by scrolling.Specifies the scroll value, clamped betweenminProperty()andmaxProperty().Specifies how much content is visible.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> layoutModePropertySpecifies the scroll bar's appearance. Setting this toScrollPaneEnums.LayoutMode.COMPACTwill activate the extra PseudoClass ':compact' on the control.Note however that this depends entirely on the stylesheet used.
This is also settable via CSS with the "-vfx-layout-mode" property.
- See Also:
-
orientation
public io.github.palexdev.mfxcore.base.properties.styleable.StyleableObjectProperty<Orientation> orientationPropertySpecifies the scroll bar's orientation.This is also settable via CSS with the "-vfx-orientation" property.
- See Also:
-
showButtons
public io.github.palexdev.mfxcore.base.properties.styleable.StyleableBooleanProperty showButtonsPropertySpecifies whether the increase/decrease buttons are visible.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 increase/decrease buttons and the track.This is also settable via CSS with the "-vfx-buttons-gap" property.
- See Also:
-
trackIncrement
public io.github.palexdev.mfxcore.base.properties.styleable.StyleableDoubleProperty trackIncrementPropertySpecifies the amount added/subtracted to thevalueProperty()used by the scroll bar's track.This is also settable via CSS with the "-vfx-track-increment" property.
- See Also:
-
unitIncrement
public io.github.palexdev.mfxcore.base.properties.styleable.StyleableDoubleProperty unitIncrementPropertySpecifies the amount added/subtracted to thevalueProperty()used by the increment/decrement buttons and by scrolling.This is also settable via CSS with the "-vfx-unit-increment" 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:
-
min
Specifies the minimum possible value forvalueProperty().- See Also:
-
value
Specifies the scroll value, clamped betweenminProperty()andmaxProperty().- See Also:
-
max
Specifies the maximum possible value forvalueProperty().- See Also:
-
visibleAmount
Specifies how much content is visible. Depends on the components using the scroll bar and determines the length of the scroll bar's thumb relative to the track.Not setting this property does not compromise the component's functionality but as a consequence the bar does not indicate clearly to the user how much content is hidden.
- See Also:
-
scrollDirection
public ReadOnlyObjectProperty<io.github.palexdev.mfxcore.utils.fx.ScrollUtils.ScrollDirection> scrollDirectionPropertySpecifies the current scroll direction. The default behavior implementation manages this.- See Also:
-
-
Field Details
-
DRAGGING_PSEUDO_CLASS
-
VERTICAL_PSEUDO_CLASS
-
HORIZONTAL_PSEUDO_CLASS
-
BUTTONS_PSEUDO_CLASS
-
-
Constructor Details
-
VFXScrollBar
public VFXScrollBar() -
VFXScrollBar
-
-
Method Details
-
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<VFXScrollBarBehavior>
-
defaultStyleClasses
-
getLayoutMode
Gets the value of thelayoutModeproperty.- Property description:
- Specifies the scroll bar's appearance. Setting this to
ScrollPaneEnums.LayoutMode.COMPACTwill activate the extra PseudoClass ':compact' on the control.Note however that this depends entirely on the stylesheet used.
This is also settable via CSS with the "-vfx-layout-mode" property.
- Returns:
- the value of the
layoutModeproperty - See Also:
-
layoutModeProperty
public io.github.palexdev.mfxcore.base.properties.styleable.StyleableObjectProperty<ScrollPaneEnums.LayoutMode> layoutModeProperty()Specifies the scroll bar's appearance. Setting this toScrollPaneEnums.LayoutMode.COMPACTwill activate the extra PseudoClass ':compact' on the control.Note however that this depends entirely on the stylesheet used.
This is also settable via CSS with the "-vfx-layout-mode" property.
- Returns:
- the
layoutModeproperty - See Also:
-
setLayoutMode
Sets the value of thelayoutModeproperty.- Property description:
- Specifies the scroll bar's appearance. Setting this to
ScrollPaneEnums.LayoutMode.COMPACTwill activate the extra PseudoClass ':compact' on the control.Note however that this depends entirely on the stylesheet used.
This is also settable via CSS with the "-vfx-layout-mode" property.
- Parameters:
layoutMode- the value for thelayoutModeproperty- See Also:
-
getOrientation
Gets the value of theorientationproperty.- Property description:
- Specifies the scroll bar's orientation.
This is also settable via CSS with the "-vfx-orientation" property.
- Returns:
- the value of the
orientationproperty - See Also:
-
orientationProperty
public io.github.palexdev.mfxcore.base.properties.styleable.StyleableObjectProperty<Orientation> orientationProperty()Specifies the scroll bar's orientation.This is also settable via CSS with the "-vfx-orientation" property.
- Returns:
- the
orientationproperty - See Also:
-
setOrientation
Sets the value of theorientationproperty.- Property description:
- Specifies the scroll bar's orientation.
This is also settable via CSS with the "-vfx-orientation" property.
- Parameters:
orientation- the value for theorientationproperty- See Also:
-
isShowButtons
public boolean isShowButtons()Gets the value of theshowButtonsproperty.- Property description:
- Specifies whether the increase/decrease buttons are visible.
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 the increase/decrease buttons are visible.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 the increase/decrease buttons are visible.
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 increase/decrease buttons and the track.
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 increase/decrease buttons and the track.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 increase/decrease buttons and the track.
This is also settable via CSS with the "-vfx-buttons-gap" property.
- Parameters:
buttonsGap- the value for thebuttonsGapproperty- See Also:
-
getTrackIncrement
public double getTrackIncrement()Gets the value of thetrackIncrementproperty.- Property description:
- Specifies the amount added/subtracted to the
valueProperty()used by the scroll bar's track.This is also settable via CSS with the "-vfx-track-increment" property.
- Returns:
- the value of the
trackIncrementproperty - See Also:
-
trackIncrementProperty
public io.github.palexdev.mfxcore.base.properties.styleable.StyleableDoubleProperty trackIncrementProperty()Specifies the amount added/subtracted to thevalueProperty()used by the scroll bar's track.This is also settable via CSS with the "-vfx-track-increment" property.
- Returns:
- the
trackIncrementproperty - See Also:
-
setTrackIncrement
public void setTrackIncrement(double trackIncrement) Sets the value of thetrackIncrementproperty.- Property description:
- Specifies the amount added/subtracted to the
valueProperty()used by the scroll bar's track.This is also settable via CSS with the "-vfx-track-increment" property.
- Parameters:
trackIncrement- the value for thetrackIncrementproperty- See Also:
-
getUnitIncrement
public double getUnitIncrement()Gets the value of theunitIncrementproperty.- Property description:
- Specifies the amount added/subtracted to the
valueProperty()used by the increment/decrement buttons and by scrolling.This is also settable via CSS with the "-vfx-unit-increment" property.
- Returns:
- the value of the
unitIncrementproperty - See Also:
-
unitIncrementProperty
public io.github.palexdev.mfxcore.base.properties.styleable.StyleableDoubleProperty unitIncrementProperty()Specifies the amount added/subtracted to thevalueProperty()used by the increment/decrement buttons and by scrolling.This is also settable via CSS with the "-vfx-unit-increment" property.
- Returns:
- the
unitIncrementproperty - See Also:
-
setUnitIncrement
public void setUnitIncrement(double unitIncrement) Sets the value of theunitIncrementproperty.- Property description:
- Specifies the amount added/subtracted to the
valueProperty()used by the increment/decrement buttons and by scrolling.This is also settable via CSS with the "-vfx-unit-increment" property.
- Parameters:
unitIncrement- the value for theunitIncrementproperty- 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:
-
getClassCssMetaData
-
getControlCssMetaData
- Overrides:
getControlCssMetaDatain classControl
-
getMin
public double getMin()Gets the value of theminproperty.- Property description:
- Specifies the minimum possible value for
valueProperty(). - Returns:
- the value of the
minproperty - See Also:
-
minProperty
Specifies the minimum possible value forvalueProperty().- Returns:
- the
minproperty - See Also:
-
setMin
public void setMin(double min) Sets the value of theminproperty.- Property description:
- Specifies the minimum possible value for
valueProperty(). - Parameters:
min- the value for theminproperty- See Also:
-
getValue
public double getValue()Gets the value of thevalueproperty.- Property description:
- Specifies the scroll value, clamped between
minProperty()andmaxProperty(). - Returns:
- the value of the
valueproperty - See Also:
-
valueProperty
Specifies the scroll value, clamped betweenminProperty()andmaxProperty().- Returns:
- the
valueproperty - See Also:
-
setValue
public void setValue(double value) Sets the value of thevalueproperty.- Property description:
- Specifies the scroll value, clamped between
minProperty()andmaxProperty(). - Parameters:
value- the value for thevalueproperty- See Also:
-
getMax
public double getMax()Gets the value of themaxproperty.- Property description:
- Specifies the maximum possible value for
valueProperty(). - Returns:
- the value of the
maxproperty - See Also:
-
maxProperty
Specifies the maximum possible value forvalueProperty().- Returns:
- the
maxproperty - See Also:
-
setMax
public void setMax(double max) Sets the value of themaxproperty.- Property description:
- Specifies the maximum possible value for
valueProperty(). - Parameters:
max- the value for themaxproperty- See Also:
-
getVisibleAmount
public double getVisibleAmount()Gets the value of thevisibleAmountproperty.- Property description:
- Specifies how much content is visible. Depends on the components using the scroll bar and determines the length
of the scroll bar's thumb relative to the track.
Not setting this property does not compromise the component's functionality but as a consequence the bar does not indicate clearly to the user how much content is hidden.
- Returns:
- the value of the
visibleAmountproperty - See Also:
-
visibleAmountProperty
Specifies how much content is visible. Depends on the components using the scroll bar and determines the length of the scroll bar's thumb relative to the track.Not setting this property does not compromise the component's functionality but as a consequence the bar does not indicate clearly to the user how much content is hidden.
- Returns:
- the
visibleAmountproperty - See Also:
-
setVisibleAmount
public void setVisibleAmount(double visibleAmount) Sets the value of thevisibleAmountproperty.- Property description:
- Specifies how much content is visible. Depends on the components using the scroll bar and determines the length
of the scroll bar's thumb relative to the track.
Not setting this property does not compromise the component's functionality but as a consequence the bar does not indicate clearly to the user how much content is hidden.
- Parameters:
visibleAmount- the value for thevisibleAmountproperty- See Also:
-
getScrollDirection
public io.github.palexdev.mfxcore.utils.fx.ScrollUtils.ScrollDirection getScrollDirection()Gets the value of thescrollDirectionproperty.- Property description:
- Specifies the current scroll direction. The default behavior implementation manages this.
- Returns:
- the value of the
scrollDirectionproperty - See Also:
-
scrollDirectionProperty
public ReadOnlyObjectProperty<io.github.palexdev.mfxcore.utils.fx.ScrollUtils.ScrollDirection> scrollDirectionProperty()Specifies the current scroll direction. The default behavior implementation manages this.- Returns:
- the
scrollDirectionproperty - See Also:
-