java.lang.Object
javafx.scene.Node
javafx.scene.Parent
javafx.scene.layout.Region
javafx.scene.control.Control
javafx.scene.control.ScrollPane
- All Implemented Interfaces:
- Styleable,- EventTarget,- Skinnable
A Control that provides a scrolled, clipped viewport of its contents. It
 allows the user to scroll the content around either directly (panning) or
 by using scroll bars. The ScrollPane allows specification of the scroll
 bar policy, which determines when scroll bars are displayed: always, never,
 or only when they are needed. The scroll bar policy can be specified
 independently for the horizontal and vertical scroll bars.
 
 The ScrollPane allows the application to set the current, minimum, and
 maximum values for positioning the contents in the horizontal and
 vertical directions. These values are mapped proportionally onto the
 layoutBounds of the contained node.
 
ScrollPane layout calculations are based on the layoutBounds rather than the boundsInParent (visual bounds) of the scroll node. If an application wants the scrolling to be based on the visual bounds of the node (for scaled content etc.), it needs to wrap the scroll node in a Group.
ScrollPane sets focusTraversable to false.
This example creates a ScrollPane, which contains a Rectangle:
 Rectangle rect = new Rectangle(200, 200, Color.RED);
 ScrollPane s1 = new ScrollPane();
 s1.setPrefSize(120, 120);
 s1.setContent(rect);
