fr.umlv.lawrence
Enum Key

java.lang.Object
  extended by java.lang.Enum<Key>
      extended by fr.umlv.lawrence.Key
All Implemented Interfaces:
Serializable, Comparable<Key>

public enum Key
extends Enum<Key>

Represents a typed key

Author:
Julien Cervelle

Enum Constant Summary
A
           
ACCEPT
           
ADD
           
AGAIN
           
ALL_CANDIDATES
           
ALPHANUMERIC
           
ALT
           
ALT_GRAPH
           
AMPERSAND
           
ASTERISK
           
AT
           
B
           
BACK_QUOTE
           
BACK_SLASH
           
BACK_SPACE
           
BEGIN
           
BRACELEFT
           
BRACERIGHT
           
C
           
CANCEL
           
CAPS_LOCK
           
CIRCUMFLEX
           
CLEAR
           
CLOSE_BRACKET
           
CODE_INPUT
           
COLON
           
COMMA
           
COMPOSE
           
CONTEXT_MENU
           
CONTROL
           
CONVERT
           
COPY
           
CUT
           
D
           
DEAD_ABOVEDOT
           
DEAD_ABOVERING
           
DEAD_ACUTE
           
DEAD_BREVE
           
DEAD_CARON
           
DEAD_CEDILLA
           
DEAD_CIRCUMFLEX
           
DEAD_DIAERESIS
           
DEAD_DOUBLEACUTE
           
DEAD_GRAVE
           
DEAD_IOTA
           
DEAD_MACRON
           
DEAD_OGONEK
           
DEAD_SEMIVOICED_SOUND
           
DEAD_TILDE
           
DEAD_VOICED_SOUND
           
DECIMAL
           
DELETE
           
DIVIDE
           
DOLLAR
           
DOWN
           
E
           
END
           
ENTER
           
EQUALS
           
ESCAPE
           
EURO_SIGN
           
EXCLAMATION_MARK
           
F
           
F1
           
F10
           
F11
           
F12
           
F13
           
F14
           
F15
           
F16
           
F17
           
F18
           
F19
           
F2
           
F20
           
F21
           
F22
           
F23
           
F24
           
F3
           
F4
           
F5
           
F6
           
F7
           
F8
           
F9
           
FINAL
           
FIND
           
FULL_WIDTH
           
G
           
GREATER
           
H
           
HALF_WIDTH
           
HELP
           
HIRAGANA
           
HOME
           
I
           
INPUT_METHOD_ON_OFF
           
INSERT
           
INVERTED_EXCLAMATION_MARK
           
J
           
JAPANESE_HIRAGANA
           
JAPANESE_KATAKANA
           
JAPANESE_ROMAN
           
K
           
KANA
           
KANA_LOCK
           
KANJI
           
KATAKANA
           
KP_DOWN
           
KP_LEFT
           
KP_RIGHT
           
KP_UP
           
L
           
LEFT
           
LEFT_PARENTHESIS
           
LESS
           
M
           
META
           
MINUS
           
MODECHANGE
           
MULTIPLY
           
N
           
NONCONVERT
           
NUM_LOCK
           
NUM0
           
NUM1
           
NUM2
           
NUM3
           
NUM4
           
NUM5
           
NUM6
           
NUM7
           
NUM8
           
NUM9
           
NUMBER_SIGN
           
NUMPAD0
           
NUMPAD1
           
NUMPAD2
           
NUMPAD3
           
NUMPAD4
           
NUMPAD5
           
NUMPAD6
           
NUMPAD7
           
NUMPAD8
           
NUMPAD9
           
O
           
OPEN_BRACKET
           
P
           
PAGE_DOWN
           
PAGE_UP
           
PASTE
           
PAUSE
           
PERIOD
           
PLUS
           
PREVIOUS_CANDIDATE
           
PRINTSCREEN
           
PROPS
           
Q
           
QUOTE
           
QUOTEDBL
           
R
           
RIGHT
           
RIGHT_PARENTHESIS
           
ROMAN_CHARACTERS
           
S
           
SCROLL_LOCK
           
SEMICOLON
           
SEPARATER
           
SEPARATOR
           
SHIFT
           
SLASH
           
SPACE
           
STOP
           
SUBTRACT
           
T
           
TAB
           
U
           
UNDEFINED
           
UNDERSCORE
           
UNDO
           
UP
           
V
           
W
           
WINDOWS
           
X
           
Y
           
Z
           
 
Method Summary
static Key getKey(int keycode)
           
