Enum Class Key

java.lang.Object
java.lang.Enum<Key>
eu.webtoolkit.jwt.Key
All Implemented Interfaces:
Serializable, Comparable<Key>, Constable

public enum Key extends Enum<Key>
Enumeration for key codes.

These are key codes that identify a key on a keyboard. All keys listed here can be identified across all browsers and (Western) keyboards. A Key is returned by WKeyEvent.getKey(). If you want to identify a character, you should use the WKeyEvent.getCharCode() method instead.

See Also:
  • Enum Constant Details

    • Unknown

      public static final Key Unknown
      Unknown key.
    • Enter

      public static final Key Enter
      Enter key.
    • Tab

      public static final Key Tab
      Tab key.
    • Backspace

      public static final Key Backspace
      Backspace key.
    • Shift

      public static final Key Shift
      Shift key.
    • Control

      public static final Key Control
      Control key.
    • Alt

      public static final Key Alt
      Alt key.
    • PageUp

      public static final Key PageUp
      Page up key.
    • PageDown

      public static final Key PageDown
      Page down key.
    • End

      public static final Key End
      End key.
    • Home

      public static final Key Home
      Home key.
    • Left

      public static final Key Left
      Left arrow key.
    • Up

      public static final Key Up
      Up arrow key.
    • Down

      public static final Key Down
      Down arrow key.
    • Insert

      public static final Key Insert
      Insert key.
    • Delete

      public static final Key Delete
      Delete key.
    • Escape

      public static final Key Escape
      Escape key.
    • F1

      public static final Key F1
      F1 function key.
    • F2

      public static final Key F2
      F2 function key.
    • F3

      public static final Key F3
      F3 function key.
    • F4

      public static final Key F4
      F4 function key.
    • F5

      public static final Key F5
      F5 function key.
    • F6

      public static final Key F6
      F6 function key.
    • F7

      public static final Key F7
      F7 function key.
    • F8

      public static final Key F8
      F8 function key.
    • F9

      public static final Key F9
      F9 function key.
    • F10

      public static final Key F10
      F10 function key.
    • F11

      public static final Key F11
      F11 function key.
    • F12

      public static final Key F12
      F12 function key.
    • Space

      public static final Key Space
      Space.
    • A

      public static final Key A
      'A' key
    • B

      public static final Key B
      'B' key
    • C

      public static final Key C
      'C' key
    • D

      public static final Key D
      'D' key
    • E

      public static final Key E
      'E' key
    • F

      public static final Key F
      'F' key
    • G

      public static final Key G
      'G' key
    • H

      public static final Key H
      'H' key
    • I

      public static final Key I
      'I' key
    • J

      public static final Key J
      'J' key
    • K

      public static final Key K
      'K' key
    • L

      public static final Key L
      'L' key
    • M

      public static final Key M
      'M' key
    • N

      public static final Key N
      'N' key
    • O

      public static final Key O
      'O' key
    • P

      public static final Key P
      'P' key
    • Q

      public static final Key Q
      'Q' key
    • R

      public static final Key R
      'R' key
    • S

      public static final Key S
      'S' key
    • T

      public static final Key T
      'T' key
    • U

      public static final Key U
      'U' key
    • V

      public static final Key V
      'V' key
    • W

      public static final Key W
      'W' key
    • X

      public static final Key X
      'X' key
    • Y

      public static final Key Y
      'Y' key
    • Z

      public static final Key Z
      'Z' key
    • Key_1

      public static final Key Key_1
      '1' key
    • Key_2

      public static final Key Key_2
      '2' key
    • Key_3

      public static final Key Key_3
      '3' key
    • Key_4

      public static final Key Key_4
      '4' key
    • Key_5

      public static final Key Key_5
      '5' key
    • Key_6

      public static final Key Key_6
      '6' key
    • Key_7

      public static final Key Key_7
      '7' key
    • Key_8

      public static final Key Key_8
      '8' key
    • Key_9

      public static final Key Key_9
      '9' key
    • Key_0

      public static final Key Key_0
      '0' key
  • Method Details

    • values

      public static Key[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static Key valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified name
      NullPointerException - if the argument is null
    • getValue

      public int getValue()
      Returns the numerical representation of this enum.