- Since:
- JavaFX 2.0
- 
Property SummaryPropertiesTypePropertyDescriptionfinal ObjectProperty<Node>The node used as the content of this ScrollPane.final BooleanPropertyIf true and if the contained node is a Resizable, then the node will be kept resized to match the height of the ScrollPane's viewport.final BooleanPropertyIf true and if the contained node is a Resizable, then the node will be kept resized to match the width of the ScrollPane's viewport.Specifies the policy for showing the horizontal scroll bar.final DoublePropertyThe maximum allowablehvaluefor this ScrollPane.final DoublePropertyThe minimum allowablehvaluefor this ScrollPane.final DoublePropertyThe current horizontal scroll position of the ScrollPane.final DoublePropertySpecify the minimum height of the ScrollPane Viewport.final DoublePropertySpecify the minimum width of the ScrollPane Viewport.final BooleanPropertySpecifies whether the user should be able to pan the viewport by using the mouse.final DoublePropertySpecify the preferred height of the ScrollPane Viewport.final DoublePropertySpecify the preferred width of the ScrollPane Viewport.Specifies the policy for showing the vertical scroll bar.final ObjectProperty<Bounds>The actual Bounds of the ScrollPane Viewport.final DoublePropertyThe maximum allowablevvaluefor this ScrollPane.final DoublePropertyThe minimum allowablevvaluefor this ScrollPane.final DoublePropertyThe current vertical scroll position of the ScrollPane.Properties declared in class javafx.scene.control.ControlcontextMenu, skin, tooltipProperties declared in class javafx.scene.layout.Regionbackground, border, cacheShape, centerShape, height, insets, maxHeight, maxWidth, minHeight, minWidth, opaqueInsets, padding, prefHeight, prefWidth, scaleShape, shape, snapToPixel, widthProperties declared in class javafx.scene.ParentneedsLayoutProperties declared in class javafx.scene.NodeaccessibleHelp, accessibleRoleDescription, accessibleRole, accessibleText, blendMode, boundsInLocal, boundsInParent, cacheHint, cache, clip, cursor, depthTest, disabled, disable, effectiveNodeOrientation, effect, eventDispatcher, focused, focusTraversable, 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
- 
Nested Class SummaryNested ClassesModifier and TypeClassDescriptionstatic enumAn enumeration denoting the policy to be used by a scrollable Control in deciding whether to show a scroll bar.
- 
Field SummaryFields declared in class javafx.scene.layout.RegionUSE_COMPUTED_SIZE, USE_PREF_SIZEFields declared in class javafx.scene.NodeBASELINE_OFFSET_SAME_AS_HEIGHT
- 
Constructor SummaryConstructorsConstructorDescriptionCreates a new ScrollPane.ScrollPane(Node content) Creates a new ScrollPane.
- 
Method SummaryModifier and TypeMethodDescriptionfinal ObjectProperty<Node>The node used as the content of this ScrollPane.final BooleanPropertyIf true and if the contained node is a Resizable, then the node will be kept resized to match the height of the ScrollPane's viewport.final BooleanPropertyIf true and if the contained node is a Resizable, then the node will be kept resized to match the width of the ScrollPane's viewport.static List<CssMetaData<? extends Styleable,?>> Gets theCssMetaDataassociated with this class, which may include theCssMetaDataof its superclasses.final NodeGets the value of thecontentproperty.List<CssMetaData<? extends Styleable,?>> Gets the unmodifiable list of the control's CSS-styleable properties.Gets the value of thehbarPolicyproperty.final doublegetHmax()Gets the value of thehmaxproperty.final doublegetHmin()Gets the value of thehminproperty.final doubleGets the value of thehvalueproperty.protected BooleanReturns the initial focus traversable state of this control, for use by the JavaFX CSS engine to correctly set its initial value.final doubleGets the value of theminViewportHeightproperty.final doubleGets the value of theminViewportWidthproperty.final doubleGets the value of theprefViewportHeightproperty.final doubleGets the value of theprefViewportWidthproperty.Gets the value of thevbarPolicyproperty.final BoundsGets the value of theviewportBoundsproperty.final doublegetVmax()Gets the value of thevmaxproperty.final doublegetVmin()Gets the value of thevminproperty.final doubleGets the value of thevvalueproperty.Specifies the policy for showing the horizontal scroll bar.final DoublePropertyThe maximum allowablehvaluefor this ScrollPane.final DoublePropertyThe minimum allowablehvaluefor this ScrollPane.final DoublePropertyThe current horizontal scroll position of the ScrollPane.final booleanGets the value of thefitToHeightproperty.final booleanGets the value of thefitToWidthproperty.final booleanGets the value of thepannableproperty.final DoublePropertySpecify the minimum height of the ScrollPane Viewport.final DoublePropertySpecify the minimum width of the ScrollPane Viewport.final BooleanPropertySpecifies whether the user should be able to pan the viewport by using the mouse.final DoublePropertySpecify the preferred height of the ScrollPane Viewport.final DoublePropertySpecify the preferred width of the ScrollPane Viewport.final voidsetContent(Node value) Sets the value of thecontentproperty.final voidsetFitToHeight(boolean value) Sets the value of thefitToHeightproperty.final voidsetFitToWidth(boolean value) Sets the value of thefitToWidthproperty.final voidSets the value of thehbarPolicyproperty.final voidsetHmax(double value) Sets the value of thehmaxproperty.final voidsetHmin(double value) Sets the value of thehminproperty.final voidsetHvalue(double value) Sets the value of thehvalueproperty.final voidsetMinViewportHeight(double value) Sets the value of theminViewportHeightproperty.final voidsetMinViewportWidth(double value) Sets the value of theminViewportWidthproperty.final voidsetPannable(boolean value) Sets the value of thepannableproperty.final voidsetPrefViewportHeight(double value) Sets the value of theprefViewportHeightproperty.final voidsetPrefViewportWidth(double value) Sets the value of theprefViewportWidthproperty.final voidSets the value of thevbarPolicyproperty.final voidsetViewportBounds(Bounds value) Sets the value of theviewportBoundsproperty.final voidsetVmax(double value) Sets the value of thevmaxproperty.final voidsetVmin(double value) Sets the value of thevminproperty.final voidsetVvalue(double value) Sets the value of thevvalueproperty.Specifies the policy for showing the vertical scroll bar.final ObjectProperty<Bounds>The actual Bounds of the ScrollPane Viewport.final DoublePropertyThe maximum allowablevvaluefor this ScrollPane.final DoublePropertyThe minimum allowablevvaluefor this ScrollPane.final DoublePropertyThe current vertical scroll position of the ScrollPane.Methods declared in class javafx.scene.control.ControlcomputeMaxHeight, computeMaxWidth, computeMinHeight, computeMinWidth, contextMenuProperty, createDefaultSkin, getContextMenu, getCssMetaData, getSkin, getTooltip, isResizable, setContextMenu, setSkin, setTooltip, skinProperty, tooltipPropertyMethods declared in class javafx.scene.layout.RegionbackgroundProperty, borderProperty, cacheShapeProperty, centerShapeProperty, computePrefHeight, computePrefWidth, 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 declared in class javafx.scene.ParentgetBaselineOffset, getChildren, getChildrenUnmodifiable, getManagedChildren, getStylesheets, isNeedsLayout, layout, layoutChildren, needsLayoutProperty, requestLayout, requestParentLayout, setNeedsLayout, updateBoundsMethods declared in class javafx.scene.NodeaccessibleHelpProperty, accessibleRoleDescriptionProperty, accessibleRoleProperty, accessibleTextProperty, addEventFilter, addEventHandler, applyCss, autosize, blendModeProperty, boundsInLocalProperty, boundsInParentProperty, buildEventDispatchChain, cacheHintProperty, cacheProperty, clipProperty, computeAreaInScreen, contains, contains, cursorProperty, depthTestProperty, disabledProperty, disableProperty, effectiveNodeOrientationProperty, effectProperty, eventDispatcherProperty, executeAccessibleAction, fireEvent, focusedProperty, focusTraversableProperty, 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, 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, lookup, 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, queryAccessibleAttribute, relocate, removeEventFilter, removeEventHandler, requestFocus, 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 declared in class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods declared in interface javafx.css.StyleablegetStyleableNode
- 
Property Details- 
hbarPolicySpecifies the policy for showing the horizontal scroll bar.
- 
vbarPolicySpecifies the policy for showing the vertical scroll bar.
- 
contentThe node used as the content of this ScrollPane.- See Also:
 
