本篇文章为你整理了KeyCode (JavaFX 8)()的详细内容,包含有 KeyCode (JavaFX 8),希望能帮助你了解 KeyCode (JavaFX 8)。
FINAL
Constant for input method support on Asian Keyboards.
FULL_WIDTH
Constant for the Full-Width Characters function key.
HALF_WIDTH
Constant for the Half-Width Characters function key.
JAPANESE_HIRAGANA
Constant for the Japanese-Hiragana function key.
JAPANESE_KATAKANA
Constant for the Japanese-Katakana function key.
JAPANESE_ROMAN
Constant for the Japanese-Roman function key.
KP_DOWN
Constant for the numeric keypad down arrow key.
KP_LEFT
Constant for the numeric keypad left arrow key.
KP_RIGHT
Constant for the numeric keypad right arrow key.
UNDEFINED
This value is used to indicate that the keyCode is unknown.
WINDOWS
Constant for the Microsoft Windows "Windows" key.
boolean
isArrowKey()
Left, right, up, down keys (including the keypad arrows)
boolean
isDigitKey()
All Digit keys (including the keypad digits)
boolean
isMediaKey()
All multimedia keys (channel up/down, volume control, etc...)
boolean
isNavigationKey()
Navigation keys are arrow keys and Page Down, Page Up, Home, End
(including keypad keys)
static KeyCode[]
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
ENTER
public static finalKeyCode ENTER
Constant for the Enter key.
BACK_SPACE
public static finalKeyCode BACK_SPACE
Constant for the Backspace key.
CANCEL
public static finalKeyCode CANCEL
Constant for the Cancel key.
CLEAR
public static finalKeyCode CLEAR
Constant for the Clear key.
SHIFT
public static finalKeyCode SHIFT
Constant for the Shift key.
CONTROL
public static finalKeyCode CONTROL
Constant for the Ctrl key.
PAUSE
public static finalKeyCode PAUSE
Constant for the Pause key.
public static finalKeyCode CAPS
Constant for the Caps Lock key.
ESCAPE
public static finalKeyCode ESCAPE
Constant for the Esc key.
SPACE
public static finalKeyCode SPACE
Constant for the Space key.
PAGE_UP
public static finalKeyCode PAGE_UP
Constant for the Page Up key.
PAGE_DOWN
public static finalKeyCode PAGE_DOWN
Constant for the Page Down key.
public static finalKeyCode LEFT
Constant for the non-numpad left arrow key.
public static finalKeyCode UP
Constant for the non-numpad up arrow key.
RIGHT
public static finalKeyCode RIGHT
Constant for the non-numpad right arrow key.
public static finalKeyCode DOWN
Constant for the non-numpad down arrow key.
COMMA
public static finalKeyCode COMMA
Constant for the comma key, ","
MINUS
public static finalKeyCode MINUS
Constant for the minus key, "-"
PERIOD
public static finalKeyCode PERIOD
Constant for the period key, "."
SLASH
public static finalKeyCode SLASH
Constant for the forward slash key, "/"
DIGIT0
public static finalKeyCode DIGIT0
Constant for the 0 key.
DIGIT1
public static finalKeyCode DIGIT1
Constant for the 1 key.
DIGIT2
public static finalKeyCode DIGIT2
Constant for the 2 key.
DIGIT3
public static finalKeyCode DIGIT3
Constant for the 3 key.
DIGIT4
public static finalKeyCode DIGIT4
Constant for the 4 key.
DIGIT5
public static finalKeyCode DIGIT5
Constant for the 5 key.
DIGIT6
public static finalKeyCode DIGIT6
Constant for the 6 key.
DIGIT7
public static finalKeyCode DIGIT7
Constant for the 7 key.
DIGIT8
public static finalKeyCode DIGIT8
Constant for the 8 key.
DIGIT9
public static finalKeyCode DIGIT9
Constant for the 9 key.
SEMICOLON
public static finalKeyCode SEMICOLON
Constant for the semicolon key, ";"
EQUALS
public static finalKeyCode EQUALS
Constant for the equals key, "="
OPEN_BRACKET
public static finalKeyCode OPEN_BRACKET
Constant for the open bracket key, "["
BACK_SLASH
public static finalKeyCode BACK_SLASH
Constant for the back slash key, "\"
CLOSE_BRACKET
public static finalKeyCode CLOSE_BRACKET
Constant for the close bracket key, "]"
NUMPAD0
public static finalKeyCode NUMPAD0
Constant for the Numpad 0 key.
NUMPAD1
public static finalKeyCode NUMPAD1
Constant for the Numpad 1 key.
NUMPAD2
public static finalKeyCode NUMPAD2
Constant for the Numpad 2 key.
NUMPAD3
public static finalKeyCode NUMPAD3
Constant for the Numpad 3 key.
NUMPAD4
public static finalKeyCode NUMPAD4
Constant for the Numpad 4 key.
NUMPAD5
public static finalKeyCode NUMPAD5
Constant for the Numpad 5 key.
NUMPAD6
public static finalKeyCode NUMPAD6
Constant for the Numpad 6 key.
NUMPAD7
public static finalKeyCode NUMPAD7
Constant for the Numpad 7 key.
NUMPAD8
public static finalKeyCode NUMPAD8
Constant for the Numpad 8 key.
NUMPAD9
public static finalKeyCode NUMPAD9
Constant for the Numpad 9 key.
MULTIPLY
public static finalKeyCode MULTIPLY
Constant for the Multiply key.
SEPARATOR
public static finalKeyCode SEPARATOR
Constant for the Numpad Separator key.
SUBTRACT
public static finalKeyCode SUBTRACT
Constant for the Subtract key.
DECIMAL
public static finalKeyCode DECIMAL
Constant for the Decimal key.
DIVIDE
public static finalKeyCode DIVIDE
Constant for the Divide key.
DELETE
public static finalKeyCode DELETE
Constant for the Delete key.
NUM_LOCK
public static finalKeyCode NUM_LOCK
Constant for the Num Lock key.
SCROLL_LOCK
public static finalKeyCode SCROLL_LOCK
Constant for the Scroll Lock key.
public static finalKeyCode F1
Constant for the F1 function key.
public static finalKeyCode F2
Constant for the F2 function key.
public static finalKeyCode F3
Constant for the F3 function key.
public static finalKeyCode F4
Constant for the F4 function key.
public static finalKeyCode F5
Constant for the F5 function key.
public static finalKeyCode F6
Constant for the F6 function key.
public static finalKeyCode F7
Constant for the F7 function key.
public static finalKeyCode F8
Constant for the F8 function key.
public static finalKeyCode F9
Constant for the F9 function key.
public static finalKeyCode F10
Constant for the F10 function key.
public static finalKeyCode F11
Constant for the F11 function key.
public static finalKeyCode F12
Constant for the F12 function key.
public static finalKeyCode F13
Constant for the F13 function key.
public static finalKeyCode F14
Constant for the F14 function key.
public static finalKeyCode F15
Constant for the F15 function key.
public static finalKeyCode F16
Constant for the F16 function key.
public static finalKeyCode F17
Constant for the F17 function key.
public static finalKeyCode F18
Constant for the F18 function key.
public static finalKeyCode F19
Constant for the F19 function key.
public static finalKeyCode F20
Constant for the F20 function key.
public static finalKeyCode F21
Constant for the F21 function key.
public static finalKeyCode F22
Constant for the F22 function key.
public static finalKeyCode F23
Constant for the F23 function key.
public static finalKeyCode F24
Constant for the F24 function key.
PRINTSCREEN
public static finalKeyCode PRINTSCREEN
Constant for the Print Screen key.
INSERT
public static finalKeyCode INSERT
Constant for the Insert key.
BACK_QUOTE
public static finalKeyCode BACK_QUOTE
Constant for the Back Quote key.
QUOTE
public static finalKeyCode QUOTE
Constant for the Quote key.
KP_UP
public static finalKeyCode KP_UP
Constant for the numeric keypad up arrow key.
KP_DOWN
public static finalKeyCode KP_DOWN
Constant for the numeric keypad down arrow key.
KP_LEFT
public static finalKeyCode KP_LEFT
Constant for the numeric keypad left arrow key.
KP_RIGHT
public static finalKeyCode KP_RIGHT
Constant for the numeric keypad right arrow key.
DEAD_GRAVE
public static finalKeyCode DEAD_GRAVE
Constant for the Dead Grave key.
DEAD_ACUTE
public static finalKeyCode DEAD_ACUTE
Constant for the Dead Acute key.
DEAD_CIRCUMFLEX
public static finalKeyCode DEAD_CIRCUMFLEX
Constant for the Dead Circumflex key.
DEAD_TILDE
public static finalKeyCode DEAD_TILDE
Constant for the Dead Tilde key.
DEAD_MACRON
public static finalKeyCode DEAD_MACRON
Constant for the Dead Macron key.
DEAD_BREVE
public static finalKeyCode DEAD_BREVE
Constant for the Dead Breve key.
DEAD_ABOVEDOT
public static finalKeyCode DEAD_ABOVEDOT
Constant for the Dead Abovedot key.
DEAD_DIAERESIS
public static finalKeyCode DEAD_DIAERESIS
Constant for the Dead Diaeresis key.
DEAD_ABOVERING
public static finalKeyCode DEAD_ABOVERING
Constant for the Dead Abovering key.
DEAD_DOUBLEACUTE
public static finalKeyCode DEAD_DOUBLEACUTE
Constant for the Dead Doubleacute key.
DEAD_CARON
public static finalKeyCode DEAD_CARON
Constant for the Dead Caron key.
DEAD_CEDILLA
public static finalKeyCode DEAD_CEDILLA
Constant for the Dead Cedilla key.
DEAD_OGONEK
public static finalKeyCode DEAD_OGONEK
Constant for the Dead Ogonek key.
DEAD_IOTA
public static finalKeyCode DEAD_IOTA
Constant for the Dead Iota key.
DEAD_VOICED_SOUND
public static finalKeyCode DEAD_VOICED_SOUND
Constant for the Dead Voiced Sound key.
DEAD_SEMIVOICED_SOUND
public static finalKeyCode DEAD_SEMIVOICED_SOUND
Constant for the Dead Semivoiced Sound key.
AMPERSAND
public static finalKeyCode AMPERSAND
Constant for the Ampersand key.
ASTERISK
public static finalKeyCode ASTERISK
Constant for the Asterisk key.
QUOTEDBL
public static finalKeyCode QUOTEDBL
Constant for the Double Quote key.
GREATER
public static finalKeyCode GREATER
Constant for the Greater key.
BRACELEFT
public static finalKeyCode BRACELEFT
Constant for the Left Brace key.
BRACERIGHT
public static finalKeyCode BRACERIGHT
Constant for the Right Brace key.
COLON
public static finalKeyCode COLON
Constant for the ":" key.
CIRCUMFLEX
public static finalKeyCode CIRCUMFLEX
Constant for the "^" key.
DOLLAR
public static finalKeyCode DOLLAR
Constant for the "$" key.
EURO_SIGN
public static finalKeyCode EURO_SIGN
Constant for the Euro currency sign key.
EXCLAMATION_MARK
public static finalKeyCode EXCLAMATION_MARK
Constant for the "!" key.
INVERTED_EXCLAMATION_MARK
public static finalKeyCode INVERTED_EXCLAMATION_MARK
Constant for the inverted exclamation mark key.
LEFT_PARENTHESIS
public static finalKeyCode LEFT_PARENTHESIS
Constant for the "(" key.
NUMBER_SIGN
public static finalKeyCode NUMBER_SIGN
Constant for the "#" key.
RIGHT_PARENTHESIS
public static finalKeyCode RIGHT_PARENTHESIS
Constant for the ")" key.
UNDERSCORE
public static finalKeyCode UNDERSCORE
Constant for the "_" key.
WINDOWS
public static finalKeyCode WINDOWS
Constant for the Microsoft Windows "Windows" key.
It is used for both the left and right version of the key.
CONTEXT_MENU
public static finalKeyCode CONTEXT_MENU
Constant for the Microsoft Windows Context Menu key.
FINAL
public static finalKeyCode FINAL
Constant for input method support on Asian Keyboards.
CONVERT
public static finalKeyCode CONVERT
Constant for the Convert function key.
NONCONVERT
public static finalKeyCode NONCONVERT
Constant for the Dont Convert function key.
ACCEPT
public static finalKeyCode ACCEPT
Constant for the Accept or Commit function key.
MODECHANGE
public static finalKeyCode MODECHANGE
Constant for the Mode Change key.
KANJI
public static finalKeyCode KANJI
Constant for the Kanji key.
ALPHANUMERIC
public static finalKeyCode ALPHANUMERIC
Constant for the Alphanumeric function key.
KATAKANA
public static finalKeyCode KATAKANA
Constant for the Katakana function key.
HIRAGANA
public static finalKeyCode HIRAGANA
Constant for the Hiragana function key.
FULL_WIDTH
public static finalKeyCode FULL_WIDTH
Constant for the Full-Width Characters function key.
HALF_WIDTH
public static finalKeyCode HALF_WIDTH
Constant for the Half-Width Characters function key.
ROMAN_CHARACTERS
public static finalKeyCode ROMAN_CHARACTERS
Constant for the Roman Characters function key.
ALL_CANDIDATES
public static finalKeyCode ALL_CANDIDATES
Constant for the All Candidates function key.
PREVIOUS_CANDIDATE
public static finalKeyCode PREVIOUS_CANDIDATE
Constant for the Previous Candidate function key.
CODE_INPUT
public static finalKeyCode CODE_INPUT
Constant for the Code Input function key.
JAPANESE_KATAKANA
public static finalKeyCode JAPANESE_KATAKANA
Constant for the Japanese-Katakana function key.
This key switches to a Japanese input method and selects its Katakana input mode.
JAPANESE_HIRAGANA
public static finalKeyCode JAPANESE_HIRAGANA
Constant for the Japanese-Hiragana function key.
This key switches to a Japanese input method and selects its Hiragana input mode.
JAPANESE_ROMAN
public static finalKeyCode JAPANESE_ROMAN
Constant for the Japanese-Roman function key.
This key switches to a Japanese input method and selects its Roman-Direct input mode.
KANA_LOCK
public static finalKeyCode KANA_LOCK
Constant for the locking Kana function key.
This key locks the keyboard into a Kana layout.
INPUT_METHOD_ON_OFF
public static finalKeyCode INPUT_METHOD_ON_OFF
Constant for the input method on/off key.
PASTE
public static finalKeyCode PASTE
Constant for the Paste key.
AGAIN
public static finalKeyCode AGAIN
Constant for the Again key.
PROPS
public static finalKeyCode PROPS
Constant for the Properties key.
COMPOSE
public static finalKeyCode COMPOSE
Constant for the input method on/off key.
ALT_GRAPH
public static finalKeyCode ALT_GRAPH
Constant for the AltGraph function key.
BEGIN
public static finalKeyCode BEGIN
Constant for the Begin key.
UNDEFINED
public static finalKeyCode UNDEFINED
This value is used to indicate that the keyCode is unknown.
Key typed events do not have a keyCode value; this value
is used instead.
SOFTKEY_0
public static finalKeyCode SOFTKEY_0
Constant for the Softkey 0 key.
SOFTKEY_1
public static finalKeyCode SOFTKEY_1
Constant for the Softkey 1 key.
SOFTKEY_2
public static finalKeyCode SOFTKEY_2
Constant for the Softkey 2 key.
SOFTKEY_3
public static finalKeyCode SOFTKEY_3
Constant for the Softkey 3 key.
SOFTKEY_4
public static finalKeyCode SOFTKEY_4
Constant for the Softkey 4 key.
SOFTKEY_5
public static finalKeyCode SOFTKEY_5
Constant for the Softkey 5 key.
SOFTKEY_6
public static finalKeyCode SOFTKEY_6
Constant for the Softkey 6 key.
SOFTKEY_7
public static finalKeyCode SOFTKEY_7
Constant for the Softkey 7 key.
SOFTKEY_8
public static finalKeyCode SOFTKEY_8
Constant for the Softkey 8 key.
SOFTKEY_9
public static finalKeyCode SOFTKEY_9
Constant for the Softkey 9 key.
GAME_A
public static finalKeyCode GAME_A
Constant for the Game A key.
GAME_B
public static finalKeyCode GAME_B
Constant for the Game B key.
GAME_C
public static finalKeyCode GAME_C
Constant for the Game C key.
GAME_D
public static finalKeyCode GAME_D
Constant for the Game D key.
POUND
public static finalKeyCode POUND
Constant for the Pound key.
POWER
public static finalKeyCode POWER
Constant for the Power key.
COLORED_KEY_0
public static finalKeyCode COLORED_KEY_0
Constant for the Colored Key 0 key.
COLORED_KEY_1
public static finalKeyCode COLORED_KEY_1
Constant for the Colored Key 1 key.
COLORED_KEY_2
public static finalKeyCode COLORED_KEY_2
Constant for the Colored Key 2 key.
COLORED_KEY_3
public static finalKeyCode COLORED_KEY_3
Constant for the Colored Key 3 key.
EJECT_TOGGLE
public static finalKeyCode EJECT_TOGGLE
Constant for the Eject key.
RECORD
public static finalKeyCode RECORD
Constant for the Record key.
FAST_FWD
public static finalKeyCode FAST_FWD
Constant for the Fast Forward key.
REWIND
public static finalKeyCode REWIND
Constant for the Rewind key.
TRACK_PREV
public static finalKeyCode TRACK_PREV
Constant for the Previous Track key.
TRACK_NEXT
public static finalKeyCode TRACK_NEXT
Constant for the Next Track key.
CHANNEL_UP
public static finalKeyCode CHANNEL_UP
Constant for the Channel Up key.
CHANNEL_DOWN
public static finalKeyCode CHANNEL_DOWN
Constant for the Channel Down key.
VOLUME_UP
public static finalKeyCode VOLUME_UP
Constant for the Volume Up key.
VOLUME_DOWN
public static finalKeyCode VOLUME_DOWN
Constant for the Volume Down key.
COMMAND
public static finalKeyCode COMMAND
Constant for the Apple Command key.
Since:
JavaFX 2.1
SHORTCUT
public static finalKeyCode SHORTCUT
Constant for the Shortcut key.
values
public staticKeyCode[]values()
Returns an array containing the constants of this enum type, in
the order they are declared. This method may be used to iterate
over the constants as follows:
for (KeyCode c : KeyCode.values())
System.out.println(c);
Returns:
an array containing the constants of this enum type, in the order they are declared
valueOf
public staticKeyCodevalueOf(Stringname)
Returns the enum constant of this type with the specified name.
The string must match exactly an identifier used to declare an
enum constant in this type. (Extraneous whitespace characters are
not permitted.)
Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
IllegalArgumentException - if this enum type has no constant with the specified name
NullPointerException - if the argument is null
public finalbooleanisFunctionKey()
Function keys like F1, F2, etc...
Returns:
true if this key code corresponds to a functional key
Since:
JavaFX 2.2
public finalbooleanisNavigationKey()
Navigation keys are arrow keys and Page Down, Page Up, Home, End
(including keypad keys)
Returns:
true if this key code corresponds to a navigation key
Since:
JavaFX 2.2
public finalbooleanisArrowKey()
Left, right, up, down keys (including the keypad arrows)
Returns:
true if this key code corresponds to an arrow key
Since:
JavaFX 2.2
public finalbooleanisModifierKey()
Keys that could act as a modifier
Returns:
true if this key code corresponds to a modifier key
Since:
JavaFX 2.2
public finalbooleanisDigitKey()
All Digit keys (including the keypad digits)
Returns:
true if this key code corresponds to a digit key
Since:
JavaFX 2.2
public finalbooleanisMediaKey()
All multimedia keys (channel up/down, volume control, etc...)
Returns:
true if this key code corresponds to a media key
Since:
JavaFX 2.2
getName
public finalStringgetName()
Gets name of this key code.
Returns:
Name of this key code
getKeyCode
public staticKeyCodegetKeyCode(Stringname)
Parses textual representation of a key.
Parameters:
name - Textual representation of the key
Returns:
KeyCode for the key with the given name, null if the string
is unknown.
以上就是KeyCode (JavaFX 8)()的详细内容,想要了解更多 KeyCode (JavaFX 8)的内容,请持续关注盛行IT软件开发工作室。
郑重声明:本文由网友发布,不代表盛行IT的观点,版权归原作者所有,仅为传播更多信息之目的,如有侵权请联系,我们将第一时间修改或删除,多谢。