- 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
 
 @DefaultProperty("content") public class ScrollPane extends Control 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 layoutBoundsof 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.), they need to wrap the scroll node in a Group. ScrollPane sets focusTraversable to false. This example creates a ScrollPane, which contains a Rectangle : import javafx.scene.control.ScrollPane; import javafx.scene.shape.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 SummaryProperties Type Property Description ObjectProperty<Node>contentThe node used as the content of this ScrollPane.BooleanPropertyfitToHeightIf 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.BooleanPropertyfitToWidthIf 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.ObjectProperty<ScrollPane.ScrollBarPolicy>hbarPolicySpecifies the policy for showing the horizontal scroll bar.DoublePropertyhmaxThe maximum allowablehvaluefor this ScrollPane.DoublePropertyhminThe minimum allowablehvaluefor this ScrollPane.DoublePropertyhvalueThe current horizontal scroll position of the ScrollPane.DoublePropertyminViewportHeightSpecify the minimum height of the ScrollPane Viewport.DoublePropertyminViewportWidthSpecify the minimum width of the ScrollPane Viewport.BooleanPropertypannableSpecifies whether the user should be able to pan the viewport by using the mouse.DoublePropertyprefViewportHeightSpecify the preferred height of the ScrollPane Viewport.DoublePropertyprefViewportWidthSpecify the preferred width of the ScrollPane Viewport.ObjectProperty<ScrollPane.ScrollBarPolicy>vbarPolicySpecifies the policy for showing the vertical scroll bar.ObjectProperty<Bounds>viewportBoundsThe actual Bounds of the ScrollPane Viewport.DoublePropertyvmaxThe maximum allowablevvaluefor this ScrollPane.DoublePropertyvminThe minimum allowablevvaluefor this ScrollPane.DoublePropertyvvalueThe current vertical scroll position of the ScrollPane.- 
Properties inherited from class javafx.scene.control.ControlcontextMenu, skin, tooltip
 - 
Properties inherited from class javafx.scene.layout.Regionbackground, border, cacheShape, centerShape, height, insets, maxHeight, maxWidth, minHeight, minWidth, opaqueInsets, padding, prefHeight, prefWidth, scaleShape, shape, snapToPixel, width
 - 
Properties inherited from class javafx.scene.ParentneedsLayout
 - 
Properties inherited from 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 Classes Modifier and Type Class Description static classScrollPane.ScrollBarPolicyAn enumeration denoting the policy to be used by a scrollable Control in deciding whether to show a scroll bar.
 - 
Field Summary- 
Fields inherited from class javafx.scene.layout.RegionUSE_COMPUTED_SIZE, USE_PREF_SIZE
 - 
Fields inherited from class javafx.scene.NodeBASELINE_OFFSET_SAME_AS_HEIGHT
 
- 
 - 
