javax.rad.ui.event
Class UIKeyEvent

java.lang.Object
  extended by javax.rad.ui.event.UIEvent
      extended by javax.rad.ui.event.UIKeyEvent

public class UIKeyEvent
extends UIEvent

Platform and technology independent key event definition. It is designed for use with AWT, Swing, SWT, JSP, JSF, ... .

See Also:
KeyEvent

Field Summary
static char CHAR_UNDEFINED
          KEY_PRESSED and KEY_RELEASED events which do not map to a valid Unicode character use this for the keyChar value.
static int KEY_FIRST
          The first number in the range of ids used for mouse events.
static int KEY_LAST
          The last number in the range of ids used for mouse events.
static int KEY_PRESSED
          The "key pressed" event.
static int KEY_RELEASED
          The "key released" event.
static int KEY_TYPED
          The "key typed" event.
static int VK_0
          VK_0 thru VK_9 are the same as ASCII '0' thru '9' (0x30 - 0x39).
static int VK_1
          VK_0 thru VK_9 are the same as ASCII '0' thru '9' (0x30 - 0x39).
static int VK_2
          VK_0 thru VK_9 are the same as ASCII '0' thru '9' (0x30 - 0x39).
static int VK_3
          VK_0 thru VK_9 are the same as ASCII '0' thru '9' (0x30 - 0x39).
static int VK_4
          VK_0 thru VK_9 are the same as ASCII '0' thru '9' (0x30 - 0x39).
static int VK_5
          VK_0 thru VK_9 are the same as ASCII '0' thru '9' (0x30 - 0x39).
static int VK_6
          VK_0 thru VK_9 are the same as ASCII '0' thru '9' (0x30 - 0x39).
static int VK_7
          VK_0 thru VK_9 are the same as ASCII '0' thru '9' (0x30 - 0x39).
static int VK_8
          VK_0 thru VK_9 are the same as ASCII '0' thru '9' (0x30 - 0x39).
static int VK_9
          VK_0 thru VK_9 are the same as ASCII '0' thru '9' (0x30 - 0x39).
static int VK_A
          VK_A thru VK_Z are the same as ASCII 'A' thru 'Z' (0x41 - 0x5A).
static int VK_ACCEPT
          Constant for the Accept or Commit function key.
static int VK_ADD
          Constant for the Numpad key.
static int VK_AGAIN
          for Sun keyboards.
static int VK_ALL_CANDIDATES
          Constant for the All Candidates function key.
static int VK_ALPHANUMERIC
          Constant for the Alphanumeric function key.
static int VK_ALT
          Virtual key codes.
static int VK_ALT_GRAPH
          Constant for the AltGraph function key.
static int VK_AMPERSAND
          For European keyboards.
static int VK_ASTERISK
          For European keyboards.
static int VK_AT
          Constant for the "@" key.
static int VK_B
          VK_A thru VK_Z are the same as ASCII 'A' thru 'Z' (0x41 - 0x5A).
static int VK_BACK_QUOTE
          F13 - F24 are used on IBM 3270 keyboard; use random range for constants.
static int VK_BACK_SLASH
          Constant for the back slash key, "\".
static int VK_BACK_SPACE
          Virtual key codes.
static int VK_BEGIN
          Constant for the Begin key.
static int VK_BRACELEFT
          For European keyboards.
static int VK_BRACERIGHT
          For European keyboards.
static int VK_C
          VK_A thru VK_Z are the same as ASCII 'A' thru 'Z' (0x41 - 0x5A).
static int VK_CANCEL
          Virtual key codes.
static int VK_CAPS_LOCK
          Virtual key codes.
static int VK_CIRCUMFLEX
          Constant for the "^" key.
static int VK_CLEAR
          Virtual key codes.
static int VK_CLOSE_BRACKET
          Constant for the close bracket key, "]".
static int VK_CODE_INPUT
          Constant for the Code Input function key.
static int VK_COLON
          Constant for the ":" key.
static int VK_COMMA
          Constant for the comma key, ",".
static int VK_COMPOSE
          Constant for the Compose function key.
static int VK_CONTEXT_MENU
          Constant for the Microsoft Windows Context Menu key.
static int VK_CONTROL
          Virtual key codes.
static int VK_CONVERT
          Constant for the Convert function key.
static int VK_COPY
          for Sun keyboards.
static int VK_CUT
          for Sun keyboards.
static int VK_D
          VK_A thru VK_Z are the same as ASCII 'A' thru 'Z' (0x41 - 0x5A).
static int VK_DEAD_ABOVEDOT
          For European keyboards.
static int VK_DEAD_ABOVERING
          For European keyboards.
static int VK_DEAD_ACUTE
          For European keyboards.
static int VK_DEAD_BREVE
          For European keyboards.
static int VK_DEAD_CARON
          For European keyboards.
static int VK_DEAD_CEDILLA
          For European keyboards.
static int VK_DEAD_CIRCUMFLEX
          For European keyboards.
static int VK_DEAD_DIAERESIS
          For European keyboards.
static int VK_DEAD_DOUBLEACUTE
          For European keyboards.
static int VK_DEAD_GRAVE
          For European keyboards.
static int VK_DEAD_IOTA
          For European keyboards.
static int VK_DEAD_MACRON
          For European keyboards.
static int VK_DEAD_OGONEK
          For European keyboards.
static int VK_DEAD_SEMIVOICED_SOUND
          For European keyboards.
static int VK_DEAD_TILDE
          For European keyboards.
static int VK_DEAD_VOICED_SOUND
          For European keyboards.
static int VK_DECIMAL
          Constant for the Numpad key.
static int VK_DELETE
          Constant for the Numpad key.
static int VK_DIVIDE
          Constant for the Numpad key.
static int VK_DOLLAR
          Constant for the "$" key.
static int VK_DOWN
          Constant for the non-numpad down arrow key.
