クラス
javafx.scene.input.KeyCodeの使用
-
KeyCodeを使用するパッケージ パッケージ 説明 javafx.scene.input マウスおよびキーボード入力イベント処理のクラスのセットを提供します。 -
-
javafx.scene.inputのKeyCodeの使用
KeyCodeを返すjavafx.scene.inputのメソッド 修飾子と型 メソッド 説明 KeyCode
KeyCodeCombination. getCode()
このキーの組合せに関連付けられているキー・コードを取得します。KeyCode
KeyEvent. getCode()
このキー・プレスおよびキー・リリース・イベントのキーに関連付けられているキー・コード。KeyCode
KeyCombination.Modifier. getKey()
このModifier
の修飾子キーを取得します。static KeyCode
KeyCode. getKeyCode(String name)
キーのテキスト表現を解析します。static KeyCode
KeyCode. valueOf(String name)
指定された名前を持つ、この型の列挙型定数を返します。static KeyCode[]
KeyCode. values()
この列挙型の定数を含む配列を、宣言されている順序で返します。KeyCode型のパラメータを持つjavafx.scene.inputのコンストラクタ コンストラクタ 説明 KeyCodeCombination(KeyCode code, KeyCombination.Modifier... modifiers)
指定された修飾子のリストとともに指定された主要なキーのKeyCodeCombination
を構築します。KeyCodeCombination(KeyCode code, KeyCombination.ModifierValue shift, KeyCombination.ModifierValue control, KeyCombination.ModifierValue alt, KeyCombination.ModifierValue meta, KeyCombination.ModifierValue shortcut)
すべての修飾子キーの明示的な指定とともに指定された主要なキーのKeyCodeCombination
を構築します。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)
null
ソースとターゲットを使用して、指定されたパラメータから新しいKeyEvent
イベントを構築します。
-