Constructor SummaryConstructors Constructor Description ScrollPane()Creates a new ScrollPane.ScrollPane(Node content)Creates a new ScrollPane.
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ObjectProperty<Node>contentProperty()The node used as the content of this ScrollPane.protected Skin<?>createDefaultSkin()Create a new instance of the default skin for this control.BooleanPropertyfitToHeightProperty()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.BooleanPropertyfitToWidthProperty()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.static List<CssMetaData<? extends Styleable,?>>getClassCssMetaData()NodegetContent()Gets the value of the property content.List<CssMetaData<? extends Styleable,?>>getControlCssMetaData()ScrollPane.ScrollBarPolicygetHbarPolicy()Gets the value of the property hbarPolicy.doublegetHmax()Gets the value of the property hmax.doublegetHmin()Gets the value of the property hmin.doublegetHvalue()Gets the value of the property hvalue.protected BooleangetInitialFocusTraversable()Returns the initial focus traversable state of this control, for use by the JavaFX CSS engine to correctly set its initial value.doublegetMinViewportHeight()Gets the value of the property minViewportHeight.doublegetMinViewportWidth()Gets the value of the property minViewportWidth.doublegetPrefViewportHeight()Gets the value of the property prefViewportHeight.doublegetPrefViewportWidth()Gets the value of the property prefViewportWidth.ScrollPane.ScrollBarPolicygetVbarPolicy()Gets the value of the property vbarPolicy.BoundsgetViewportBounds()Gets the value of the property viewportBounds.doublegetVmax()Gets the value of the property vmax.doublegetVmin()Gets the value of the property vmin.doublegetVvalue()Gets the value of the property vvalue.ObjectProperty<ScrollPane.ScrollBarPolicy>hbarPolicyProperty()Specifies the policy for showing the horizontal scroll bar.DoublePropertyhmaxProperty()The maximum allowablehvaluefor this ScrollPane.DoublePropertyhminProperty()The minimum allowablehvaluefor this ScrollPane.DoublePropertyhvalueProperty()The current horizontal scroll position of the ScrollPane.booleanisFitToHeight()Gets the value of the property fitToHeight.booleanisFitToWidth()Gets the value of the property fitToWidth.booleanisPannable()Gets the value of the property pannable.DoublePropertyminViewportHeightProperty()Specify the minimum height of the ScrollPane Viewport.DoublePropertyminViewportWidthProperty()Specify the minimum width of the ScrollPane Viewport.BooleanPropertypannableProperty()Specifies whether the user should be able to pan the viewport by using the mouse.DoublePropertyprefViewportHeightProperty()Specify the preferred height of the ScrollPane Viewport.DoublePropertyprefViewportWidthProperty()Specify the preferred width of the ScrollPane Viewport.ObjectqueryAccessibleAttribute(AccessibleAttribute attribute, Object... parameters)This method is called by the assistive technology to request the value for an attribute.voidsetContent(Node value)Sets the value of the property content.voidsetFitToHeight(boolean value)Sets the value of the property fitToHeight.voidsetFitToWidth(boolean value)Sets the value of the property fitToWidth.voidsetHbarPolicy(ScrollPane.ScrollBarPolicy value)Sets the value of the property hbarPolicy.voidsetHmax(double value)Sets the value of the property hmax.voidsetHmin(double value)Sets the value of the property hmin.voidsetHvalue(double value)Sets the value of the property hvalue.voidsetMinViewportHeight(double value)Sets the value of the property minViewportHeight.voidsetMinViewportWidth(double value)Sets the value of the property minViewportWidth.voidsetPannable(boolean value)Sets the value of the property pannable.voidsetPrefViewportHeight(double value)Sets the value of the property prefViewportHeight.voidsetPrefViewportWidth(double value)Sets the value of the property prefViewportWidth.voidsetVbarPolicy(ScrollPane.ScrollBarPolicy value)Sets the value of the property vbarPolicy.voidsetViewportBounds(Bounds value)Sets the value of the property viewportBounds.voidsetVmax(double value)Sets the value of the property vmax.voidsetVmin(double value)Sets the value of the property vmin.voidsetVvalue(double value)Sets the value of the property vvalue.ObjectProperty<ScrollPane.ScrollBarPolicy>vbarPolicyProperty()Specifies the policy for showing the vertical scroll bar.ObjectProperty<Bounds>viewportBoundsProperty()The actual Bounds of the ScrollPane Viewport.DoublePropertyvmaxProperty()The maximum allowablevvaluefor this ScrollPane.DoublePropertyvminProperty()The minimum allowablevvaluefor this ScrollPane.DoublePropertyvvalueProperty()The current vertical scroll position of the ScrollPane.- 
Methods inherited from class javafx.scene.control.ControlcomputeMaxHeight, computeMaxWidth, computeMinHeight, computeMinWidth, computePrefHeight, computePrefWidth, contextMenuProperty, executeAccessibleAction, getBaselineOffset, getContextMenu, getCssMetaData, getSkin, getTooltip, isResizable, layoutChildren, setContextMenu, setSkin, setTooltip, skinProperty, tooltipProperty
 - 
Methods inherited from class javafx.scene.layout.RegionbackgroundProperty, 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, widthProperty
 - 
Methods inherited from class javafx.scene.ParentgetChildren, getChildrenUnmodifiable, getManagedChildren, getStylesheets, isNeedsLayout, layout, lookup, needsLayoutProperty, requestLayout, requestParentLayout, setNeedsLayout, updateBounds
 - 
Methods inherited from 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, 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, 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, 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, visibleProperty
 - 
Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 - 
Methods inherited from interface javafx.css.StyleablegetStyleableNode
 
- 
 
- 
- 
- 
Property Detail- 
hbarPolicypublic final ObjectProperty<ScrollPane.ScrollBarPolicy> hbarPolicyProperty Specifies the policy for showing the horizontal scroll bar.
 - 
vbarPolicypublic final ObjectProperty<ScrollPane.ScrollBarPolicy> vbarPolicyProperty Specifies the policy for showing the vertical scroll bar.
 - 
contentpublic final ObjectProperty<Node> contentProperty The node used as the content of this ScrollPane.- See Also:
- getContent(),- setContent(Node)
 
 - 