static int VK_E
          VK_A thru VK_Z are the same as ASCII 'A' thru 'Z' (0x41 - 0x5A).
static int VK_END
          Virtual key codes.
static int VK_ENTER
          Virtual key codes.
static int VK_EQUALS
          Constant for the equals key, "=".
static int VK_ESCAPE
          Virtual key codes.
static int VK_EURO_SIGN
          Constant for the Euro currency sign key.
static int VK_EXCLAMATION_MARK
          Constant for the "!"
static int VK_F
          VK_A thru VK_Z are the same as ASCII 'A' thru 'Z' (0x41 - 0x5A).
static int VK_F1
          Constant for the function key.
static int VK_F10
          Constant for the function key.
static int VK_F11
          Constant for the function key.
static int VK_F12
          Constant for the function key.
static int VK_F13
          F13 - F24 are used on IBM 3270 keyboard; use random range for constants.
static int VK_F14
          F13 - F24 are used on IBM 3270 keyboard; use random range for constants.
static int VK_F15
          F13 - F24 are used on IBM 3270 keyboard; use random range for constants.
static int VK_F16
          F13 - F24 are used on IBM 3270 keyboard; use random range for constants.
static int VK_F17
          F13 - F24 are used on IBM 3270 keyboard; use random range for constants.
static int VK_F18
          F13 - F24 are used on IBM 3270 keyboard; use random range for constants.
static int VK_F19
          F13 - F24 are used on IBM 3270 keyboard; use random range for constants.
static int VK_F2
          Constant for the function key.
static int VK_F20
          F13 - F24 are used on IBM 3270 keyboard; use random range for constants.
static int VK_F21
          F13 - F24 are used on IBM 3270 keyboard; use random range for constants.
static int VK_F22
          F13 - F24 are used on IBM 3270 keyboard; use random range for constants.
static int VK_F23
          F13 - F24 are used on IBM 3270 keyboard; use random range for constants.
static int VK_F24
          F13 - F24 are used on IBM 3270 keyboard; use random range for constants.
static int VK_F3
          Constant for the function key.
static int VK_F4
          Constant for the function key.
static int VK_F5
          Constant for the function key.
static int VK_F6
          Constant for the function key.
static int VK_F7
          Constant for the function key.
static int VK_F8
          Constant for the function key.
static int VK_F9
          Constant for the function key.
static int VK_FINAL
          not clear what this means - listed in Microsoft Windows API.
static int VK_FIND
          for Sun keyboards.
static int VK_FULL_WIDTH
          Constant for the Full-Width Characters function key.
static int VK_G
          VK_A thru VK_Z are the same as ASCII 'A' thru 'Z' (0x41 - 0x5A).
static int VK_GREATER
          For European keyboards.
static int VK_H
          VK_A thru VK_Z are the same as ASCII 'A' thru 'Z' (0x41 - 0x5A).
static int VK_HALF_WIDTH
          Constant for the Half-Width Characters function key.
static int VK_HELP
          F13 - F24 are used on IBM 3270 keyboard; use random range for constants.
static int VK_HIRAGANA
          Constant for the Hiragana function key.
static int VK_HOME
          Virtual key codes.
static int VK_I
          VK_A thru VK_Z are the same as ASCII 'A' thru 'Z' (0x41 - 0x5A).
static int VK_INPUT_METHOD_ON_OFF
          Constant for the input method on/off key.
static int VK_INSERT
          F13 - F24 are used on IBM 3270 keyboard; use random range for constants.
static int VK_INVERTED_EXCLAMATION_MARK
          Constant for the inverted exclamation mark key.
static int VK_J
          VK_A thru VK_Z are the same as ASCII 'A' thru 'Z' (0x41 - 0x5A).
static int VK_JAPANESE_HIRAGANA
          Constant for the Japanese-Hiragana function key.
static int VK_JAPANESE_KATAKANA
          Constant for the Japanese-Katakana function key.
static int VK_JAPANESE_ROMAN
          Constant for the Japanese-Roman function key.
static int VK_K
          VK_A thru VK_Z are the same as ASCII 'A' thru 'Z' (0x41 - 0x5A).
static int VK_KANA
          replaced by VK_KANA_LOCK for Microsoft Windows and Solaris; might still be used on other platforms.
static int VK_KANA_LOCK
          Constant for the locking Kana function key.
static int VK_KANJI
          replaced by VK_INPUT_METHOD_ON_OFF for Microsoft Windows and Solaris; might still be used for other platforms.
static int VK_KATAKANA
          Constant for the Katakana function key.
static int VK_KP_DOWN
          Constant for the numeric keypad down arrow key.
static int VK_KP_LEFT
          Constant for the numeric keypad left arrow key.
static int VK_KP_RIGHT
          Constant for the numeric keypad right arrow key.
static int VK_KP_UP
          Constant for the numeric keypad up arrow key.
static int VK_L
          VK_A thru VK_Z are the same as ASCII 'A' thru 'Z' (0x41 - 0x5A).
static int VK_LEFT
          Constant for the non-numpad left arrow key.
static int VK_LEFT_PARENTHESIS
          Constant for the "(" key.
static int VK_LESS
          For European keyboards.
static int VK_M
          VK_A thru VK_Z are the same as ASCII 'A' thru 'Z' (0x41 - 0x5A).
static int VK_META
          F13 - F24 are used on IBM 3270 keyboard; use random range for constants.
static int VK_MINUS
          Constant for the minus key, "-".
static int VK_MODECHANGE
          not clear what this means - listed in Microsoft Windows API.
static int VK_MULTIPLY
          Constant for the Numpad key.
static int VK_N
          VK_A thru VK_Z are the same as ASCII 'A' thru 'Z' (0x41 - 0x5A).
static int VK_NONCONVERT
          Constant for the Don't Convert function key.
static int VK_NUM_LOCK
          Constant for the Numpad key.
