public class SpinnerBehavior<T> extends BehaviorBase<Spinner<T>>
Modifier and Type | Field and Description |
---|---|
protected static List<KeyBinding> |
SPINNER_BINDINGS |
IS_TOUCH_SUPPORTED, TRAVERSAL_BINDINGS
Constructor and Description |
---|
SpinnerBehavior(Spinner<T> spinner)
*
Constructors *
*
|
Modifier and Type | Method and Description |
---|---|
protected void |
callAction(String name)
Called to invoke the action associated with the given name.
|
void |
decrement(int steps) |
void |
increment(int steps)
*
API *
*
|
void |
startSpinning(boolean increment) |
void |
stopSpinning() |
callActionForEvent, contextMenuRequested, dispose, focusChanged, getControl, matchActionForEvent, mouseDragged, mouseEntered, mouseExited, mousePressed, mouseReleased, traverse, traverseDown, traverseLeft, traverseNext, traversePrevious, traverseRight, traverseUp
protected static final List<KeyBinding> SPINNER_BINDINGS
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<Spinner<T>>
public void increment(int steps)
public void decrement(int steps)
public void startSpinning(boolean increment)
public void stopSpinning()
Copyright © 2020. All rights reserved.