hvaluepublic final DoubleProperty hvalueProperty 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 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:
- getHvalue(),- setHvalue(double)
 
 - 
vvaluepublic final DoubleProperty vvalueProperty 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 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:
- getVvalue(),- setVvalue(double)
 
 - 
hminpublic final DoubleProperty hminProperty The minimum allowablehvaluefor this ScrollPane. Default value is 0.- See Also:
- getHmin(),- setHmin(double)
 
 - 
vminpublic final DoubleProperty vminProperty The minimum allowablevvaluefor this ScrollPane. Default value is 0.- See Also:
- getVmin(),- setVmin(double)
 
 - 
hmaxpublic final DoubleProperty hmaxProperty The maximum allowablehvaluefor this ScrollPane. Default value is 1.- See Also:
- getHmax(),- setHmax(double)
 
 - 
vmaxpublic final DoubleProperty vmaxProperty The maximum allowablevvaluefor this ScrollPane. Default value is 1.- See Also:
- getVmax(),- setVmax(double)
 
 - 
fitToWidthpublic final BooleanProperty fitToWidthProperty 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.- See Also:
- isFitToWidth(),- setFitToWidth(boolean)
 
 - 
fitToHeightpublic final BooleanProperty fitToHeightProperty 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.- See Also:
- isFitToHeight(),- setFitToHeight(boolean)
 
 - 
pannablepublic final BooleanProperty pannableProperty 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) thenpannableis consulted to determine if the events should be used for panning.- See Also:
- isPannable(),- setPannable(boolean)
 
 - 
prefViewportWidthpublic final DoubleProperty prefViewportWidthProperty 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
 - 
prefViewportHeightpublic final DoubleProperty prefViewportHeightProperty 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
 - 
minViewportWidthpublic final DoubleProperty minViewportWidthProperty Specify the minimum width of the ScrollPane Viewport. This is the width that will be available to the content node.- Since:
- JavaFX 8u40
- See Also:
- getMinViewportWidth(),- setMinViewportWidth(double)
 
 - 
minViewportHeightpublic final DoubleProperty minViewportHeightProperty Specify the minimum height of the ScrollPane Viewport. This is the height that will be available to the content node.- Since:
- JavaFX 8u40
- See Also:
- getMinViewportHeight(),- setMinViewportHeight(double)
 
 - 
viewportBoundspublic final ObjectProperty<Bounds> viewportBoundsProperty The actual Bounds of the ScrollPane Viewport. This is the Bounds of the content node.- See Also:
- getViewportBounds(),- setViewportBounds(Bounds)
 
 
- 
 - 
Constructor Detail- 
ScrollPanepublic ScrollPane() Creates a new ScrollPane.
 - 
ScrollPanepublic ScrollPane(Node content) Creates a new ScrollPane.- Parameters:
- content- the initial content for the ScrollPane
- Since:
- JavaFX 8.0
 
 
- 
 - 
Method Detail- 
setHbarPolicypublic final void setHbarPolicy(ScrollPane.ScrollBarPolicy value) Sets the value of the property hbarPolicy.- Property description:
- Specifies the policy for showing the horizontal scroll bar.
 
 - 
getHbarPolicypublic final ScrollPane.ScrollBarPolicy getHbarPolicy() Gets the value of the property hbarPolicy.- Property description:
- Specifies the policy for showing the horizontal scroll bar.
 
 - 
hbarPolicyPropertypublic final ObjectProperty<ScrollPane.ScrollBarPolicy> hbarPolicyProperty() Specifies the policy for showing the horizontal scroll bar.
 - 
setVbarPolicypublic final void setVbarPolicy(ScrollPane.ScrollBarPolicy value) Sets the value of the property vbarPolicy.- Property description:
- Specifies the policy for showing the vertical scroll bar.
 
 - 
getVbarPolicypublic final ScrollPane.ScrollBarPolicy getVbarPolicy() Gets the value of the property vbarPolicy.- Property description:
- Specifies the policy for showing the vertical scroll bar.
 
 - 
vbarPolicyPropertypublic final ObjectProperty<ScrollPane.ScrollBarPolicy> vbarPolicyProperty() Specifies the policy for showing the vertical scroll bar.
 - 
setContentpublic final void setContent(Node value) Sets the value of the property content.- Property description:
- The node used as the content of this ScrollPane.
 
 - 
getContentpublic final Node getContent() Gets the value of the property content.- Property description:
- The node used as the content of this ScrollPane.
 
 - 