static int VK_NUMBER_SIGN
          Constant for the "#" key.
static int VK_NUMPAD0
          Constant for the Numpad key.
static int VK_NUMPAD1
          Constant for the Numpad key.
static int VK_NUMPAD2
          Constant for the Numpad key.
static int VK_NUMPAD3
          Constant for the Numpad key.
static int VK_NUMPAD4
          Constant for the Numpad key.
static int VK_NUMPAD5
          Constant for the Numpad key.
static int VK_NUMPAD6
          Constant for the Numpad key.
static int VK_NUMPAD7
          Constant for the Numpad key.
static int VK_NUMPAD8
          Constant for the Numpad key.
static int VK_NUMPAD9
          Constant for the Numpad key.
static int VK_O
          VK_A thru VK_Z are the same as ASCII 'A' thru 'Z' (0x41 - 0x5A).
static int VK_OPEN_BRACKET
          Constant for the open bracket key, "[".
static int VK_P
          VK_A thru VK_Z are the same as ASCII 'A' thru 'Z' (0x41 - 0x5A).
static int VK_PAGE_DOWN
          Virtual key codes.
static int VK_PAGE_UP
          Virtual key codes.
static int VK_PASTE
          for Sun keyboards.
static int VK_PAUSE
          Virtual key codes.
static int VK_PERIOD
          Constant for the period key, ".".
static int VK_PLUS
          Constant for the "+" key.
static int VK_PREVIOUS_CANDIDATE
          Constant for the Previous Candidate function key.
static int VK_PRINTSCREEN
          F13 - F24 are used on IBM 3270 keyboard; use random range for constants.
static int VK_PROPS
          for Sun keyboards.
static int VK_Q
          VK_A thru VK_Z are the same as ASCII 'A' thru 'Z' (0x41 - 0x5A).
static int VK_QUOTE
          F13 - F24 are used on IBM 3270 keyboard; use random range for constants.
static int VK_QUOTEDBL
          For European keyboards.
static int VK_R
          VK_A thru VK_Z are the same as ASCII 'A' thru 'Z' (0x41 - 0x5A).
static int VK_RIGHT
          Constant for the non-numpad right arrow key.
static int VK_RIGHT_PARENTHESIS
          Constant for the ")" key.
static int VK_ROMAN_CHARACTERS
          Constant for the Roman Characters function key.
static int VK_S
          VK_A thru VK_Z are the same as ASCII 'A' thru 'Z' (0x41 - 0x5A).
static int VK_SCROLL_LOCK
          Constant for the Numpad key.
static int VK_SEMICOLON
          Constant for the semicolon key, ";".
static int VK_SEPARATOR
          Constant for the Numpad key.
static int VK_SHIFT
          Virtual key codes.
static int VK_SLASH
          Constant for the forward slash key, "/".
static int VK_SPACE
          Virtual key codes.
static int VK_STOP
          for Sun keyboards.
static int VK_SUBTRACT
          Constant for the Numpad key.
static int VK_T
          VK_A thru VK_Z are the same as ASCII 'A' thru 'Z' (0x41 - 0x5A).
static int VK_TAB
          Virtual key codes.
static int VK_U
          VK_A thru VK_Z are the same as ASCII 'A' thru 'Z' (0x41 - 0x5A).
static int VK_UNDEFINED
          This value is used to indicate that the keyCode is unknown.
static int VK_UNDERSCORE
          Constant for the "_" key.
static int VK_UNDO
          for Sun keyboards.
static int VK_UP
          Constant for the non-numpad up arrow key.
static int VK_V
          VK_A thru VK_Z are the same as ASCII 'A' thru 'Z' (0x41 - 0x5A).
static int VK_W
          VK_A thru VK_Z are the same as ASCII 'A' thru 'Z' (0x41 - 0x5A).
static int VK_WINDOWS
          Constant for the Microsoft Windows "Windows" key.
static int VK_X
          VK_A thru VK_Z are the same as ASCII 'A' thru 'Z' (0x41 - 0x5A).
static int VK_Y
          VK_A thru VK_Z are the same as ASCII 'A' thru 'Z' (0x41 - 0x5A).
static int VK_Z
          VK_A thru VK_Z are the same as ASCII 'A' thru 'Z' (0x41 - 0x5A).
 
Fields inherited from class javax.rad.ui.event.UIEvent
ALT_GRAPH_MASK, ALT_MASK, BUTTON1_MASK, BUTTON2_MASK, BUTTON3_MASK, CTRL_MASK, META_MASK, SHIFT_MASK
 
Constructor Summary
UIKeyEvent(IComponent pSource, int pId, long pWhen, int pModifiers, int pKeyCode, char pKeyChar)
          Creates a new instance of UIKeyEvent.
 
Method Summary
protected  void checkId(int pId)
          Checks if the current Instance of UIEvent allows the given id.
 char getKeyChar()
          Returns the character associated with the key in this event.
 int getKeyCode()
          Returns the integer keyCode associated with the key in this event.
 
Methods inherited from class javax.rad.ui.event.UIEvent
getId, getModifiers, getSource, getWhen, isModifier
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

KEY_FIRST

public static final int KEY_FIRST
The first number in the range of ids used for mouse events.

See Also:
Constant Field Values

KEY_TYPED

public static final int KEY_TYPED
The "key typed" event. This event is generated when a character is entered. In the simplest case, it is produced by a single key press. Often, however, characters are produced by series of key presses, and the mapping from key pressed events to key typed events may be many-to-one or many-to-many.

See Also:
Constant Field Values

KEY_PRESSED

public static final int KEY_PRESSED
The "key pressed" event. This event is generated when a key is pushed down.

See Also:
Constant Field Values

KEY_RELEASED

public static final int KEY_RELEASED
The "key released" event. This event is generated when a key is let up.

See Also:
Constant Field Values

KEY_LAST

public static final int KEY_LAST
The last number in the range of ids used for mouse events.

