public class SliderBehavior extends com.sun.javafx.scene.control.behavior.BehaviorBase<Slider>
| Modifier and Type | Class and Description |
|---|---|
static class |
SliderBehavior.SliderKeyBinding |
| Modifier and Type | Field and Description |
|---|---|
protected static List<com.sun.javafx.scene.control.behavior.KeyBinding> |
SLIDER_BINDINGS
***********************************************************************
Setup KeyBindings *
*
We manually specify the focus traversal keys because Slider has *
different usage for up/down arrow keys.
|
| Constructor and Description |
|---|
SliderBehavior(Slider slider) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
callAction(String name) |
protected List<com.sun.javafx.scene.control.behavior.KeyBinding> |
createKeyBindings() |
void |
thumbDragged(javafx.scene.input.MouseEvent e,
double position) |
void |
thumbPressed(javafx.scene.input.MouseEvent e,
double position) |
void |
thumbReleased(javafx.scene.input.MouseEvent e)
When thumb is released valueChanging should be set to false.
|
void |
trackPress(javafx.scene.input.MouseEvent e,
double position)
Invoked by the Slider
Skin implementation whenever a mouse press
occurs on the "track" of the slider. |
void |
trackRelease(javafx.scene.input.MouseEvent e,
double position) |
protected static final List<com.sun.javafx.scene.control.behavior.KeyBinding> SLIDER_BINDINGS
public SliderBehavior(Slider slider)
protected void callAction(String name)
callAction in class com.sun.javafx.scene.control.behavior.BehaviorBase<Slider>protected List<com.sun.javafx.scene.control.behavior.KeyBinding> createKeyBindings()
createKeyBindings in class com.sun.javafx.scene.control.behavior.BehaviorBase<Slider>public void trackPress(javafx.scene.input.MouseEvent e,
double position)
Skin implementation whenever a mouse press
occurs on the "track" of the slider. 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(javafx.scene.input.MouseEvent e,
double position)
public void thumbPressed(javafx.scene.input.MouseEvent e,
double position)
position - The mouse position on track with 0.0 being beginning of
track and 1.0 being the endpublic void thumbDragged(javafx.scene.input.MouseEvent e,
double position)
position - The mouse position on track with 0.0 being beginning of
track and 1.0 being the endpublic void thumbReleased(javafx.scene.input.MouseEvent e)
Copyright © 2016. All rights reserved.