- All Implemented Interfaces:
EventListener,EventHandler<KeyEvent>
public class KeyEventBinding extends EventBinding<KeyEvent>
-
Property Summary
Properties Type Property Description ObjectProperty<KeyCode>keyCodeProperties inherited from class javafx.scene.input.EventBinding
commandParameter, command -
Constructor Summary
Constructors Constructor Description KeyEventBinding()KeyEventBinding(EventType<KeyEvent> eventType) -
Method Summary
Modifier and Type Method Description KeyCodegetKeyCode()Gets the value of the property keyCode.voidhandle(KeyEvent event)Invoked when a specific event of the type for which this handler is registered happens.ObjectProperty<KeyCode>keyCodeProperty()voidsetKeyCode(KeyCode keyCode)Sets the value of the property keyCode.Methods inherited from class javafx.scene.input.EventBinding
commandParameterProperty, commandProperty, fireCommand, getCommand, getCommandParameter, getEventType, setCommand, setCommandParameter
-
Property Details
-
keyCode
- See Also:
getKeyCode(),setKeyCode(KeyCode)
-
-
Constructor Details
-
KeyEventBinding
public KeyEventBinding() -
KeyEventBinding
-
-
Method Details
-
keyCodeProperty
- See Also:
getKeyCode(),setKeyCode(KeyCode)
-
getKeyCode
Gets the value of the property keyCode.- Property description:
-
setKeyCode
Sets the value of the property keyCode.- Property description:
-
handle
Description copied from interface:EventHandlerInvoked when a specific event of the type for which this handler is registered happens.- Parameters:
event- the event which occurred
-