public class ScrollBarBehavior extends BehaviorBase<ScrollBar>
Modifier and Type | Class and Description |
---|---|
static class |
ScrollBarBehavior.ScrollBarKeyBinding
Class to handle key bindings based upon the orientation of the control.
|
Modifier and Type | Field and Description |
---|---|
protected static java.util.List<KeyBinding> |
SCROLL_BAR_BINDINGS
*
Key event handling *
*
|
(package private) Timeline |
timeline
This timeline is used to adjust the value of the bar when the
track has been pressed but not released.
|
IS_TOUCH_SUPPORTED, TRAVERSAL_BINDINGS, TRAVERSE_DOWN, TRAVERSE_LEFT, TRAVERSE_NEXT, TRAVERSE_PREVIOUS, TRAVERSE_RIGHT, TRAVERSE_UP
Constructor and Description |
---|
ScrollBarBehavior(ScrollBar scrollBar)
*
Constructors *
*
|
Modifier and Type | Method and Description |
---|---|
protected void |
callAction(java.lang.String name)
Called to invoke the action associated with the given name.
|
void |
decButtonPressed()
Invoked by the ScrollBar
Skin implementation whenever a mouse
press occurs on the decrement button of the bar. |
void |
decButtonReleased() |
(package private) void |
decrementValue() |
(package private) void |
end() |
(package private) void |
home()
*
Functions *
*
|
void |
incButtonPressed()
Invoked by the ScrollBar
Skin implementation whenever a mouse
press occurs on the increment button of the bar. |
void |
incButtonReleased() |
(package private) void |
incrementValue() |
protected java.lang.String |
matchActionForEvent(KeyEvent e)
Given a key event, this method will find the matching action name, or null if there
is not one.
|
private void |
stopTimeline() |
void |
thumbDragged(double position) |
void |
trackPress(double position)
Invoked by the ScrollBar
Skin implementation whenever a mouse
press occurs on the "track" of the bar. |
void |
trackRelease() |
callActionForEvent, contextMenuRequested, dispose, focusChanged, getControl, mouseDragged, mouseEntered, mouseExited, mousePressed, mouseReleased, traverse, traverseDown, traverseLeft, traverseNext, traversePrevious, traverseRight, traverseUp
protected static final java.util.List<KeyBinding> SCROLL_BAR_BINDINGS
Timeline timeline
public ScrollBarBehavior(ScrollBar scrollBar)
void home()
void decrementValue()
void end()
void incrementValue()
protected java.lang.String matchActionForEvent(KeyEvent e)
BehaviorBase
matchActionForEvent
in class BehaviorBase<ScrollBar>
e
- The key event. Must not be null.protected void callAction(java.lang.String name)
BehaviorBase
When a KeyEvent is handled, it is first passed through callActionForEvent which resolves which "action" should be executed based on the key event. This action is indicated by name. This name is then passed to this function which is responsible for invoking the right function based on the name.
callAction
in class BehaviorBase<ScrollBar>
public void trackPress(double position)
Skin
implementation whenever a mouse
press occurs on the "track" of the bar. This will cause the thumb to
be moved by some amount.position
- The mouse position on track with 0.0 being beginning of track and 1.0 being the endpublic void trackRelease()
public void decButtonPressed()
Skin
implementation whenever a mouse
press occurs on the decrement button of the bar.public void decButtonReleased()
public void incButtonPressed()
Skin
implementation whenever a mouse
press occurs on the increment button of the bar.public void incButtonReleased()
public void thumbDragged(double position)
position
- The mouse position on track with 0.0 being begining of track and 1.0 being the endprivate void stopTimeline()