See Also:
Constant Field Values

VK_ENTER

public static final int VK_ENTER
Virtual key codes.

See Also:
Constant Field Values

VK_BACK_SPACE

public static final int VK_BACK_SPACE
Virtual key codes.

See Also:
Constant Field Values

VK_TAB

public static final int VK_TAB
Virtual key codes.

See Also:
Constant Field Values

VK_CANCEL

public static final int VK_CANCEL
Virtual key codes.

See Also:
Constant Field Values

VK_CLEAR

public static final int VK_CLEAR
Virtual key codes.

See Also:
Constant Field Values

VK_SHIFT

public static final int VK_SHIFT
Virtual key codes.

See Also:
Constant Field Values

VK_CONTROL

public static final int VK_CONTROL
Virtual key codes.

See Also:
Constant Field Values

VK_ALT

public static final int VK_ALT
Virtual key codes.

See Also:
Constant Field Values

VK_PAUSE

public static final int VK_PAUSE
Virtual key codes.

See Also:
Constant Field Values

VK_CAPS_LOCK

public static final int VK_CAPS_LOCK
Virtual key codes.

See Also:
Constant Field Values

VK_ESCAPE

public static final int VK_ESCAPE
Virtual key codes.

See Also:
Constant Field Values

VK_SPACE

public static final int VK_SPACE
Virtual key codes.

See Also:
Constant Field Values

VK_PAGE_UP

public static final int VK_PAGE_UP
Virtual key codes.

See Also:
Constant Field Values

VK_PAGE_DOWN

public static final int VK_PAGE_DOWN
Virtual key codes.

See Also:
Constant Field Values

VK_END

public static final int VK_END
Virtual key codes.

See Also:
Constant Field Values

VK_HOME

public static final int VK_HOME
Virtual key codes.

See Also:
Constant Field Values

VK_LEFT

public static final int VK_LEFT
Constant for the non-numpad left arrow key.

See Also:
Constant Field Values

VK_UP

public static final int VK_UP
Constant for the non-numpad up arrow key.

See Also:
Constant Field Values

VK_RIGHT

public static final int VK_RIGHT
Constant for the non-numpad right arrow key.

See Also:
Constant Field Values

VK_DOWN

public static final int VK_DOWN
Constant for the non-numpad down arrow key.

See Also:
Constant Field Values

VK_COMMA

public static final int VK_COMMA
Constant for the comma key, ",".

See Also:
Constant Field Values

VK_MINUS

public static final int VK_MINUS
Constant for the minus key, "-".

See Also:
Constant Field Values

VK_PERIOD

public static final int VK_PERIOD
Constant for the period key, ".".

See Also:
Constant Field Values

VK_SLASH

public static final int VK_SLASH
Constant for the forward slash key, "/".

See Also:
Constant Field Values

VK_0

public static final int VK_0
VK_0 thru VK_9 are the same as ASCII '0' thru '9' (0x30 - 0x39).

See Also:
Constant Field Values

VK_1

public static final int VK_1
VK_0 thru VK_9 are the same as ASCII '0' thru '9' (0x30 - 0x39).

See Also:
Constant Field Values

VK_2

public static final int VK_2
VK_0 thru VK_9 are the same as ASCII '0' thru '9' (0x30 - 0x39).

See Also:
Constant Field Values

VK_3

public static final int VK_3
VK_0 thru VK_9 are the same as ASCII '0' thru '9' (0x30 - 0x39).

See Also:
Constant Field Values

VK_4

public static final int VK_4
VK_0 thru VK_9 are the same as ASCII '0' thru '9' (0x30 - 0x39).

See Also:
Constant Field Values

VK_5

public static final int VK_5
VK_0 thru VK_9 are the same as ASCII '0' thru '9' (0x30 - 0x39).

See Also:
Constant Field Values

VK_6

public static final int VK_6
VK_0 thru VK_9 are the same as ASCII '0' thru '9' (0x30 - 0x39).

See Also:
Constant Field Values

VK_7

public static final int VK_7
VK_0 thru VK_9 are the same as ASCII '0' thru '9' (0x30 - 0x39).

See Also:
Constant Field Values

VK_8

public static final int VK_8
VK_0 thru VK_9 are the same as ASCII '0' thru '9' (0x30 - 0x39).

See Also:
Constant Field Values

VK_9

public static final int VK_9
VK_0 thru VK_9 are the same as ASCII '0' thru '9' (0x30 - 0x39).

See Also:
Constant Field Values

VK_SEMICOLON

public static final int VK_SEMICOLON
Constant for the semicolon key, ";".

See Also:
Constant Field Values

VK_EQUALS

public static final int VK_EQUALS
Constant for the equals key, "=".

See Also:
Constant Field Values

VK_A

public static final int VK_A
VK_A thru VK_Z are the same as ASCII 'A' thru 'Z' (0x41 - 0x5A).

See Also:
Constant Field Values

VK_B

public static final int VK_B
VK_A thru VK_Z are the same as ASCII 'A' thru 'Z' (0x41 - 0x5A).

See Also:
Constant Field Values

VK_C

public static final int VK_C
VK_A thru VK_Z are the same as ASCII 'A' thru 'Z' (0x41 - 0x5A).

See Also:
Constant Field Values

VK_D

public static final int VK_D
VK_A thru VK_Z are the same as ASCII 'A' thru 'Z' (0x41 - 0x5A).

See Also:
Constant Field Values

VK_E

public static final int VK_E
VK_A thru VK_Z are the same as ASCII 'A' thru 'Z' (0x41 - 0x5A).

See Also:
Constant Field Values

VK_F

public static final int VK_F
VK_A thru VK_Z are the same as ASCII 'A' thru 'Z' (0x41 - 0x5A).

See Also:
Constant Field Values

VK_G

public static final int VK_G
VK_A thru VK_Z are the same as ASCII 'A' thru 'Z' (0x41 - 0x5A).