contentPropertypublic final ObjectProperty<Node> contentProperty() The node used as the content of this ScrollPane.- See Also:
- getContent(),- setContent(Node)
 
 - 
setHvaluepublic final void setHvalue(double value) Sets the value of the property hvalue.- 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.
 
 - 
getHvaluepublic final double getHvalue() Gets the value of the property hvalue.- 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.
 
 - 
hvaluePropertypublic final DoubleProperty hvalueProperty() 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 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:
- getHvalue(),- setHvalue(double)
 
 - 
setVvaluepublic final void setVvalue(double value) Sets the value of the property vvalue.- 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.
 
 - 
getVvaluepublic final double getVvalue() Gets the value of the property vvalue.- 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.
 
 - 
vvaluePropertypublic final DoubleProperty vvalueProperty() 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 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:
- getVvalue(),- setVvalue(double)
 
 - 
setHminpublic final void setHmin(double value) Sets the value of the property hmin.- Property description:
- The minimum allowable hvaluefor this ScrollPane. Default value is 0.
 
 - 
getHminpublic final double getHmin() Gets the value of the property hmin.- Property description:
- The minimum allowable hvaluefor this ScrollPane. Default value is 0.
 
 - 
hminPropertypublic final DoubleProperty hminProperty() The minimum allowablehvaluefor this ScrollPane. Default value is 0.- See Also:
- getHmin(),- setHmin(double)
 
 - 
setVminpublic final void setVmin(double value) Sets the value of the property vmin.- Property description:
- The minimum allowable vvaluefor this ScrollPane. Default value is 0.
 
 - 
getVminpublic final double getVmin() Gets the value of the property vmin.- Property description:
- The minimum allowable vvaluefor this ScrollPane. Default value is 0.
 
 - 
vminPropertypublic final DoubleProperty vminProperty() The minimum allowablevvaluefor this ScrollPane. Default value is 0.- See Also:
- getVmin(),- setVmin(double)
 
 - 
setHmaxpublic final void setHmax(double value) Sets the value of the property hmax.- Property description:
- The maximum allowable hvaluefor this ScrollPane. Default value is 1.
 
 - 
getHmaxpublic final double getHmax() Gets the value of the property hmax.- Property description:
- The maximum allowable hvaluefor this ScrollPane. Default value is 1.
 
 - 
hmaxPropertypublic final DoubleProperty hmaxProperty() The maximum allowablehvaluefor this ScrollPane. Default value is 1.- See Also:
- getHmax(),- setHmax(double)
 
 - 
setVmaxpublic final void setVmax(double value) Sets the value of the property vmax.- Property description:
- The maximum allowable vvaluefor this ScrollPane. Default value is 1.
 
 - 
getVmaxpublic final double getVmax() Gets the value of the property vmax.- Property description:
- The maximum allowable vvaluefor this ScrollPane. Default value is 1.
 
 - 
vmaxPropertypublic final DoubleProperty vmaxProperty() The maximum allowablevvaluefor this ScrollPane. Default value is 1.- See Also:
- getVmax(),- setVmax(double)
 
 - 
setFitToWidthpublic final void setFitToWidth(boolean value) Sets the value of the property fitToWidth.- 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.
 
 - 
isFitToWidthpublic final boolean isFitToWidth() Gets the value of the property fitToWidth.- 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.
 
 - 
fitToWidthPropertypublic final BooleanProperty fitToWidthProperty() 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.- See Also:
- isFitToWidth(),- setFitToWidth(boolean)
 
 - 
setFitToHeightpublic final void setFitToHeight(boolean value) Sets the value of the property fitToHeight.- 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.
 
 - 
isFitToHeightpublic final boolean isFitToHeight() Gets the value of the property fitToHeight.- 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.
 
 - 
fitToHeightPropertypublic final BooleanProperty fitToHeightProperty() 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.- See Also:
- isFitToHeight(),- setFitToHeight(boolean)
 
 - 
setPannablepublic final void setPannable(boolean value) Sets the value of the property pannable.- 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.
 
 - 
isPannablepublic final boolean isPannable() Gets the value of the property pannable.- 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.
 
 - 
pannablePropertypublic final BooleanProperty pannableProperty() 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) thenpannableis consulted to determine if the events should be used for panning.- See Also:
- isPannable(),- setPannable(boolean)
 
 - 
setPrefViewportWidthpublic final void setPrefViewportWidth(double value) Sets the value of the property prefViewportWidth.- 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
 
 - 
getPrefViewportWidthpublic final double getPrefViewportWidth() Gets the value of the property prefViewportWidth.- 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
 
 - 
