Uses of Class
javafx.scene.input.KeyEvent
-
Packages that use KeyEvent 软件包 描述 javafx.scene 为JavaFX Scene Graph API提供核心的基类集。javafx.scene.input 提供一组用于鼠标和键盘输入事件处理的类。 -
-
Uses of KeyEvent in javafx.scene
Methods in javafx.scene that return types with arguments of type KeyEvent Modifier and Type 方法 描述 EventHandler<? super KeyEvent>
Node. getOnKeyPressed()
获取属性onKeyPressed的值。EventHandler<? super KeyEvent>
Scene. getOnKeyPressed()
获取属性onKeyPressed的值。EventHandler<? super KeyEvent>
Node. getOnKeyReleased()
获取属性onKeyReleased的值。EventHandler<? super KeyEvent>
Scene. getOnKeyReleased()
获取属性onKeyReleased的值。EventHandler<? super KeyEvent>
Node. getOnKeyTyped()
获取属性onKeyTyped的值。EventHandler<? super KeyEvent>
Scene. getOnKeyTyped()
获取属性onKeyTyped的值。ObjectProperty<EventHandler<? super KeyEvent>>
Node. onKeyPressedProperty()
定义当此Node
或其子项Node
具有输入焦点并按下键时要调用的函数。ObjectProperty<EventHandler<? super KeyEvent>>
Scene. onKeyPressedProperty()
当Node
有Scene
有输入焦点并按下一个键时,定义要调用的功能。ObjectProperty<EventHandler<? super KeyEvent>>
Node. onKeyReleasedProperty()
定义当这个Node
或其子代Node
具有输入焦点并且键被释放时要调用的函数。ObjectProperty<EventHandler<? super KeyEvent>>
Scene. onKeyReleasedProperty()
定义要调用的函数,当一些Node
如此Scene
具有输入焦点和重点已经释放。ObjectProperty<EventHandler<? super KeyEvent>>
Node. onKeyTypedProperty()
定义当这个Node
或其子代Node
具有输入焦点并键入了一个键时要调用的函数。ObjectProperty<EventHandler<? super KeyEvent>>
Scene. onKeyTypedProperty()
定义当这个Scene
某些Node
具有输入焦点并键入了一个键时要调用的函数。Methods in javafx.scene with parameters of type KeyEvent Modifier and Type 方法 描述 void
Scene. processKeyEvent(KeyEvent e)
Method parameters in javafx.scene with type arguments of type KeyEvent Modifier and Type 方法 描述 void
Node. setOnKeyPressed(EventHandler<? super KeyEvent> value)
设置属性onKeyPressed的值。void
Scene. setOnKeyPressed(EventHandler<? super KeyEvent> value)
设置属性onKeyPressed的值。void
Node. setOnKeyReleased(EventHandler<? super KeyEvent> value)
设置属性onKeyReleased的值。void
Scene. setOnKeyReleased(EventHandler<? super KeyEvent> value)
设置属性onKeyReleased的值。void
Node. setOnKeyTyped(EventHandler<? super KeyEvent> value)
设置属性onKeyTyped的值。void
Scene. setOnKeyTyped(EventHandler<? super KeyEvent> value)
设置属性onKeyTyped的值。 -
Uses of KeyEvent in javafx.scene.input
Fields in javafx.scene.input with type parameters of type KeyEvent Modifier and Type Field 描述 static EventType<KeyEvent>
KeyEvent. ANY
所有关键事件类型的常用超类型。static EventType<KeyEvent>
KeyEvent. KEY_PRESSED
当按下键时,会发生此事件。static EventType<KeyEvent>
KeyEvent. KEY_RELEASED
当一个键被释放时,会发生这种情况。static EventType<KeyEvent>
KeyEvent. KEY_TYPED
当字符生成键被键入(按下并释放)时,会发生此事件。Methods in javafx.scene.input that return KeyEvent Modifier and Type 方法 描述 KeyEvent
KeyEvent. copyFor(Object newSource, EventTarget newTarget)
KeyEvent
KeyEvent. copyFor(Object source, EventTarget target, EventType<KeyEvent> type)
用给定的字段替换给定事件的副本。Methods in javafx.scene.input that return types with arguments of type KeyEvent Modifier and Type 方法 描述 EventType<KeyEvent>
KeyEvent. getEventType()
Methods in javafx.scene.input with parameters of type KeyEvent Modifier and Type 方法 描述 boolean
KeyCharacterCombination. match(KeyEvent event)
测试此组合是否与给定的KeyEvent
组合键匹配。boolean
KeyCodeCombination. match(KeyEvent event)
测试此组合是否与给定的KeyEvent
组合键匹配。boolean
KeyCombination. match(KeyEvent event)
测试此组合是否与给定的KeyEvent
中的组合相匹配。Method parameters in javafx.scene.input with type arguments of type KeyEvent Modifier and Type 方法 描述 KeyEvent
KeyEvent. copyFor(Object source, EventTarget target, EventType<KeyEvent> type)
用给定的字段替换给定事件的副本。Constructor parameters in javafx.scene.input with type arguments of type KeyEvent Constructor 描述 KeyEvent(Object source, EventTarget target, EventType<KeyEvent> eventType, String character, String text, KeyCode code, boolean shiftDown, boolean controlDown, boolean altDown, boolean metaDown)
从指定的参数构造一个新的KeyEvent
事件。KeyEvent(EventType<KeyEvent> eventType, String character, String text, KeyCode code, boolean shiftDown, boolean controlDown, boolean altDown, boolean metaDown)
Constructs a newKeyEvent
event from the specified parameters, with anull
source and target.
-