See Also:
Constant Field Values

VK_H

public static final int VK_H
VK_A thru VK_Z are the same as ASCII 'A' thru 'Z' (0x41 - 0x5A).

See Also:
Constant Field Values

VK_I

public static final int VK_I
VK_A thru VK_Z are the same as ASCII 'A' thru 'Z' (0x41 - 0x5A).

See Also:
Constant Field Values

VK_J

public static final int VK_J
VK_A thru VK_Z are the same as ASCII 'A' thru 'Z' (0x41 - 0x5A).

See Also:
Constant Field Values

VK_K

public static final int VK_K
VK_A thru VK_Z are the same as ASCII 'A' thru 'Z' (0x41 - 0x5A).

See Also:
Constant Field Values

VK_L

public static final int VK_L
VK_A thru VK_Z are the same as ASCII 'A' thru 'Z' (0x41 - 0x5A).

See Also:
Constant Field Values

VK_M

public static final int VK_M
VK_A thru VK_Z are the same as ASCII 'A' thru 'Z' (0x41 - 0x5A).

See Also:
Constant Field Values

VK_N

public static final int VK_N
VK_A thru VK_Z are the same as ASCII 'A' thru 'Z' (0x41 - 0x5A).

See Also:
Constant Field Values

VK_O

public static final int VK_O
VK_A thru VK_Z are the same as ASCII 'A' thru 'Z' (0x41 - 0x5A).

See Also:
Constant Field Values

VK_P

public static final int VK_P
VK_A thru VK_Z are the same as ASCII 'A' thru 'Z' (0x41 - 0x5A).

See Also:
Constant Field Values

VK_Q

public static final int VK_Q
VK_A thru VK_Z are the same as ASCII 'A' thru 'Z' (0x41 - 0x5A).

See Also:
Constant Field Values

VK_R

public static final int VK_R
VK_A thru VK_Z are the same as ASCII 'A' thru 'Z' (0x41 - 0x5A).

See Also:
Constant Field Values

VK_S

public static final int VK_S
VK_A thru VK_Z are the same as ASCII 'A' thru 'Z' (0x41 - 0x5A).

See Also:
Constant Field Values

VK_T

public static final int VK_T
VK_A thru VK_Z are the same as ASCII 'A' thru 'Z' (0x41 - 0x5A).

See Also:
Constant Field Values

VK_U

public static final int VK_U
VK_A thru VK_Z are the same as ASCII 'A' thru 'Z' (0x41 - 0x5A).

See Also:
Constant Field Values

VK_V

public static final int VK_V
VK_A thru VK_Z are the same as ASCII 'A' thru 'Z' (0x41 - 0x5A).

See Also:
Constant Field Values

VK_W

public static final int VK_W
VK_A thru VK_Z are the same as ASCII 'A' thru 'Z' (0x41 - 0x5A).

See Also:
Constant Field Values

VK_X

public static final int VK_X
VK_A thru VK_Z are the same as ASCII 'A' thru 'Z' (0x41 - 0x5A).

See Also:
Constant Field Values

VK_Y

public static final int VK_Y
VK_A thru VK_Z are the same as ASCII 'A' thru 'Z' (0x41 - 0x5A).

See Also:
Constant Field Values

VK_Z

public static final int VK_Z
VK_A thru VK_Z are the same as ASCII 'A' thru 'Z' (0x41 - 0x5A).

See Also:
Constant Field Values

VK_OPEN_BRACKET

public static final int VK_OPEN_BRACKET
Constant for the open bracket key, "[".

See Also:
Constant Field Values

VK_BACK_SLASH

public static final int VK_BACK_SLASH
Constant for the back slash key, "\".

See Also:
Constant Field Values

VK_CLOSE_BRACKET

public static final int VK_CLOSE_BRACKET
Constant for the close bracket key, "]".

See Also:
Constant Field Values

VK_NUMPAD0

public static final int VK_NUMPAD0
Constant for the Numpad key.

See Also:
Constant Field Values

VK_NUMPAD1

public static final int VK_NUMPAD1
Constant for the Numpad key.

See Also:
Constant Field Values

VK_NUMPAD2

public static final int VK_NUMPAD2
Constant for the Numpad key.

See Also:
Constant Field Values

VK_NUMPAD3

public static final int VK_NUMPAD3
Constant for the Numpad key.

See Also:
Constant Field Values

VK_NUMPAD4

public static final int VK_NUMPAD4
Constant for the Numpad key.

See Also:
Constant Field Values

VK_NUMPAD5

public static final int VK_NUMPAD5
Constant for the Numpad key.

See Also:
Constant Field Values

VK_NUMPAD6

public static final int VK_NUMPAD6
Constant for the Numpad key.

See Also:
Constant Field Values

VK_NUMPAD7

public static final int VK_NUMPAD7
Constant for the Numpad key.

See Also:
Constant Field Values

VK_NUMPAD8

public static final int VK_NUMPAD8
Constant for the Numpad key.

See Also:
Constant Field Values

VK_NUMPAD9

public static final int VK_NUMPAD9
Constant for the Numpad key.

See Also:
Constant Field Values

VK_MULTIPLY

public static final int VK_MULTIPLY
Constant for the Numpad key.

See Also:
Constant Field Values

VK_ADD

public static final int VK_ADD
Constant for the Numpad key.

See Also:
Constant Field Values

VK_SEPARATOR

public static final int VK_SEPARATOR
Constant for the Numpad key.

See Also:
Constant Field Values

VK_SUBTRACT

public static final int VK_SUBTRACT
Constant for the Numpad key.

See Also:
Constant Field Values

VK_DECIMAL

public static final int VK_DECIMAL
Constant for the Numpad key.

See Also:
Constant Field Values

VK_DIVIDE

public static final int VK_DIVIDE
Constant for the Numpad key.

