Top Description Fields Constructors Methods
com.dlsc.workbenchfx.view.controls

public Class PrettyScrollPane

extends ScrollPane
Class Inheritance
Imports
java.util.Set, javafx.geometry.Insets, .Orientation, javafx.scene.Node, javafx.scene.control.ScrollBar, .ScrollPane

Represents a stylized version of a ScrollPane, with a more modern design.
Authors
Dirk Lemmermann, François Martin, Marco Sanfratello
See Also
Apple Scroll Bar

Field Summary

Modifier and TypeField and Description
private ScrollBar
private ScrollBar

Constructor Summary

AccessConstructor and Description
public
PrettyScrollPane()

Creates an empty ScrollPane.

public
PrettyScrollPane(Node
to be shown inside of the ScrollPane
content
)

Creates a ScrollPane with content.

Method Summary

Modifier and TypeMethod and Description
private void
private void
bindScrollBars(ScrollBar scrollBarA, ScrollBar scrollBarB)

private void
init()

protected void
layoutChildren()

Overrides javafx.scene.control.Control.layoutChildren.

Invoked during the layout pass to layout the children in this Parent.

Inherited from javafx.scene.control.ScrollPane:
contentPropertycreateDefaultSkinfitToHeightPropertyfitToWidthPropertygetClassCssMetaDatagetContentgetControlCssMetaDatagetHbarPolicygetHmaxgetHmingetHvaluegetInitialFocusTraversablegetMinViewportHeightgetMinViewportWidthgetPrefViewportHeightgetPrefViewportWidthgetVbarPolicygetViewportBoundsgetVmaxgetVmingetVvaluehbarPolicyPropertyhmaxPropertyhminPropertyhvaluePropertyisFitToHeightisFitToWidthisPannableminViewportHeightPropertyminViewportWidthPropertypannablePropertyprefViewportHeightPropertyprefViewportWidthPropertyqueryAccessibleAttributesetContentsetFitToHeightsetFitToWidthsetHbarPolicysetHmaxsetHminsetHvaluesetMinViewportHeightsetMinViewportWidthsetPannablesetPrefViewportHeightsetPrefViewportWidthsetVbarPolicysetViewportBoundssetVmaxsetVminsetVvaluevbarPolicyPropertyviewportBoundsPropertyvmaxPropertyvminPropertyvvalueProperty

Field Detail

horizontalScrollBarback to summary
private ScrollBar horizontalScrollBar
verticalScrollBarback to summary
private ScrollBar verticalScrollBar

Constructor Detail

PrettyScrollPaneback to summary
public PrettyScrollPane()

Creates an empty ScrollPane.

PrettyScrollPaneback to summary
public PrettyScrollPane(Node content)

Creates a ScrollPane with content.

Parameters
content:Node

to be shown inside of the ScrollPane

Method Detail

bindScrollBarsback to summary
private void bindScrollBars()
bindScrollBarsback to summary
private void bindScrollBars(ScrollBar scrollBarA, ScrollBar scrollBarB)
initback to summary
private void init()
layoutChildrenback to summary
protected void layoutChildren()

Overrides javafx.scene.control.Control.layoutChildren.

Doc from javafx.scene.control.Control.layoutChildren.

Invoked during the layout pass to layout the children in this Parent. By default it will only set the size of managed, resizable content to their preferred sizes and does not do any node positioning.

Subclasses should override this function to layout content as needed.

Annotations
@Override