public class ToggleButtonBehavior<C extends ToggleButton> extends ButtonBehavior<C>
Modifier and Type | Field and Description |
---|---|
protected static java.util.List<KeyBinding> |
TOGGLE_BUTTON_BINDINGS
The key bindings for the ToggleButton.
|
BUTTON_BINDINGS
IS_TOUCH_SUPPORTED, TRAVERSAL_BINDINGS, TRAVERSE_DOWN, TRAVERSE_LEFT, TRAVERSE_NEXT, TRAVERSE_PREVIOUS, TRAVERSE_RIGHT, TRAVERSE_UP
Constructor and Description |
---|
ToggleButtonBehavior(C button) |
Modifier and Type | Method and Description |
---|---|
protected void |
callAction(java.lang.String name)
Called to invoke the action associated with the given name.
|
private int |
nextToggleIndex(ObservableList<Toggle> toggles,
int from)
Returns the next toggle index or "from" if none found
|
private int |
previousToggleIndex(ObservableList<Toggle> toggles,
int from)
Returns the previous toggle index or "from" if none found
|
private java.lang.String |
toggleToTraverseAction(java.lang.String name) |
private boolean |
traversingToNext(java.lang.String name,
NodeOrientation effectiveNodeOrientation) |
focusChanged, mouseEntered, mouseExited, mousePressed, mouseReleased
callActionForEvent, contextMenuRequested, dispose, getControl, matchActionForEvent, mouseDragged, traverse, traverseDown, traverseLeft, traverseNext, traversePrevious, traverseRight, traverseUp
protected static final java.util.List<KeyBinding> TOGGLE_BUTTON_BINDINGS
public ToggleButtonBehavior(C button)
private int nextToggleIndex(ObservableList<Toggle> toggles, int from)
private int previousToggleIndex(ObservableList<Toggle> toggles, int from)
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 ButtonBehavior<C extends ToggleButton>
private boolean traversingToNext(java.lang.String name, NodeOrientation effectiveNodeOrientation)
private java.lang.String toggleToTraverseAction(java.lang.String name)