クラス
javafx.scene.input.KeyCodeの使用
-
KeyCodeを使用するパッケージ パッケージ 説明 javafx.scene.input マウスおよびキーボード入力イベント処理のクラスのセットを提供します。 -
-
javafx.scene.inputのKeyCodeの使用
KeyCodeを返すjavafx.scene.inputのメソッド 修飾子と型 メソッド 説明 KeyCodeKeyCodeCombination. getCode()このキーの組合せに関連付けられているキー・コードを取得します。KeyCodeKeyEvent. getCode()このキー・プレスおよびキー・リリース・イベントのキーに関連付けられているキー・コード。KeyCodeKeyCombination.Modifier. getKey()このModifierの修飾子キーを取得します。static KeyCodeKeyCode. getKeyCode(String name)キーのテキスト表現を解析します。static KeyCodeKeyCode. 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イベントを構築します。
-