See Also:
Constant Field Values

VK_DELETE

public static final int VK_DELETE
Constant for the Numpad key.

See Also:
Constant Field Values

VK_NUM_LOCK

public static final int VK_NUM_LOCK
Constant for the Numpad key.

See Also:
Constant Field Values

VK_SCROLL_LOCK

public static final int VK_SCROLL_LOCK
Constant for the Numpad key.

See Also:
Constant Field Values

VK_F1

public static final int VK_F1
Constant for the function key.

See Also:
Constant Field Values

VK_F2

public static final int VK_F2
Constant for the function key.

See Also:
Constant Field Values

VK_F3

public static final int VK_F3
Constant for the function key.

See Also:
Constant Field Values

VK_F4

public static final int VK_F4
Constant for the function key.

See Also:
Constant Field Values

VK_F5

public static final int VK_F5
Constant for the function key.

See Also:
Constant Field Values

VK_F6

public static final int VK_F6
Constant for the function key.

See Also:
Constant Field Values

VK_F7

public static final int VK_F7
Constant for the function key.

See Also:
Constant Field Values

VK_F8

public static final int VK_F8
Constant for the function key.

See Also:
Constant Field Values

VK_F9

public static final int VK_F9
Constant for the function key.

See Also:
Constant Field Values

VK_F10

public static final int VK_F10
Constant for the function key.

See Also:
Constant Field Values

VK_F11

public static final int VK_F11
Constant for the function key.

See Also:
Constant Field Values

VK_F12

public static final int VK_F12
Constant for the function key.

See Also:
Constant Field Values

VK_F13

public static final int VK_F13
F13 - F24 are used on IBM 3270 keyboard; use random range for constants.

See Also:
Constant Field Values

VK_F14

public static final int VK_F14
F13 - F24 are used on IBM 3270 keyboard; use random range for constants.

See Also:
Constant Field Values

VK_F15

public static final int VK_F15
F13 - F24 are used on IBM 3270 keyboard; use random range for constants.

See Also:
Constant Field Values

VK_F16

public static final int VK_F16
F13 - F24 are used on IBM 3270 keyboard; use random range for constants.

See Also:
Constant Field Values

VK_F17

public static final int VK_F17
F13 - F24 are used on IBM 3270 keyboard; use random range for constants.

See Also:
Constant Field Values

VK_F18

public static final int VK_F18
F13 - F24 are used on IBM 3270 keyboard; use random range for constants.

See Also:
Constant Field Values

VK_F19

public static final int VK_F19
F13 - F24 are used on IBM 3270 keyboard; use random range for constants.

See Also:
Constant Field Values

VK_F20

public static final int VK_F20
F13 - F24 are used on IBM 3270 keyboard; use random range for constants.

See Also:
Constant Field Values

VK_F21

public static final int VK_F21
F13 - F24 are used on IBM 3270 keyboard; use random range for constants.

See Also:
Constant Field Values

VK_F22

public static final int VK_F22
F13 - F24 are used on IBM 3270 keyboard; use random range for constants.

See Also:
Constant Field Values

VK_F23

public static final int VK_F23
F13 - F24 are used on IBM 3270 keyboard; use random range for constants.

See Also:
Constant Field Values

VK_F24

public static final int VK_F24
F13 - F24 are used on IBM 3270 keyboard; use random range for constants.

See Also:
Constant Field Values

VK_PRINTSCREEN

public static final int VK_PRINTSCREEN
F13 - F24 are used on IBM 3270 keyboard; use random range for constants.

See Also:
Constant Field Values

VK_INSERT

public static final int VK_INSERT
F13 - F24 are used on IBM 3270 keyboard; use random range for constants.

See Also:
Constant Field Values

VK_HELP

public static final int VK_HELP
F13 - F24 are used on IBM 3270 keyboard; use random range for constants.

See Also:
Constant Field Values

VK_META

public static final int VK_META
F13 - F24 are used on IBM 3270 keyboard; use random range for constants.

See Also:
Constant Field Values

VK_BACK_QUOTE

public static final int VK_BACK_QUOTE
F13 - F24 are used on IBM 3270 keyboard; use random range for constants.

See Also:
Constant Field Values

VK_QUOTE

public static final int VK_QUOTE
F13 - F24 are used on IBM 3270 keyboard; use random range for constants.

See Also:
Constant Field Values

VK_KP_UP

public static final int VK_KP_UP
Constant for the numeric keypad up arrow key.

See Also:
Constant Field Values

VK_KP_DOWN

public static final int VK_KP_DOWN
Constant for the numeric keypad down arrow key.

See Also:
Constant Field Values

VK_KP_LEFT

public static final int VK_KP_LEFT
Constant for the numeric keypad left arrow key.

See Also:
Constant Field Values

VK_KP_RIGHT

public static final int VK_KP_RIGHT
Constant for the numeric keypad right arrow key.

See Also:
Constant Field Values

VK_DEAD_GRAVE

public static final int VK_DEAD_GRAVE
For European keyboards.

See Also:
Constant Field Values

VK_DEAD_ACUTE

public static final int VK_DEAD_ACUTE
For European keyboards.

See Also:
Constant Field Values

VK_DEAD_CIRCUMFLEX

public static final int VK_DEAD_CIRCUMFLEX
For European keyboards.

See Also:
Constant Field Values

VK_DEAD_TILDE

public static final int VK_DEAD_TILDE
For European keyboards.

See Also:
Constant Field Values

VK_DEAD_MACRON

public static final int VK_DEAD_MACRON
For European keyboards.

See Also:
Constant Field Values

VK_DEAD_BREVE

public static final int VK_DEAD_BREVE
For European keyboards.

See Also:
Constant Field Values

VK_DEAD_ABOVEDOT

public static final int VK_DEAD_ABOVEDOT
For European keyboards.

See Also:
Constant Field Values

VK_DEAD_DIAERESIS