- 
hvalueThe current horizontal scroll position of the ScrollPane. This value may be set by the application to scroll the view programatically. The ScrollPane will update this value whenever the viewport is scrolled or panned by the user. This value must always be within the range ofhmintohmax. Whenhvalueequalshmin, the contained node is positioned so that its layoutBoundsminXis visible. Whenhvalueequalshmax, the contained node is positioned so that its layoutBoundsmaxXis visible. Whenhvalueis betweenhminandhmax, the contained node is positioned proportionally between layoutBoundsminXand layoutBoundsmaxX.- See Also:
 
- 
vvalueThe current vertical scroll position of the ScrollPane. This value may be set by the application to scroll the view programatically. The ScrollPane will update this value whenever the viewport is scrolled or panned by the user. This value must always be within the range ofvmintovmax. Whenvvalueequalsvmin, the contained node is positioned so that its layoutBoundsminYis visible. Whenvvalueequalsvmax, the contained node is positioned so that its layoutBoundsmaxYis visible. Whenvvalueis betweenvminandvmax, the contained node is positioned proportionally between layoutBoundsminYand layoutBoundsmaxY.- See Also:
 
- 
hminThe minimum allowablehvaluefor this ScrollPane. Default value is 0.- See Also:
 
- 
vminThe minimum allowablevvaluefor this ScrollPane. Default value is 0.- See Also:
 
- 
hmaxThe maximum allowablehvaluefor this ScrollPane. Default value is 1.- See Also:
 
- 
vmaxThe maximum allowablevvaluefor this ScrollPane. Default value is 1.- See Also:
 
- 
fitToWidthIf true and if the contained node is a Resizable, then the node will be kept resized to match the width of the ScrollPane's viewport. If the contained node is not a Resizable, this value is ignored.
- 
fitToHeightIf true and if the contained node is a Resizable, then the node will be kept resized to match the height of the ScrollPane's viewport. If the contained node is not a Resizable, this value is ignored.
- 
pannableSpecifies whether the user should be able to pan the viewport by using the mouse. If mouse events reach the ScrollPane (that is, if mouse events are not blocked by the contained node or one of its children) thenpannableis consulted to determine if the events should be used for panning.
- 
prefViewportWidthSpecify the preferred width of the ScrollPane Viewport. This is the width that will be available to the content node. The overall width of the ScrollPane is the ViewportWidth + padding
- 
prefViewportHeightSpecify the preferred height of the ScrollPane Viewport. This is the height that will be available to the content node. The overall height of the ScrollPane is the ViewportHeight + padding
- 
minViewportWidthSpecify the minimum width of the ScrollPane Viewport. This is the width that will be available to the content node.- Since:
- JavaFX 8u40
- See Also:
 
- 
minViewportHeightSpecify the minimum height of the ScrollPane Viewport. This is the height that will be available to the content node.- Since:
- JavaFX 8u40
- See Also:
 
- 
viewportBoundsThe actual Bounds of the ScrollPane Viewport. This is the Bounds of the content node.
 
