public class ScrollPaneBehavior extends BehaviorBase<ScrollPane>
Modifier and Type | Field and Description |
---|---|
protected static List<KeyBinding> |
SCROLL_PANE_BINDINGS
We manually handle focus traversal keys due to the ScrollPane binding
the left/right/up/down keys specially.
|
IS_TOUCH_SUPPORTED, TRAVERSAL_BINDINGS
Constructor and Description |
---|
ScrollPaneBehavior(ScrollPane scrollPane)
*
Constructors *
*
|
Modifier and Type | Method and Description |
---|---|
protected void |
callAction(String name)
Called to invoke the action associated with the given name.
|
void |
contentDragged(double deltaX,
double deltaY) |
void |
horizontalUnitDecrement() |
void |
horizontalUnitIncrement()
*
Functions *
*
|
protected String |
matchActionForEvent(KeyEvent e)
Given a key event, this method will find the matching action name, or null if there
is not one.
|
void |
mouseClicked()
*
Mouse event handling *
*
|
void |
mousePressed(MouseEvent e)
Invoked by a Skin when the body of the control has been pressed by
the mouse.
|
void |
verticalUnitIncrement() |
callActionForEvent, contextMenuRequested, dispose, focusChanged, getControl, mouseDragged, mouseEntered, mouseExited, mouseReleased, traverse, traverseDown, traverseLeft, traverseNext, traversePrevious, traverseRight, traverseUp
protected static final List<KeyBinding> SCROLL_PANE_BINDINGS
public ScrollPaneBehavior(ScrollPane scrollPane)
public void horizontalUnitIncrement()
public void horizontalUnitDecrement()
public void verticalUnitIncrement()
public void contentDragged(double deltaX, double deltaY)
protected String matchActionForEvent(KeyEvent e)
BehaviorBase
matchActionForEvent
in class BehaviorBase<ScrollPane>
e
- The key event. Must not be null.protected void callAction(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<ScrollPane>
public void mouseClicked()
public void mousePressed(MouseEvent e)
BehaviorBase
mousePressed
in class BehaviorBase<ScrollPane>
e
- the mouse eventCopyright © 2020. All rights reserved.