public static final int VK_DEAD_DIAERESIS
For European keyboards.

See Also:
Constant Field Values

VK_DEAD_ABOVERING

public static final int VK_DEAD_ABOVERING
For European keyboards.

See Also:
Constant Field Values

VK_DEAD_DOUBLEACUTE

public static final int VK_DEAD_DOUBLEACUTE
For European keyboards.

See Also:
Constant Field Values

VK_DEAD_CARON

public static final int VK_DEAD_CARON
For European keyboards.

See Also:
Constant Field Values

VK_DEAD_CEDILLA

public static final int VK_DEAD_CEDILLA
For European keyboards.

See Also:
Constant Field Values

VK_DEAD_OGONEK

public static final int VK_DEAD_OGONEK
For European keyboards.

See Also:
Constant Field Values

VK_DEAD_IOTA

public static final int VK_DEAD_IOTA
For European keyboards.

See Also:
Constant Field Values

VK_DEAD_VOICED_SOUND

public static final int VK_DEAD_VOICED_SOUND
For European keyboards.

See Also:
Constant Field Values

VK_DEAD_SEMIVOICED_SOUND

public static final int VK_DEAD_SEMIVOICED_SOUND
For European keyboards.

See Also:
Constant Field Values

VK_AMPERSAND

public static final int VK_AMPERSAND
For European keyboards.

See Also:
Constant Field Values

VK_ASTERISK

public static final int VK_ASTERISK
For European keyboards.

See Also:
Constant Field Values

VK_QUOTEDBL

public static final int VK_QUOTEDBL
For European keyboards.

See Also:
Constant Field Values

VK_LESS

public static final int VK_LESS
For European keyboards.

See Also:
Constant Field Values

VK_GREATER

public static final int VK_GREATER
For European keyboards.

See Also:
Constant Field Values

VK_BRACELEFT

public static final int VK_BRACELEFT
For European keyboards.

See Also:
Constant Field Values

VK_BRACERIGHT

public static final int VK_BRACERIGHT
For European keyboards.

See Also:
Constant Field Values

VK_AT

public static final int VK_AT
Constant for the "@" key.

See Also:
Constant Field Values

VK_COLON

public static final int VK_COLON
Constant for the ":" key.

See Also:
Constant Field Values

VK_CIRCUMFLEX

public static final int VK_CIRCUMFLEX
Constant for the "^" key.

See Also:
Constant Field Values

VK_DOLLAR

public static final int VK_DOLLAR
Constant for the "$" key.

See Also:
Constant Field Values

VK_EURO_SIGN

public static final int VK_EURO_SIGN
Constant for the Euro currency sign key.

See Also:
Constant Field Values

VK_EXCLAMATION_MARK

public static final int VK_EXCLAMATION_MARK
Constant for the "!" key.

See Also:
Constant Field Values

VK_INVERTED_EXCLAMATION_MARK

public static final int VK_INVERTED_EXCLAMATION_MARK
Constant for the inverted exclamation mark key.

See Also:
Constant Field Values

VK_LEFT_PARENTHESIS

public static final int VK_LEFT_PARENTHESIS
Constant for the "(" key.

See Also:
Constant Field Values

VK_NUMBER_SIGN

public static final int VK_NUMBER_SIGN
Constant for the "#" key.

See Also:
Constant Field Values

VK_PLUS

public static final int VK_PLUS
Constant for the "+" key.

See Also:
Constant Field Values

VK_RIGHT_PARENTHESIS

public static final int VK_RIGHT_PARENTHESIS
Constant for the ")" key.

See Also:
Constant Field Values

VK_UNDERSCORE

public static final int VK_UNDERSCORE
Constant for the "_" key.

See Also:
Constant Field Values

VK_WINDOWS

public static final int VK_WINDOWS
Constant for the Microsoft Windows "Windows" key. It is used for both the left and right version of the key.

See Also:
Constant Field Values

VK_CONTEXT_MENU

public static final int VK_CONTEXT_MENU
Constant for the Microsoft Windows Context Menu key.

See Also:
Constant Field Values

VK_FINAL

public static final int VK_FINAL
not clear what this means - listed in Microsoft Windows API.

See Also:
Constant Field Values

VK_CONVERT

public static final int VK_CONVERT
Constant for the Convert function key. Japanese PC 106 keyboard, Japanese Solaris keyboard: henkan

See Also:
Constant Field Values

VK_NONCONVERT

public static final int VK_NONCONVERT
Constant for the Don't Convert function key. Japanese PC 106 keyboard: muhenkan

See Also:
Constant Field Values

VK_ACCEPT

public static final int VK_ACCEPT
Constant for the Accept or Commit function key. Japanese Solaris keyboard: kakutei

See Also:
Constant Field Values

VK_MODECHANGE

public static final int VK_MODECHANGE
not clear what this means - listed in Microsoft Windows API.

See Also:
Constant Field Values

VK_KANA

public static final int VK_KANA
replaced by VK_KANA_LOCK for Microsoft Windows and Solaris; might still be used on other platforms.

See Also:
Constant Field Values

VK_KANJI

public static final int VK_KANJI
replaced by VK_INPUT_METHOD_ON_OFF for Microsoft Windows and Solaris; might still be used for other platforms.

See Also:
Constant Field Values

VK_ALPHANUMERIC

public static final int VK_ALPHANUMERIC
Constant for the Alphanumeric function key. Japanese PC 106 keyboard: eisuu

See Also:
Constant Field Values

VK_KATAKANA

public static final int VK_KATAKANA
Constant for the Katakana function key. Japanese PC 106 keyboard: katakana

See Also:
Constant Field Values

VK_HIRAGANA

public static final int VK_HIRAGANA
Constant for the Hiragana function key. Japanese PC 106 keyboard: hiragana

See Also:
Constant Field Values

VK_FULL_WIDTH