- 
- 
Constructor Details- 
ScrollPanepublic ScrollPane()Creates a new ScrollPane.
- 
ScrollPaneCreates a new ScrollPane.- Parameters:
- content- the initial content for the ScrollPane
- Since:
- JavaFX 8.0
 
 
- 
- 
Method Details- 
setHbarPolicySets the value of thehbarPolicyproperty.- Property description:
- Specifies the policy for showing the horizontal scroll bar.
- Parameters:
- value- the value for the- hbarPolicyproperty
- See Also:
 
- 
getHbarPolicyGets the value of thehbarPolicyproperty.- Property description:
- Specifies the policy for showing the horizontal scroll bar.
- Returns:
- the value of the hbarPolicyproperty
- See Also:
 
- 
hbarPolicyPropertySpecifies the policy for showing the horizontal scroll bar.- Returns:
- the hbarPolicyproperty
- See Also:
 
- 
setVbarPolicySets the value of thevbarPolicyproperty.- Property description:
- Specifies the policy for showing the vertical scroll bar.
- Parameters:
- value- the value for the- vbarPolicyproperty
- See Also:
 
- 
getVbarPolicyGets the value of thevbarPolicyproperty.- Property description:
- Specifies the policy for showing the vertical scroll bar.
- Returns:
- the value of the vbarPolicyproperty
- See Also:
 
- 
vbarPolicyPropertySpecifies the policy for showing the vertical scroll bar.- Returns:
- the vbarPolicyproperty
- See Also:
 
- 
setContentSets the value of thecontentproperty.- Property description:
- The node used as the content of this ScrollPane.
- Parameters:
- value- the value for the- contentproperty
- See Also:
 
- 
getContentGets the value of thecontentproperty.- Property description:
- The node used as the content of this ScrollPane.
- Returns:
- the value of the contentproperty
- See Also:
 
- 
contentPropertyThe node used as the content of this ScrollPane.- Returns:
- the contentproperty
- See Also:
 
- 
setHvaluepublic final void setHvalue(double value) Sets the value of thehvalueproperty.- Property description:
- The current horizontal scroll position of the ScrollPane. This value
 may be set by the application to scroll the view programatically.
 The ScrollPane will update this value whenever the viewport is
 scrolled or panned by the user. This value must always be within
 the range of hmintohmax. Whenhvalueequalshmin, the contained node is positioned so that its layoutBoundsminXis visible. Whenhvalueequalshmax, the contained node is positioned so that its layoutBoundsmaxXis visible. Whenhvalueis betweenhminandhmax, the contained node is positioned proportionally between layoutBoundsminXand layoutBoundsmaxX.
- Parameters:
- value- the value for the- hvalueproperty
- See Also:
 
- 
getHvaluepublic final double getHvalue()Gets the value of thehvalueproperty.- Property description:
- The current horizontal scroll position of the ScrollPane. This value
 may be set by the application to scroll the view programatically.
 The ScrollPane will update this value whenever the viewport is
 scrolled or panned by the user. This value must always be within
 the range of hmintohmax. Whenhvalueequalshmin, the contained node is positioned so that its layoutBoundsminXis visible. Whenhvalueequalshmax, the contained node is positioned so that its layoutBoundsmaxXis visible. Whenhvalueis betweenhminandhmax, the contained node is positioned proportionally between layoutBoundsminXand layoutBoundsmaxX.
- Returns:
- the value of the hvalueproperty
- See Also:
 
- 
hvaluePropertyThe current horizontal scroll position of the ScrollPane. This value may be set by the application to scroll the view programatically. The ScrollPane will update this value whenever the viewport is scrolled or panned by the user. This value must always be within the range ofhmintohmax. Whenhvalueequalshmin, the contained node is positioned so that its layoutBoundsminXis visible. Whenhvalueequalshmax, the contained node is positioned so that its layoutBoundsmaxXis visible. Whenhvalueis betweenhminandhmax, the contained node is positioned proportionally between layoutBoundsminXand layoutBoundsmaxX.- Returns:
- the hvalueproperty
- See Also:
 