static Key valueOf(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're declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

ENTER

public static final Key ENTER

BACK_SPACE

public static final Key BACK_SPACE

TAB

public static final Key TAB

CANCEL

public static final Key CANCEL

CLEAR

public static final Key CLEAR

SHIFT

public static final Key SHIFT

CONTROL

public static final Key CONTROL

ALT

public static final Key ALT

PAUSE

public static final Key PAUSE

CAPS_LOCK

public static final Key CAPS_LOCK

ESCAPE

public static final Key ESCAPE

SPACE

public static final Key SPACE

PAGE_UP

public static final Key PAGE_UP

PAGE_DOWN

public static final Key PAGE_DOWN

END

public static final Key END

HOME

public static final Key HOME

LEFT

public static final Key LEFT

UP

public static final Key UP

RIGHT

public static final Key RIGHT

DOWN

public static final Key DOWN

COMMA

public static final Key COMMA

MINUS

public static final Key MINUS

PERIOD

public static final Key PERIOD

SLASH

public static final Key SLASH

NUM0

public static final Key NUM0

NUM1

public static final Key NUM1

NUM2

public static final Key NUM2

NUM3

public static final Key NUM3

NUM4

public static final Key NUM4

NUM5

public static final Key NUM5

NUM6

public static final Key NUM6

NUM7

public static final Key NUM7

NUM8

public static final Key NUM8

NUM9

public static final Key NUM9

SEMICOLON

public static final Key SEMICOLON

EQUALS

public static final Key EQUALS

A

public static final Key A

B

public static final Key B

C

public static final Key C

D

public static final Key D

E

public static final Key E

F

public static final Key F

G

public static final Key G

H

public static final Key H

I

public static final Key I

J

public static final Key J

K

public static final Key K

L

public static final Key L

M

public static final Key M

N

public static final Key N

O

public static final Key O

P

public static final Key P

Q

public static final Key Q

R

public static final Key R

S

public static final Key S

T

public static final Key T

U

public static final Key U

V

public static final Key V

W

public static final Key W

X

public static final Key X

Y

public static final Key Y

Z

public static final Key Z

OPEN_BRACKET

public static final Key OPEN_BRACKET

BACK_SLASH

public static final Key BACK_SLASH

CLOSE_BRACKET

public static final Key CLOSE_BRACKET

NUMPAD0

public static final Key NUMPAD0

NUMPAD1

public static final Key NUMPAD1

NUMPAD2

public static final Key NUMPAD2

NUMPAD3

public static final Key NUMPAD3

NUMPAD4

public static final Key NUMPAD4

NUMPAD5

public static final Key NUMPAD5

NUMPAD6

public static final Key NUMPAD6

NUMPAD7

public static final Key NUMPAD7

NUMPAD8

public static final Key NUMPAD8

NUMPAD9

public static final Key NUMPAD9

MULTIPLY

public static final Key MULTIPLY

ADD

public static final Key ADD

SEPARATER

public static final Key SEPARATER

SEPARATOR

public static final Key SEPARATOR

SUBTRACT

public static final Key SUBTRACT

DECIMAL

public static final Key DECIMAL

DIVIDE

public static final Key DIVIDE

DELETE

public static final Key DELETE

NUM_LOCK

public static final Key NUM_LOCK

SCROLL_LOCK

public static final Key SCROLL_LOCK

F1

public static final Key F1

F2

public static final Key F2

F3

public static final Key F3

F4

public static final Key F4

F5

public static final Key F5

F6

public static final Key F6

F7

public static final Key F7

F8

public static final Key F8

F9

public static final Key F9

F10

public static final Key F10

F11

public static final Key F11

F12

public static final Key F12

F13

public static final Key F13

F14

public static final Key F14

F15

public static final Key F15

F16

public static final Key F16

F17

public static final Key F17

F18

public static final Key F18

F19

public static final Key F19

F20

public static final Key F20

F21

public static final Key F21

F22

public static final Key F22

F23

public static final Key F23

F24

public static final Key F24

PRINTSCREEN

public static final Key PRINTSCREEN

INSERT

public static final Key INSERT

HELP

public static final Key HELP

META

public static final Key META

BACK_QUOTE

public static final Key BACK_QUOTE

QUOTE

public static final Key QUOTE

KP_UP

public static final Key KP_UP

KP_DOWN

public static final Key KP_DOWN

KP_LEFT

public static final Key KP_LEFT

KP_RIGHT

public static final Key KP_RIGHT

DEAD_GRAVE

public static final Key DEAD_GRAVE

DEAD_ACUTE

public static final Key DEAD_ACUTE

DEAD_CIRCUMFLEX

public static final Key DEAD_CIRCUMFLEX

DEAD_TILDE

public static final Key DEAD_TILDE

DEAD_MACRON

public static final Key DEAD_MACRON

DEAD_BREVE

public static final Key DEAD_BREVE

DEAD_ABOVEDOT

public static final Key DEAD_ABOVEDOT

DEAD_DIAERESIS

public static final Key DEAD_DIAERESIS

DEAD_ABOVERING

public static final Key DEAD_ABOVERING

DEAD_DOUBLEACUTE

public static final Key DEAD_DOUBLEACUTE

DEAD_CARON

public static final Key DEAD_CARON

DEAD_CEDILLA

public static final Key DEAD_CEDILLA

DEAD_OGONEK

public static final Key DEAD_OGONEK

DEAD_IOTA

public static final Key DEAD_IOTA

DEAD_VOICED_SOUND

public static final Key DEAD_VOICED_SOUND

DEAD_SEMIVOICED_SOUND

public static final Key DEAD_SEMIVOICED_SOUND

AMPERSAND

public static final Key AMPERSAND

ASTERISK

public static final Key ASTERISK

QUOTEDBL

public static final Key QUOTEDBL

LESS

public static final Key LESS

GREATER

public static final Key GREATER

BRACELEFT

public static final Key BRACELEFT

BRACERIGHT

public static final Key BRACERIGHT

AT

public static final Key AT

COLON

public static final Key COLON

CIRCUMFLEX

public static final Key CIRCUMFLEX

DOLLAR

public static final Key DOLLAR

EURO_SIGN

public static final Key EURO_SIGN

EXCLAMATION_MARK

public static final Key EXCLAMATION_MARK

INVERTED_EXCLAMATION_MARK

public static final Key INVERTED_EXCLAMATION_MARK

LEFT_PARENTHESIS

public static final Key LEFT_PARENTHESIS

NUMBER_SIGN

public static final Key NUMBER_SIGN

PLUS

public static final Key PLUS

RIGHT_PARENTHESIS

public static final Key RIGHT_PARENTHESIS

UNDERSCORE

public static final Key UNDERSCORE

WINDOWS

public static final Key WINDOWS

CONTEXT_MENU

public static final Key CONTEXT_MENU

FINAL

public static final Key FINAL

CONVERT

public static final Key CONVERT

NONCONVERT

public static final Key NONCONVERT

ACCEPT

public static final Key ACCEPT

MODECHANGE

public static final Key MODECHANGE

KANA

public static final Key KANA

KANJI

public static final Key KANJI

ALPHANUMERIC

public static final Key ALPHANUMERIC

KATAKANA

public static final Key KATAKANA

HIRAGANA

public static final Key HIRAGANA

FULL_WIDTH

public static final Key FULL_WIDTH

HALF_WIDTH

public static final Key HALF_WIDTH

ROMAN_CHARACTERS

public static final Key ROMAN_CHARACTERS

ALL_CANDIDATES

public static final Key ALL_CANDIDATES

PREVIOUS_CANDIDATE

public static final Key PREVIOUS_CANDIDATE

CODE_INPUT

public static final Key CODE_INPUT

JAPANESE_KATAKANA

public static final Key JAPANESE_KATAKANA

JAPANESE_HIRAGANA

public static final Key JAPANESE_HIRAGANA

JAPANESE_ROMAN

public static final Key JAPANESE_ROMAN

KANA_LOCK

public static final Key KANA_LOCK

INPUT_METHOD_ON_OFF

public static final Key INPUT_METHOD_ON_OFF

CUT

public static final Key CUT

COPY

public static final Key COPY

PASTE

public static final Key PASTE

UNDO

public static final Key UNDO

AGAIN

public static final Key AGAIN

FIND

public static final Key FIND

PROPS

public static final Key PROPS

STOP

public static final Key STOP

COMPOSE

public static final Key COMPOSE

ALT_GRAPH

public static final Key ALT_GRAPH

BEGIN

public static final Key BEGIN

UNDEFINED

public static final Key UNDEFINED
Method Detail

values

public static final Key[] values()
Returns an array containing the constants of this enum type, in the order they're 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're declared

valueOf

public static Key valueOf(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:
IllegalArgumentException - if this enum type has no constant with the specified name

getKey

public static Key getKey(int keycode)