prefViewportWidthPropertypublic final DoubleProperty prefViewportWidthProperty() 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
 - 
setPrefViewportHeightpublic final void setPrefViewportHeight(double value) Sets the value of the property prefViewportHeight.- 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
 
 - 
getPrefViewportHeightpublic final double getPrefViewportHeight() Gets the value of the property prefViewportHeight.- 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
 
 - 
prefViewportHeightPropertypublic final DoubleProperty prefViewportHeightProperty() 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
 - 
setMinViewportWidthpublic final void setMinViewportWidth(double value) Sets the value of the property minViewportWidth.- Property description:
- Specify the minimum width of the ScrollPane Viewport. This is the width that will be available to the content node.
- Since:
- JavaFX 8u40
 
 - 
getMinViewportWidthpublic final double getMinViewportWidth() Gets the value of the property minViewportWidth.- Property description:
- Specify the minimum width of the ScrollPane Viewport. This is the width that will be available to the content node.
- Since:
- JavaFX 8u40
 
 - 
minViewportWidthPropertypublic final DoubleProperty minViewportWidthProperty() Specify the minimum width of the ScrollPane Viewport. This is the width that will be available to the content node.- Since:
- JavaFX 8u40
- See Also:
- getMinViewportWidth(),- setMinViewportWidth(double)
 
 - 
setMinViewportHeightpublic final void setMinViewportHeight(double value) Sets the value of the property minViewportHeight.- Property description:
- Specify the minimum height of the ScrollPane Viewport. This is the height that will be available to the content node.
- Since:
- JavaFX 8u40
 
 - 
getMinViewportHeightpublic final double getMinViewportHeight() Gets the value of the property minViewportHeight.- Property description:
- Specify the minimum height of the ScrollPane Viewport. This is the height that will be available to the content node.
- Since:
- JavaFX 8u40
 
 - 
minViewportHeightPropertypublic final DoubleProperty minViewportHeightProperty() Specify the minimum height of the ScrollPane Viewport. This is the height that will be available to the content node.- Since:
- JavaFX 8u40
- See Also:
- getMinViewportHeight(),- setMinViewportHeight(double)
 
 - 
setViewportBoundspublic final void setViewportBounds(Bounds value) Sets the value of the property viewportBounds.- Property description:
- The actual Bounds of the ScrollPane Viewport. This is the Bounds of the content node.
 
 - 
getViewportBoundspublic final Bounds getViewportBounds() Gets the value of the property viewportBounds.- Property description:
- The actual Bounds of the ScrollPane Viewport. This is the Bounds of the content node.
 
 - 
viewportBoundsPropertypublic final ObjectProperty<Bounds> viewportBoundsProperty() The actual Bounds of the ScrollPane Viewport. This is the Bounds of the content node.- See Also:
- getViewportBounds(),- setViewportBounds(Bounds)
 
 - 
createDefaultSkinprotected Skin<?> createDefaultSkin() Create a new instance of the default skin for this control. This is called to create a skin for the control if no skin is provided via CSS-fx-skinor set explicitly in a sub-class withsetSkin(...).- Overrides:
- createDefaultSkinin class- Control
- Returns:
- new instance of default skin for this control. If null then the control will have no skin unless one is provided by css.
 
 - 
getClassCssMetaDatapublic static List<CssMetaData<? extends Styleable,?>> getClassCssMetaData() - Returns:
- The CssMetaData associated with this class, which may include the CssMetaData of its superclasses.
- Since:
- JavaFX 8.0
 
 - 
getControlCssMetaDatapublic List<CssMetaData<? extends Styleable,?>> getControlCssMetaData() - Overrides:
- getControlCssMetaDatain class- Control
- Returns:
- unmodifiable list of the controls css styleable properties
- Since:
- JavaFX 8.0
 
 - 
getInitialFocusTraversableprotected Boolean getInitialFocusTraversable() Returns 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
 
 - 
queryAccessibleAttributepublic Object queryAccessibleAttribute(AccessibleAttribute attribute, Object... parameters) This method is called by the assistive technology to request the value for an attribute.This method is commonly overridden by subclasses to implement attributes that are required for a specific role. 
 If a particular attribute is not handled, the superclass implementation must be called.- Overrides:
- queryAccessibleAttributein class- Control
- Parameters:
- attribute- the requested attribute
- parameters- optional list of parameters
- Returns:
- the value for the requested attribute
- See Also:
- AccessibleAttribute
 
 
- 
 
-