public static final int VK_FULL_WIDTH
Constant for the Full-Width Characters function key. Japanese PC 106 keyboard: zenkaku

See Also:
Constant Field Values

VK_HALF_WIDTH

public static final int VK_HALF_WIDTH
Constant for the Half-Width Characters function key. Japanese PC 106 keyboard: hankaku

See Also:
Constant Field Values

VK_ROMAN_CHARACTERS

public static final int VK_ROMAN_CHARACTERS
Constant for the Roman Characters function key. Japanese PC 106 keyboard: roumaji

See Also:
Constant Field Values

VK_ALL_CANDIDATES

public static final int VK_ALL_CANDIDATES
Constant for the All Candidates function key. Japanese PC 106 keyboard - VK_CONVERT + ALT: zenkouho

See Also:
Constant Field Values

VK_PREVIOUS_CANDIDATE

public static final int VK_PREVIOUS_CANDIDATE
Constant for the Previous Candidate function key. Japanese PC 106 keyboard - VK_CONVERT + SHIFT: maekouho

See Also:
Constant Field Values

VK_CODE_INPUT

public static final int VK_CODE_INPUT
Constant for the Code Input function key. Japanese PC 106 keyboard - VK_ALPHANUMERIC + ALT: kanji bangou

See Also:
Constant Field Values

VK_JAPANESE_KATAKANA

public static final int VK_JAPANESE_KATAKANA
Constant for the Japanese-Katakana function key. This key switches to a Japanese input method and selects its Katakana input mode. Japanese Macintosh keyboard - VK_JAPANESE_HIRAGANA + SHIFT

See Also:
Constant Field Values

VK_JAPANESE_HIRAGANA

public static final int VK_JAPANESE_HIRAGANA
Constant for the Japanese-Hiragana function key. This key switches to a Japanese input method and selects its Hiragana input mode. Japanese Macintosh keyboard

See Also:
Constant Field Values

VK_JAPANESE_ROMAN

public static final int VK_JAPANESE_ROMAN
Constant for the Japanese-Roman function key. This key switches to a Japanese input method and selects its Roman-Direct input mode. Japanese Macintosh keyboard

See Also:
Constant Field Values

VK_KANA_LOCK

public static final int VK_KANA_LOCK
Constant for the locking Kana function key. This key locks the keyboard into a Kana layout. Japanese PC 106 keyboard with special Windows driver - eisuu + Control; Japanese Solaris keyboard: kana

See Also:
Constant Field Values

VK_INPUT_METHOD_ON_OFF

public static final int VK_INPUT_METHOD_ON_OFF
Constant for the input method on/off key. Japanese PC 106 keyboard: kanji. Japanese Solaris keyboard: nihongo

See Also:
Constant Field Values

VK_CUT

public static final int VK_CUT
for Sun keyboards.

See Also:
Constant Field Values

VK_COPY

public static final int VK_COPY
for Sun keyboards.

See Also:
Constant Field Values

VK_PASTE

public static final int VK_PASTE
for Sun keyboards.

See Also:
Constant Field Values

VK_UNDO

public static final int VK_UNDO
for Sun keyboards.

See Also:
Constant Field Values

VK_AGAIN

public static final int VK_AGAIN
for Sun keyboards.

See Also:
Constant Field Values

VK_FIND

public static final int VK_FIND
for Sun keyboards.

See Also:
Constant Field Values

VK_PROPS

public static final int VK_PROPS
for Sun keyboards.

See Also:
Constant Field Values

VK_STOP

public static final int VK_STOP
for Sun keyboards.

See Also:
Constant Field Values

VK_COMPOSE

public static final int VK_COMPOSE
Constant for the Compose function key.

See Also:
Constant Field Values

VK_ALT_GRAPH

public static final int VK_ALT_GRAPH
Constant for the AltGraph function key.

See Also:
Constant Field Values

VK_BEGIN

public static final int VK_BEGIN
Constant for the Begin key.

See Also:
Constant Field Values

VK_UNDEFINED

public static final int VK_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.

See Also:
Constant Field Values

CHAR_UNDEFINED

public static final char CHAR_UNDEFINED
KEY_PRESSED and KEY_RELEASED events which do not map to a valid Unicode character use this for the keyChar value.

See Also:
Constant Field Values
Constructor Detail

UIKeyEvent

public UIKeyEvent(IComponent pSource,
                  int pId,
                  long pWhen,
                  int pModifiers,
                  int pKeyCode,
                  char pKeyChar)
Creates a new instance of UIKeyEvent.

Parameters:
pSource - the Source of this UIKeyEvent.
pId - the Id of this UIKeyEvent.
pWhen - the time the event occurred
pModifiers - represents the modifier keys and mouse buttons down while the event occurred
pKeyCode - the integer code for an actual key, or VK_UNDEFINED (for a key-typed event)
pKeyChar - the Unicode character generated by this event, or CHAR_UNDEFINED (for key-pressed and key-released events which do not map to a valid Unicode character)
Method Detail

checkId

protected void checkId(int pId)
Checks if the current Instance of UIEvent allows the given id.

Overrides:
checkId in class UIEvent
Parameters:
pId - the Id of this UIEvent.

getKeyCode

public int getKeyCode()
Returns the integer keyCode associated with the key in this event.

Returns:
the integer code for an actual key on the keyboard. (For KEY_TYPED events, the keyCode is VK_UNDEFINED.)

getKeyChar

public char getKeyChar()
Returns the character associated with the key in this event. For example, the KEY_TYPED event for shift + "a" returns the value for "A".

KEY_PRESSED and KEY_RELEASED events are not intended for reporting of character input. Therefore, the values returned by this method are guaranteed to be meaningful only for KEY_TYPED events.

Returns:
the Unicode character defined for this key event. If no valid Unicode character exists for this key event, CHAR_UNDEFINED is returned.


Copyright © 2009 SIB Visions GmbH. All Rights Reserved.