Enum Key

    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
      A
      'A' key
      Alt
      Alt key.
      B
      'B' key
      Backspace
      Backspace key.
      C
      'C' key
      Control
      Control key.
      D
      'D' key
      Delete
      Delete key.
      Down
      Down arrow key.
      E
      'E' key
      End
      End key.
      Enter
      Enter key.
      Escape
      Escape key.
      F
      'F' key
      F1
      F1 function key.
      F10
      F10 function key.
      F11
      F11 function key.
      F12
      F12 function key.
      F2
      F2 function key.
      F3
      F3 function key.
      F4
      F4 function key.
      F5
      F5 function key.
      F6
      F6 function key.
      F7
      F7 function key.
      F8
      F8 function key.
      F9
      F9 function key.
      G
      'G' key
      H
      'H' key
      Home
      Home key.
      I
      'I' key
      Insert
      Insert key.
      J
      'J' key
      K
      'K' key
      Key_0
      '0' key
      Key_1
      '1' key
      Key_2
      '2' key
      Key_3
      '3' key
      Key_4
      '4' key
      Key_5
      '5' key
      Key_6
      '6' key
      Key_7
      '7' key
      Key_8
      '8' key
      Key_9
      '9' key
      L
      'L' key
      Left
      Left arrow key.
      M
      'M' key
      N
      'N' key
      O
      'O' key
      P
      'P' key
      PageDown
      Page down key.
      PageUp
      Page up key.
      Q
      'Q' key
      R
      'R' key
      Right
      Right arrow key.
      S
      'S' key
      Shift
      Shift key.
      Space
      Space.
      T
      'T' key
      Tab
      Tab key.
      U
      'U' key
      Unknown
      Unknown key.
      Up
      Up arrow key.
      V
      'V' key
      W
      'W' key
      X
      'X' key
      Y
      'Y' key
      Z
      'Z' key
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int getValue()
      Returns the numerical representation of this enum.
      static Key valueOf​(java.lang.String name)
      Returns the enum constant of this type with the specified name.
      static Key[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      • Methods inherited from class java.lang.Enum

        clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
      • Methods inherited from class java.lang.Object

        getClass, notify, notifyAll, wait, wait, wait
    • Enum Constant Detail

      • 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.
      • Right

        public static final Key Right
        Right 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 Detail

      • values

        public static Key[] 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 (Key c : Key.values())
            System.out.println(c);
        
        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.