- 
setVvaluepublic final void setVvalue(double value) Sets the value of thevvalueproperty.- Property description:
- The current vertical scroll position of the ScrollPane. This value
 may be set by the application to scroll the view programatically.
 The ScrollPane will update this value whenever the viewport is
 scrolled or panned by the user. This value must always be within
 the range of vmintovmax. Whenvvalueequalsvmin, the contained node is positioned so that its layoutBoundsminYis visible. Whenvvalueequalsvmax, the contained node is positioned so that its layoutBoundsmaxYis visible. Whenvvalueis betweenvminandvmax, the contained node is positioned proportionally between layoutBoundsminYand layoutBoundsmaxY.
- Parameters:
- value- the value for the- vvalueproperty
- See Also:
 
- 
getVvaluepublic final double getVvalue()Gets the value of thevvalueproperty.- Property description:
- The current vertical scroll position of the ScrollPane. This value
 may be set by the application to scroll the view programatically.
 The ScrollPane will update this value whenever the viewport is
 scrolled or panned by the user. This value must always be within
 the range of vmintovmax. Whenvvalueequalsvmin, the contained node is positioned so that its layoutBoundsminYis visible. Whenvvalueequalsvmax, the contained node is positioned so that its layoutBoundsmaxYis visible. Whenvvalueis betweenvminandvmax, the contained node is positioned proportionally between layoutBoundsminYand layoutBoundsmaxY.
- Returns:
- the value of the vvalueproperty
- See Also:
 
- 
vvaluePropertyThe current vertical scroll position of the ScrollPane. This value may be set by the application to scroll the view programatically. The ScrollPane will update this value whenever the viewport is scrolled or panned by the user. This value must always be within the range ofvmintovmax. Whenvvalueequalsvmin, the contained node is positioned so that its layoutBoundsminYis visible. Whenvvalueequalsvmax, the contained node is positioned so that its layoutBoundsmaxYis visible. Whenvvalueis betweenvminandvmax, the contained node is positioned proportionally between layoutBoundsminYand layoutBoundsmaxY.- Returns:
- the vvalueproperty
- See Also:
 
- 
setHminpublic final void setHmin(double value) Sets the value of thehminproperty.- Property description:
- The minimum allowable hvaluefor this ScrollPane. Default value is 0.
- Parameters:
- value- the value for the- hminproperty
- See Also:
 
- 
getHminpublic final double getHmin()Gets the value of thehminproperty.- Property description:
- The minimum allowable hvaluefor this ScrollPane. Default value is 0.
- Returns:
- the value of the hminproperty
- See Also:
 
- 
hminPropertyThe minimum allowablehvaluefor this ScrollPane. Default value is 0.- Returns:
- the hminproperty
- See Also:
 
- 
setVminpublic final void setVmin(double value) Sets the value of thevminproperty.- Property description:
- The minimum allowable vvaluefor this ScrollPane. Default value is 0.
- Parameters:
- value- the value for the- vminproperty
- See Also:
 
- 
getVminpublic final double getVmin()Gets the value of thevminproperty.- Property description:
- The minimum allowable vvaluefor this ScrollPane. Default value is 0.
- Returns:
- the value of the vminproperty
- See Also:
 
- 
vminPropertyThe minimum allowablevvaluefor this ScrollPane. Default value is 0.- Returns:
- the vminproperty
- See Also:
 
- 
setHmaxpublic final void setHmax(double value) Sets the value of thehmaxproperty.- Property description:
- The maximum allowable hvaluefor this ScrollPane. Default value is 1.
- Parameters:
- value- the value for the- hmaxproperty
- See Also:
 
- 
getHmaxpublic final double getHmax()Gets the value of thehmaxproperty.- Property description:
- The maximum allowable hvaluefor this ScrollPane. Default value is 1.
- Returns:
- the value of the hmaxproperty
- See Also:
 
- 
hmaxPropertyThe maximum allowablehvaluefor this ScrollPane. Default value is 1.- Returns:
- the hmaxproperty
- See Also:
 
- 
setVmaxpublic final void setVmax(double value) Sets the value of thevmaxproperty.- Property description:
- The maximum allowable vvaluefor this ScrollPane. Default value is 1.
- Parameters:
- value- the value for the- vmaxproperty
- See Also:
 
- 
getVmaxpublic final double getVmax()Gets the value of thevmaxproperty.- Property description:
- The maximum allowable vvaluefor this ScrollPane. Default value is 1.
- Returns:
- the value of the vmaxproperty
- See Also:
 
