Class ToggleButtonBehavior<C extends ToggleButton>
java.lang.Object
com.sun.javafx.scene.control.behavior.BehaviorBase<C>
com.sun.javafx.scene.control.behavior.ButtonBehavior<C>
com.sun.javafx.scene.control.behavior.ToggleButtonBehavior<C>
- Direct Known Subclasses:
RadioButtonBehavior
-
Field Summary
Modifier and TypeFieldDescriptionprotected static final List<KeyBinding>
The key bindings for the ToggleButton.Fields inherited from class com.sun.javafx.scene.control.behavior.ButtonBehavior
BUTTON_BINDINGS
Fields inherited from class com.sun.javafx.scene.control.behavior.BehaviorBase
IS_TOUCH_SUPPORTED, TRAVERSAL_BINDINGS
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
callAction
(String name) Called to invoke the action associated with the given name.Methods inherited from class com.sun.javafx.scene.control.behavior.ButtonBehavior
focusChanged, mouseEntered, mouseExited, mousePressed, mouseReleased
Methods inherited from class com.sun.javafx.scene.control.behavior.BehaviorBase
callActionForEvent, dispose, getControl, matchActionForEvent, mouseDragged
-
Field Details
-
TOGGLE_BUTTON_BINDINGS
The key bindings for the ToggleButton. Sets up the keys to open the menu.
-
-
Constructor Details
-
ToggleButtonBehavior
-
-
Method Details
-
callAction
Description copied from class:BehaviorBase
Called to invoke the action associated with the given name.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.
- Overrides:
callAction
in classButtonBehavior<C extends ToggleButton>
-