Enum Key

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

public enum Key
extends java.lang.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:
WInteractWidget.keyWentDown(), WInteractWidget.keyWentUp()
  • Enum Constant Details

    • Key_unknown

      public static final Key Key_unknown
      Unknown key.
    • Key_Enter

      public static final Key Key_Enter
      Enter key.
    • Key_Tab

      public static final Key Key_Tab
      Tab key.
    • Key_Backspace

      public static final Key Key_Backspace
      Backspace key.
    • Key_Shift

      public static final Key Key_Shift
      Shift key.
    • Key_Control

      public static final Key Key_Control
      Control key.
    • Key_Alt

      public static final Key Key_Alt
      Alt key.
    • Key_PageUp

      public static final Key Key_PageUp
      Page up key.
    • Key_PageDown

      public static final Key Key_PageDown
      Page down key.
    • Key_End

      public static final Key Key_End
      End key.
    • Key_Home

      public static final Key Key_Home
      Home key.
    • Key_Left

      public static final Key Key_Left
      Left arrow key.
    • Key_Up

      public static final Key Key_Up
      Up arrow key.
    • Key_Right

      public static final Key Key_Right
      Right arrow key.
    • Key_Down

      public static final Key Key_Down
      Down arrow key.
    • Key_Insert

      public static final Key Key_Insert
      Insert key.
    • Key_Delete

      public static final Key Key_Delete
      Delete key.
    • Key_Escape

      public static final Key Key_Escape
      Escape key.
    • Key_F1

      public static final Key Key_F1
      F1 function key.
    • Key_F2

      public static final Key Key_F2
      F2 function key.
    • Key_F3

      public static final Key Key_F3
      F3 function key.
    • Key_F4

      public static final Key Key_F4
      F4 function key.
    • Key_F5

      public static final Key Key_F5
      F5 function key.
    • Key_F6

      public static final Key Key_F6
      F6 function key.
    • Key_F7

      public static final Key Key_F7
      F7 function key.
    • Key_F8

      public static final Key Key_F8
      F8 function key.
    • Key_F9

      public static final Key Key_F9
      F9 function key.
    • Key_F10

      public static final Key Key_F10
      F10 function key.
    • Key_F11

      public static final Key Key_F11
      F11 function key.
    • Key_F12

      public static final Key Key_F12
      F12 function key.
    • Key_Space

      public static final Key Key_Space
      Space.
    • Key_A

      public static final Key Key_A
      'A' key
    • Key_B

      public static final Key Key_B
      'B' key
    • Key_C

      public static final Key Key_C
      'C' key
    • Key_D

      public static final Key Key_D
      'D' key
    • Key_E

      public static final Key Key_E
      'E' key
    • Key_F

      public static final Key Key_F
      'F' key
    • Key_G

      public static final Key Key_G
      'G' key
    • Key_H

      public static final Key Key_H
      'H' key
    • Key_I

      public static final Key Key_I
      'I' key
    • Key_J

      public static final Key Key_J
      'J' key
    • Key_K

      public static final Key Key_K
      'K' key
    • Key_L

      public static final Key Key_L
      'L' key
    • Key_M

      public static final Key Key_M
      'M' key
    • Key_N

      public static final Key Key_N
      'N' key
    • Key_O

      public static final Key Key_O
      'O' key
    • Key_P

      public static final Key Key_P
      'P' key
    • Key_Q

      public static final Key Key_Q
      'Q' key
    • Key_R

      public static final Key Key_R
      'R' key
    • Key_S

      public static final Key Key_S
      'S' key
    • Key_T

      public static final Key Key_T
      'T' key
    • Key_U

      public static final Key Key_U
      'U' key
    • Key_V

      public static final Key Key_V
      'V' key
    • Key_W

      public static final Key Key_W
      'W' key
    • Key_X

      public static final Key Key_X
      'X' key
    • Key_Y

      public static final Key Key_Y
      'Y' key
    • Key_Z

      public static final Key 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 type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static Key valueOf​(java.lang.String name)
      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:
      java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
      java.lang.NullPointerException - if the argument is null
    • getValue

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