- 
vmaxPropertyThe maximum allowablevvaluefor this ScrollPane. Default value is 1.- Returns:
- the vmaxproperty
- See Also:
 
- 
setFitToWidthpublic final void setFitToWidth(boolean value) Sets the value of thefitToWidthproperty.- Property description:
- If true and if the contained node is a Resizable, then the node will be kept resized to match the width of the ScrollPane's viewport. If the contained node is not a Resizable, this value is ignored.
- Parameters:
- value- the value for the- fitToWidthproperty
- See Also:
 
- 
isFitToWidthpublic final boolean isFitToWidth()Gets the value of thefitToWidthproperty.- Property description:
- If true and if the contained node is a Resizable, then the node will be kept resized to match the width of the ScrollPane's viewport. If the contained node is not a Resizable, this value is ignored.
- Returns:
- the value of the fitToWidthproperty
- See Also:
 
- 
fitToWidthPropertyIf true and if the contained node is a Resizable, then the node will be kept resized to match the width of the ScrollPane's viewport. If the contained node is not a Resizable, this value is ignored.- Returns:
- the fitToWidthproperty
- See Also:
 
- 
setFitToHeightpublic final void setFitToHeight(boolean value) Sets the value of thefitToHeightproperty.- Property description:
- If true and if the contained node is a Resizable, then the node will be kept resized to match the height of the ScrollPane's viewport. If the contained node is not a Resizable, this value is ignored.
- Parameters:
- value- the value for the- fitToHeightproperty
- See Also:
 
- 
isFitToHeightpublic final boolean isFitToHeight()Gets the value of thefitToHeightproperty.- Property description:
- If true and if the contained node is a Resizable, then the node will be kept resized to match the height of the ScrollPane's viewport. If the contained node is not a Resizable, this value is ignored.
- Returns:
- the value of the fitToHeightproperty
- See Also:
 
- 
fitToHeightPropertyIf true and if the contained node is a Resizable, then the node will be kept resized to match the height of the ScrollPane's viewport. If the contained node is not a Resizable, this value is ignored.- Returns:
- the fitToHeightproperty
- See Also:
 
- 
setPannablepublic final void setPannable(boolean value) Sets the value of thepannableproperty.- Property description:
- Specifies whether the user should be able to pan the viewport by using
 the mouse. If mouse events reach the ScrollPane (that is, if mouse
 events are not blocked by the contained node or one of its children)
 then pannableis consulted to determine if the events should be used for panning.
- Parameters:
- value- the value for the- pannableproperty
- See Also:
 
- 
isPannablepublic final boolean isPannable()Gets the value of thepannableproperty.- Property description:
- Specifies whether the user should be able to pan the viewport by using
 the mouse. If mouse events reach the ScrollPane (that is, if mouse
 events are not blocked by the contained node or one of its children)
 then pannableis consulted to determine if the events should be used for panning.
- Returns:
- the value of the pannableproperty
- See Also:
 
- 
pannablePropertySpecifies whether the user should be able to pan the viewport by using the mouse. If mouse events reach the ScrollPane (that is, if mouse events are not blocked by the contained node or one of its children) thenpannableis consulted to determine if the events should be used for panning.- Returns:
- the pannableproperty
- See Also:
 
- 
setPrefViewportWidthpublic final void setPrefViewportWidth(double value) Sets the value of theprefViewportWidthproperty.- Property description:
- Specify the preferred width of the ScrollPane Viewport. This is the width that will be available to the content node. The overall width of the ScrollPane is the ViewportWidth + padding
- Parameters:
- value- the value for the- prefViewportWidthproperty
- See Also:
 
- 
getPrefViewportWidthpublic final double getPrefViewportWidth()Gets the value of theprefViewportWidthproperty.- Property description:
- Specify the preferred width of the ScrollPane Viewport. This is the width that will be available to the content node. The overall width of the ScrollPane is the ViewportWidth + padding
- Returns:
- the value of the prefViewportWidthproperty
- See Also:
 
- 
prefViewportWidthPropertySpecify the preferred width of the ScrollPane Viewport. This is the width that will be available to the content node. The overall width of the ScrollPane is the ViewportWidth + padding- Returns:
- the prefViewportWidthproperty
- See Also:
 
