Top Description Fields Constructors Methods
com.sun.javafx.scene.control.behavior

public Class ScrollBarBehavior

extends BehaviorBase<ScrollBar>
Class Inheritance
Imports
com.sun.javafx.util.Utils, javafx.animation.KeyFrame, .Timeline, javafx.event.ActionEvent, .EventHandler, javafx.geometry.Orientation, javafx.scene.control.ScrollBar, .Skin, com.sun.javafx.scene.control.inputmap.InputMap, javafx.util.Duration

A Behavior implementation for ScrollBars.

Field Summary

Modifier and TypeField and Description
private final InputMap<ScrollBar>
pack-priv Timeline
timeline

This timeline is used to adjust the value of the bar when the track has been pressed but not released.

Constructor Summary

AccessConstructor and Description
public
ScrollBarBehavior(ScrollBar scrollBar)

* Constructors * *

Method Summary

Modifier and TypeMethod and Description
public void
decButtonPressed()

Invoked by the ScrollBar Skin implementation whenever a mouse press occurs on the decrement button of the bar.

public void
private void
private void
end()

public InputMap<ScrollBar>
private void
home()

public void
incButtonPressed()

Invoked by the ScrollBar Skin implementation whenever a mouse press occurs on the increment button of the bar.

public void
private void
private void
public void
thumbDragged(double
The mouse position on track with 0.0 being begining of track and 1.0 being the end
position
)

public void
trackPress(double
The mouse position on track with 0.0 being beginning of track and 1.0 being the end
position
)

Invoked by the ScrollBar Skin implementation whenever a mouse press occurs on the "track" of the bar.

public void
Inherited from com.sun.javafx.scene.control.behavior.BehaviorBase:
addDefaultChildMapaddDefaultMappingaddDefaultMappingaddDefaultMappingcreateInputMapdisposegetNodeisRTLremoveMappingrtlrtl

Field Detail

inputMapback to summary
private final InputMap<ScrollBar> inputMap
timelineback to summary
pack-priv Timeline timeline

This timeline is used to adjust the value of the bar when the track has been pressed but not released.

Constructor Detail

ScrollBarBehaviorback to summary
public ScrollBarBehavior(ScrollBar scrollBar)

* Constructors * *

Method Detail

decButtonPressedback to summary
public void decButtonPressed()

Invoked by the ScrollBar Skin implementation whenever a mouse press occurs on the decrement button of the bar.

decButtonReleasedback to summary
public void decButtonReleased()
decrementValueback to summary
private void decrementValue()
endback to summary
private void end()
getInputMapback to summary
public InputMap<ScrollBar> getInputMap()

Implements abstract com.sun.javafx.scene.control.behavior.BehaviorBase.getInputMap.

* Functions * *

Annotations
@Override
homeback to summary
private void home()
incButtonPressedback to summary
public void incButtonPressed()

Invoked by the ScrollBar Skin implementation whenever a mouse press occurs on the increment button of the bar.

incButtonReleasedback to summary
public void incButtonReleased()
incrementValueback to summary
private void incrementValue()
stopTimelineback to summary
private void stopTimeline()
thumbDraggedback to summary
public void thumbDragged(double position)
Parameters
position:double

The mouse position on track with 0.0 being begining of track and 1.0 being the end

trackPressback to summary
public void trackPress(double position)

Invoked by the ScrollBar Skin implementation whenever a mouse press occurs on the "track" of the bar. This will cause the thumb to be moved by some amount.

Parameters
position:double

The mouse position on track with 0.0 being beginning of track and 1.0 being the end

trackReleaseback to summary
public void trackRelease()