- 
setPrefViewportHeightpublic final void setPrefViewportHeight(double value) Sets the value of theprefViewportHeightproperty.- Property description:
- Specify the preferred height of the ScrollPane Viewport. This is the height that will be available to the content node. The overall height of the ScrollPane is the ViewportHeight + padding
- Parameters:
- value- the value for the- prefViewportHeightproperty
- See Also:
 
- 
getPrefViewportHeightpublic final double getPrefViewportHeight()Gets the value of theprefViewportHeightproperty.- Property description:
- Specify the preferred height of the ScrollPane Viewport. This is the height that will be available to the content node. The overall height of the ScrollPane is the ViewportHeight + padding
- Returns:
- the value of the prefViewportHeightproperty
- See Also:
 
- 
prefViewportHeightPropertySpecify the preferred height of the ScrollPane Viewport. This is the height that will be available to the content node. The overall height of the ScrollPane is the ViewportHeight + padding- Returns:
- the prefViewportHeightproperty
- See Also:
 
- 
setMinViewportWidthpublic final void setMinViewportWidth(double value) Sets the value of theminViewportWidthproperty.- Property description:
- Specify the minimum width of the ScrollPane Viewport. This is the width that will be available to the content node.
- Parameters:
- value- the value for the- minViewportWidthproperty
- Since:
- JavaFX 8u40
- See Also:
 
- 
getMinViewportWidthpublic final double getMinViewportWidth()Gets the value of theminViewportWidthproperty.- Property description:
- Specify the minimum width of the ScrollPane Viewport. This is the width that will be available to the content node.
- Returns:
- the value of the minViewportWidthproperty
- Since:
- JavaFX 8u40
- See Also:
 
- 
minViewportWidthPropertySpecify the minimum width of the ScrollPane Viewport. This is the width that will be available to the content node.- Returns:
- the minViewportWidthproperty
- Since:
- JavaFX 8u40
- See Also:
 
- 
setMinViewportHeightpublic final void setMinViewportHeight(double value) Sets the value of theminViewportHeightproperty.- Property description:
- Specify the minimum height of the ScrollPane Viewport. This is the height that will be available to the content node.
- Parameters:
- value- the value for the- minViewportHeightproperty
- Since:
- JavaFX 8u40
- See Also:
 
- 
getMinViewportHeightpublic final double getMinViewportHeight()Gets the value of theminViewportHeightproperty.- Property description:
- Specify the minimum height of the ScrollPane Viewport. This is the height that will be available to the content node.
- Returns:
- the value of the minViewportHeightproperty
- Since:
- JavaFX 8u40
- See Also:
 
- 
minViewportHeightPropertySpecify the minimum height of the ScrollPane Viewport. This is the height that will be available to the content node.- Returns:
- the minViewportHeightproperty
- Since:
- JavaFX 8u40
- See Also:
 
- 
setViewportBoundsSets the value of theviewportBoundsproperty.- Property description:
- The actual Bounds of the ScrollPane Viewport. This is the Bounds of the content node.
- Parameters:
- value- the value for the- viewportBoundsproperty
- See Also:
 
- 
getViewportBoundsGets the value of theviewportBoundsproperty.- Property description:
- The actual Bounds of the ScrollPane Viewport. This is the Bounds of the content node.
- Returns:
- the value of the viewportBoundsproperty
- See Also:
 
- 
viewportBoundsPropertyThe actual Bounds of the ScrollPane Viewport. This is the Bounds of the content node.- Returns:
- the viewportBoundsproperty
- See Also:
 
- 
getClassCssMetaDataGets theCssMetaDataassociated with this class, which may include theCssMetaDataof its superclasses.- Returns:
- the CssMetaData
- Since:
- JavaFX 8.0
 
- 
getControlCssMetaDataGets the unmodifiable list of the control's CSS-styleable properties.- Overrides:
- getControlCssMetaDatain class- Control
- Returns:
- the unmodifiable list of the control's CSS-styleable properties
- Since:
- JavaFX 8.0
 
- 
getInitialFocusTraversableReturns the initial focus traversable state of this control, for use by the JavaFX CSS engine to correctly set its initial value. This method is overridden as by default UI controls have focus traversable set to true, but that is not appropriate for this control.- Overrides:
- getInitialFocusTraversablein class- Control
- Returns:
- the initial focus traversable state of this control
- Since:
- 9
 
 
-