swingwt.awt.event
Class KeyEvent
java.lang.Object
java.util.EventObject
swingwt.awt.AWTEvent
swingwt.awt.event.ComponentEvent
swingwt.awt.event.InputEvent
swingwt.awt.event.KeyEvent
- All Implemented Interfaces:
- java.io.Serializable
- public class KeyEvent
- extends InputEvent
- implements java.io.Serializable
- See Also:
- Serialized Form
Fields inherited from class swingwt.awt.event.InputEvent |
ALT_DOWN_MASK, ALT_GRAPH_DOWN_MASK, ALT_GRAPH_MASK, ALT_MASK, BUTTON1_DOWN_MASK, BUTTON1_MASK, BUTTON2_DOWN_MASK, BUTTON2_MASK, BUTTON3_DOWN_MASK, BUTTON3_MASK, CTRL_DOWN_MASK, CTRL_MASK, META_DOWN_MASK, META_MASK, SHIFT_DOWN_MASK, SHIFT_MASK |
Fields inherited from class java.util.EventObject |
source |
Constructor Summary |
KeyEvent(Component source,
int id)
|
KeyEvent(Component source,
int id,
long when,
int modifiers,
int keyCode)
|
KeyEvent(Component source,
int id,
long when,
int modifiers,
int keyCode,
char keyChar)
|
KeyEvent(Component source,
int id,
long when,
int modifiers,
int keyCode,
char keyChar,
int keyLocation)
|
Method Summary |
char |
getKeyChar()
Getter for property keyChar. |
int |
getKeyCode()
Getter for property keyCode. |
void |
setKeyChar(char keyChar)
Setter for property keyChar. |
void |
setKeyCode(int keyCode)
Setter for property keyCode. |
void |
setModifiers(int modifiers)
Setter for property modifiers. |
static int |
translateAWTKey(int awtKey)
Returns the SWT key code for an AWT key |
static int |
translateSWTKey(int swtKey)
Returns the AWT key code for an SWT key |
Methods inherited from class java.util.EventObject |
getSource, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
eventID
public int eventID
KEY_FIRST
public static final int KEY_FIRST
- See Also:
- Constant Field Values
KEY_LAST
public static final int KEY_LAST
- See Also:
- Constant Field Values
KEY_TYPED
public static final int KEY_TYPED
- See Also:
- Constant Field Values
KEY_PRESSED
public static final int KEY_PRESSED
- See Also:
- Constant Field Values
KEY_RELEASED
public static final int KEY_RELEASED
- See Also:
- Constant Field Values
TYPED
public static final int TYPED
- See Also:
- Constant Field Values
PRESSED
public static final int PRESSED
- See Also:
- Constant Field Values
RELEASED
public static final int RELEASED
- See Also:
- Constant Field Values
VK_ENTER
public static final int VK_ENTER
- See Also:
- Constant Field Values
VK_BACK_SPACE
public static final int VK_BACK_SPACE
- See Also:
- Constant Field Values
VK_TAB
public static final int VK_TAB
- See Also:
- Constant Field Values
VK_CANCEL
public static final int VK_CANCEL
- See Also:
- Constant Field Values
VK_CLEAR
public static final int VK_CLEAR
- See Also:
- Constant Field Values
VK_SHIFT
public static final int VK_SHIFT
- See Also:
- Constant Field Values
VK_CONTROL
public static final int VK_CONTROL
- See Also:
- Constant Field Values
VK_ALT
public static final int VK_ALT
- See Also:
- Constant Field Values
VK_PAUSE
public static final int VK_PAUSE
- See Also:
- Constant Field Values
VK_CAPS_LOCK
public static final int VK_CAPS_LOCK
- See Also:
- Constant Field Values
VK_ESCAPE
public static final int VK_ESCAPE
- See Also:
- Constant Field Values
VK_SPACE
public static final int VK_SPACE
- See Also:
- Constant Field Values
VK_PAGE_UP
public static final int VK_PAGE_UP
- See Also:
- Constant Field Values
VK_PAGE_DOWN
public static final int VK_PAGE_DOWN
- See Also:
- Constant Field Values
VK_END
public static final int VK_END
- See Also:
- Constant Field Values
VK_HOME
public static final int VK_HOME
- See Also:
- Constant Field Values
VK_LEFT
public static final int VK_LEFT
- See Also:
- Constant Field Values
VK_UP
public static final int VK_UP
- See Also:
- Constant Field Values
VK_RIGHT
public static final int VK_RIGHT
- See Also:
- Constant Field Values
VK_DOWN
public static final int VK_DOWN
- See Also:
- Constant Field Values
VK_COMMA
public static final int VK_COMMA
- See Also:
- Constant Field Values
VK_MINUS
public static final int VK_MINUS
- See Also:
- Constant Field Values
VK_PERIOD
public static final int VK_PERIOD
- See Also:
- Constant Field Values
VK_SLASH
public static final int VK_SLASH
- See Also:
- Constant Field Values
VK_0
public static final int VK_0
- See Also:
- Constant Field Values
VK_1
public static final int VK_1
- See Also:
- Constant Field Values
VK_2
public static final int VK_2
- See Also:
- Constant Field Values
VK_3
public static final int VK_3
- See Also:
- Constant Field Values
VK_4
public static final int VK_4
- See Also:
- Constant Field Values
VK_5
public static final int VK_5
- See Also:
- Constant Field Values
VK_6
public static final int VK_6
- See Also:
- Constant Field Values
VK_7
public static final int VK_7
- See Also:
- Constant Field Values
VK_8
public static final int VK_8
- See Also:
- Constant Field Values
VK_9
public static final int VK_9
- See Also:
- Constant Field Values
VK_SEMICOLON
public static final int VK_SEMICOLON
- See Also:
- Constant Field Values
VK_EQUALS
public static final int VK_EQUALS
- See Also:
- Constant Field Values
VK_A
public static final int VK_A
- See Also:
- Constant Field Values
VK_B
public static final int VK_B
- See Also:
- Constant Field Values
VK_C
public static final int VK_C
- See Also:
- Constant Field Values
VK_D
public static final int VK_D
- See Also:
- Constant Field Values
VK_E
public static final int VK_E
- See Also:
- Constant Field Values
VK_F
public static final int VK_F
- See Also:
- Constant Field Values
VK_G
public static final int VK_G
- See Also:
- Constant Field Values
VK_H
public static final int VK_H
- See Also:
- Constant Field Values
VK_I
public static final int VK_I
- See Also:
- Constant Field Values
VK_J
public static final int VK_J
- See Also:
- Constant Field Values
VK_K
public static final int VK_K
- See Also:
- Constant Field Values
VK_L
public static final int VK_L
- See Also:
- Constant Field Values
VK_M
public static final int VK_M
- See Also:
- Constant Field Values
VK_N
public static final int VK_N
- See Also:
- Constant Field Values
VK_O
public static final int VK_O
- See Also:
- Constant Field Values
VK_P
public static final int VK_P
- See Also:
- Constant Field Values
VK_Q
public static final int VK_Q
- See Also:
- Constant Field Values
VK_R
public static final int VK_R
- See Also:
- Constant Field Values
VK_S
public static final int VK_S
- See Also:
- Constant Field Values
VK_T
public static final int VK_T
- See Also:
- Constant Field Values
VK_U
public static final int VK_U
- See Also:
- Constant Field Values
VK_V
public static final int VK_V
- See Also:
- Constant Field Values
VK_W
public static final int VK_W
- See Also:
- Constant Field Values
VK_X
public static final int VK_X
- See Also:
- Constant Field Values
VK_Y
public static final int VK_Y
- See Also:
- Constant Field Values
VK_Z
public static final int VK_Z
- See Also:
- Constant Field Values
VK_OPEN_BRACKET
public static final int VK_OPEN_BRACKET
- See Also:
- Constant Field Values
VK_BACK_SLASH
public static final int VK_BACK_SLASH
- See Also:
- Constant Field Values
VK_CLOSE_BRACKET
public static final int VK_CLOSE_BRACKET
- See Also:
- Constant Field Values
VK_NUMPAD0
public static final int VK_NUMPAD0
- See Also:
- Constant Field Values
VK_NUMPAD1
public static final int VK_NUMPAD1
- See Also:
- Constant Field Values
VK_NUMPAD2
public static final int VK_NUMPAD2
- See Also:
- Constant Field Values
VK_NUMPAD3
public static final int VK_NUMPAD3
- See Also:
- Constant Field Values
VK_NUMPAD4
public static final int VK_NUMPAD4
- See Also:
- Constant Field Values
VK_NUMPAD5
public static final int VK_NUMPAD5
- See Also:
- Constant Field Values
VK_NUMPAD6
public static final int VK_NUMPAD6
- See Also:
- Constant Field Values
VK_NUMPAD7
public static final int VK_NUMPAD7
- See Also:
- Constant Field Values
VK_NUMPAD8
public static final int VK_NUMPAD8
- See Also:
- Constant Field Values
VK_NUMPAD9
public static final int VK_NUMPAD9
- See Also:
- Constant Field Values
VK_MULTIPLY
public static final int VK_MULTIPLY
- See Also:
- Constant Field Values
VK_ADD
public static final int VK_ADD
- See Also:
- Constant Field Values
VK_SEPARATOR
public static final int VK_SEPARATOR
- See Also:
- Constant Field Values
VK_SUBTRACT
public static final int VK_SUBTRACT
- See Also:
- Constant Field Values
VK_DECIMAL
public static final int VK_DECIMAL
- See Also:
- Constant Field Values
VK_DIVIDE
public static final int VK_DIVIDE
- See Also:
- Constant Field Values
VK_DELETE
public static final int VK_DELETE
- See Also:
- Constant Field Values
VK_NUM_LOCK
public static final int VK_NUM_LOCK
- See Also:
- Constant Field Values
VK_SCROLL_LOCK
public static final int VK_SCROLL_LOCK
- See Also:
- Constant Field Values
VK_F1
public static final int VK_F1
- See Also:
- Constant Field Values
VK_F2
public static final int VK_F2
- See Also:
- Constant Field Values
VK_F3
public static final int VK_F3
- See Also:
- Constant Field Values
VK_F4
public static final int VK_F4
- See Also:
- Constant Field Values
VK_F5
public static final int VK_F5
- See Also:
- Constant Field Values
VK_F6
public static final int VK_F6
- See Also:
- Constant Field Values
VK_F7
public static final int VK_F7
- See Also:
- Constant Field Values
VK_F8
public static final int VK_F8
- See Also:
- Constant Field Values
VK_F9
public static final int VK_F9
- See Also:
- Constant Field Values
VK_F10
public static final int VK_F10
- See Also:
- Constant Field Values
VK_F11
public static final int VK_F11
- See Also:
- Constant Field Values
VK_F12
public static final int VK_F12
- See Also:
- Constant Field Values
VK_PRINTSCREEN
public static final int VK_PRINTSCREEN
- See Also:
- Constant Field Values
VK_INSERT
public static final int VK_INSERT
- See Also:
- Constant Field Values
VK_HELP
public static final int VK_HELP
- See Also:
- Constant Field Values
VK_META
public static final int VK_META
- See Also:
- Constant Field Values
VK_BACK_QUOTE
public static final int VK_BACK_QUOTE
- See Also:
- Constant Field Values
VK_QUOTE
public static final int VK_QUOTE
- See Also:
- Constant Field Values
VK_KP_UP
public static final int VK_KP_UP
- See Also:
- Constant Field Values
VK_KP_DOWN
public static final int VK_KP_DOWN
- See Also:
- Constant Field Values
VK_KP_LEFT
public static final int VK_KP_LEFT
- See Also:
- Constant Field Values
VK_KP_RIGHT
public static final int VK_KP_RIGHT
- See Also:
- Constant Field Values
VK_AMPERSAND
public static final int VK_AMPERSAND
- See Also:
- Constant Field Values
VK_ASTERISK
public static final int VK_ASTERISK
- See Also:
- Constant Field Values
VK_QUOTEDBL
public static final int VK_QUOTEDBL
- See Also:
- Constant Field Values
VK_LESS
public static final int VK_LESS
- See Also:
- Constant Field Values
VK_GREATER
public static final int VK_GREATER
- See Also:
- Constant Field Values
VK_BRACELEFT
public static final int VK_BRACELEFT
- See Also:
- Constant Field Values
VK_BRACERIGHT
public static final int VK_BRACERIGHT
- See Also:
- Constant Field Values
VK_AT
public static final int VK_AT
- See Also:
- Constant Field Values
VK_COLON
public static final int VK_COLON
- See Also:
- Constant Field Values
VK_CIRCUMFLEX
public static final int VK_CIRCUMFLEX
- See Also:
- Constant Field Values
VK_DOLLAR
public static final int VK_DOLLAR
- See Also:
- Constant Field Values
VK_EURO_SIGN
public static final int VK_EURO_SIGN
- See Also:
- Constant Field Values
VK_EXCLAMATION_MARK
public static final int VK_EXCLAMATION_MARK
- See Also:
- Constant Field Values
VK_INVERTED_EXCLAMATION_MARK
public static final int VK_INVERTED_EXCLAMATION_MARK
- See Also:
- Constant Field Values
VK_LEFT_PARENTHESIS
public static final int VK_LEFT_PARENTHESIS
- See Also:
- Constant Field Values
VK_NUMBER_SIGN
public static final int VK_NUMBER_SIGN
- See Also:
- Constant Field Values
VK_PLUS
public static final int VK_PLUS
- See Also:
- Constant Field Values
VK_RIGHT_PARENTHESIS
public static final int VK_RIGHT_PARENTHESIS
- See Also:
- Constant Field Values
VK_UNDERSCORE
public static final int VK_UNDERSCORE
- See Also:
- Constant Field Values
SWTVK_A
public static final int SWTVK_A
- See Also:
- Constant Field Values
SWTVK_B
public static final int SWTVK_B
- See Also:
- Constant Field Values
SWTVK_C
public static final int SWTVK_C
- See Also:
- Constant Field Values
SWTVK_D
public static final int SWTVK_D
- See Also:
- Constant Field Values
SWTVK_E
public static final int SWTVK_E
- See Also:
- Constant Field Values
SWTVK_F
public static final int SWTVK_F
- See Also:
- Constant Field Values
SWTVK_G
public static final int SWTVK_G
- See Also:
- Constant Field Values
SWTVK_H
public static final int SWTVK_H
- See Also:
- Constant Field Values
SWTVK_I
public static final int SWTVK_I
- See Also:
- Constant Field Values
SWTVK_J
public static final int SWTVK_J
- See Also:
- Constant Field Values
SWTVK_K
public static final int SWTVK_K
- See Also:
- Constant Field Values
SWTVK_L
public static final int SWTVK_L
- See Also:
- Constant Field Values
SWTVK_M
public static final int SWTVK_M
- See Also:
- Constant Field Values
SWTVK_N
public static final int SWTVK_N
- See Also:
- Constant Field Values
SWTVK_O
public static final int SWTVK_O
- See Also:
- Constant Field Values
SWTVK_P
public static final int SWTVK_P
- See Also:
- Constant Field Values
SWTVK_Q
public static final int SWTVK_Q
- See Also:
- Constant Field Values
SWTVK_R
public static final int SWTVK_R
- See Also:
- Constant Field Values
SWTVK_S
public static final int SWTVK_S
- See Also:
- Constant Field Values
SWTVK_T
public static final int SWTVK_T
- See Also:
- Constant Field Values
SWTVK_U
public static final int SWTVK_U
- See Also:
- Constant Field Values
SWTVK_V
public static final int SWTVK_V
- See Also:
- Constant Field Values
SWTVK_W
public static final int SWTVK_W
- See Also:
- Constant Field Values
SWTVK_X
public static final int SWTVK_X
- See Also:
- Constant Field Values
SWTVK_Y
public static final int SWTVK_Y
- See Also:
- Constant Field Values
SWTVK_Z
public static final int SWTVK_Z
- See Also:
- Constant Field Values
SWTVK_SPACE
public static final int SWTVK_SPACE
- See Also:
- Constant Field Values
SWTVK_0
public static final int SWTVK_0
- See Also:
- Constant Field Values
SWTVK_1
public static final int SWTVK_1
- See Also:
- Constant Field Values
SWTVK_2
public static final int SWTVK_2
- See Also:
- Constant Field Values
SWTVK_3
public static final int SWTVK_3
- See Also:
- Constant Field Values
SWTVK_4
public static final int SWTVK_4
- See Also:
- Constant Field Values
SWTVK_5
public static final int SWTVK_5
- See Also:
- Constant Field Values
SWTVK_6
public static final int SWTVK_6
- See Also:
- Constant Field Values
SWTVK_7
public static final int SWTVK_7
- See Also:
- Constant Field Values
SWTVK_8
public static final int SWTVK_8
- See Also:
- Constant Field Values
SWTVK_9
public static final int SWTVK_9
- See Also:
- Constant Field Values
SWTVK_SEMICOLON
public static final int SWTVK_SEMICOLON
- See Also:
- Constant Field Values
SWTVK_EQUALS
public static final int SWTVK_EQUALS
- See Also:
- Constant Field Values
SWTVK_COMMA
public static final int SWTVK_COMMA
- See Also:
- Constant Field Values
SWTVK_MINUS
public static final int SWTVK_MINUS
- See Also:
- Constant Field Values
SWTVK_PERIOD
public static final int SWTVK_PERIOD
- See Also:
- Constant Field Values
SWTVK_SLASH
public static final int SWTVK_SLASH
- See Also:
- Constant Field Values
SWTVK_OPEN_BRACKET
public static final int SWTVK_OPEN_BRACKET
- See Also:
- Constant Field Values
SWTVK_BACK_SLASH
public static final int SWTVK_BACK_SLASH
- See Also:
- Constant Field Values
SWTVK_CLOSE_BRACKET
public static final int SWTVK_CLOSE_BRACKET
- See Also:
- Constant Field Values
SWTVK_UNDERSCORE
public static final int SWTVK_UNDERSCORE
- See Also:
- Constant Field Values
SWTVK_ADD
public static final int SWTVK_ADD
- See Also:
- Constant Field Values
SWTVK_PLUS
public static final int SWTVK_PLUS
- See Also:
- Constant Field Values
SWTVK_NUMBER_SIGN
public static final int SWTVK_NUMBER_SIGN
- See Also:
- Constant Field Values
SWTVK_MULTIPLY
public static final int SWTVK_MULTIPLY
- See Also:
- Constant Field Values
SWTVK_SUBTRACT
public static final int SWTVK_SUBTRACT
- See Also:
- Constant Field Values
SWTVK_DECIMAL
public static final int SWTVK_DECIMAL
- See Also:
- Constant Field Values
SWTVK_DIVIDE
public static final int SWTVK_DIVIDE
- See Also:
- Constant Field Values
SWTVK_BACK_QUOTE
public static final int SWTVK_BACK_QUOTE
- See Also:
- Constant Field Values
SWTVK_QUOTE
public static final int SWTVK_QUOTE
- See Also:
- Constant Field Values
SWTVK_AMPERSAND
public static final int SWTVK_AMPERSAND
- See Also:
- Constant Field Values
SWTVK_ASTERISK
public static final int SWTVK_ASTERISK
- See Also:
- Constant Field Values
SWTVK_QUOTEDBL
public static final int SWTVK_QUOTEDBL
- See Also:
- Constant Field Values
SWTVK_LESS
public static final int SWTVK_LESS
- See Also:
- Constant Field Values
SWTVK_GREATER
public static final int SWTVK_GREATER
- See Also:
- Constant Field Values
SWTVK_BRACELEFT
public static final int SWTVK_BRACELEFT
- See Also:
- Constant Field Values
SWTVK_BRACERIGHT
public static final int SWTVK_BRACERIGHT
- See Also:
- Constant Field Values
SWTVK_AT
public static final int SWTVK_AT
- See Also:
- Constant Field Values
SWTVK_CIRCUMFLEX
public static final int SWTVK_CIRCUMFLEX
- See Also:
- Constant Field Values
SWTVK_DOLLAR
public static final int SWTVK_DOLLAR
- See Also:
- Constant Field Values
SWTVK_EURO_SIGN
public static final int SWTVK_EURO_SIGN
- See Also:
- Constant Field Values
SWTVK_EXCLAMATION_MARK
public static final int SWTVK_EXCLAMATION_MARK
- See Also:
- Constant Field Values
SWTVK_INVERTED_EXCLAMATION_MARK
public static final int SWTVK_INVERTED_EXCLAMATION_MARK
- See Also:
- Constant Field Values
SWTVK_LEFT_PARENTHESIS
public static final int SWTVK_LEFT_PARENTHESIS
- See Also:
- Constant Field Values
SWTVK_RIGHT_PARENTHESIS
public static final int SWTVK_RIGHT_PARENTHESIS
- See Also:
- Constant Field Values
SWTVK_COLON
public static final int SWTVK_COLON
- See Also:
- Constant Field Values
SWTVK_TAB
public static final int SWTVK_TAB
- See Also:
- Constant Field Values
SWTVK_F1
public static final int SWTVK_F1
- See Also:
- Constant Field Values
SWTVK_F2
public static final int SWTVK_F2
- See Also:
- Constant Field Values
SWTVK_F3
public static final int SWTVK_F3
- See Also:
- Constant Field Values
SWTVK_F4
public static final int SWTVK_F4
- See Also:
- Constant Field Values
SWTVK_F5
public static final int SWTVK_F5
- See Also:
- Constant Field Values
SWTVK_F6
public static final int SWTVK_F6
- See Also:
- Constant Field Values
SWTVK_F7
public static final int SWTVK_F7
- See Also:
- Constant Field Values
SWTVK_F8
public static final int SWTVK_F8
- See Also:
- Constant Field Values
SWTVK_F9
public static final int SWTVK_F9
- See Also:
- Constant Field Values
SWTVK_F10
public static final int SWTVK_F10
- See Also:
- Constant Field Values
SWTVK_F11
public static final int SWTVK_F11
- See Also:
- Constant Field Values
SWTVK_F12
public static final int SWTVK_F12
- See Also:
- Constant Field Values
SWTVK_ENTER
public static final int SWTVK_ENTER
- See Also:
- Constant Field Values
SWTVK_BACK_SPACE
public static final int SWTVK_BACK_SPACE
- See Also:
- Constant Field Values
SWTVK_DELETE
public static final int SWTVK_DELETE
- See Also:
- Constant Field Values
SWTVK_ESCAPE
public static final int SWTVK_ESCAPE
- See Also:
- Constant Field Values
SWTVK_LEFT
public static final int SWTVK_LEFT
- See Also:
- Constant Field Values
SWTVK_KP_LEFT
public static final int SWTVK_KP_LEFT
- See Also:
- Constant Field Values
SWTVK_RIGHT
public static final int SWTVK_RIGHT
- See Also:
- Constant Field Values
SWTVK_KP_RIGHT
public static final int SWTVK_KP_RIGHT
- See Also:
- Constant Field Values
SWTVK_UP
public static final int SWTVK_UP
- See Also:
- Constant Field Values
SWTVK_KP_UP
public static final int SWTVK_KP_UP
- See Also:
- Constant Field Values
SWTVK_DOWN
public static final int SWTVK_DOWN
- See Also:
- Constant Field Values
SWTVK_KP_DOWN
public static final int SWTVK_KP_DOWN
- See Also:
- Constant Field Values
SWTVK_HOME
public static final int SWTVK_HOME
- See Also:
- Constant Field Values
SWTVK_END
public static final int SWTVK_END
- See Also:
- Constant Field Values
SWTVK_PAGE_UP
public static final int SWTVK_PAGE_UP
- See Also:
- Constant Field Values
SWTVK_PAGE_DOWN
public static final int SWTVK_PAGE_DOWN
- See Also:
- Constant Field Values
SWTVK_INSERT
public static final int SWTVK_INSERT
- See Also:
- Constant Field Values
SWTVK_SHIFT
public static final int SWTVK_SHIFT
- See Also:
- Constant Field Values
SWTVK_CONTROL
public static final int SWTVK_CONTROL
- See Also:
- Constant Field Values
SWTVK_ALT
public static final int SWTVK_ALT
- See Also:
- Constant Field Values
SWTVK_META
public static final int SWTVK_META
- See Also:
- Constant Field Values
SWTVK_CANCEL
public static final int SWTVK_CANCEL
- See Also:
- Constant Field Values
SWTVK_CLEAR
public static final int SWTVK_CLEAR
- See Also:
- Constant Field Values
SWTVK_PAUSE
public static final int SWTVK_PAUSE
- See Also:
- Constant Field Values
SWTVK_CAPS_LOCK
public static final int SWTVK_CAPS_LOCK
- See Also:
- Constant Field Values
SWTVK_SEPARATOR
public static final int SWTVK_SEPARATOR
- See Also:
- Constant Field Values
SWTVK_NUM_LOCK
public static final int SWTVK_NUM_LOCK
- See Also:
- Constant Field Values
SWTVK_SCROLL_LOCK
public static final int SWTVK_SCROLL_LOCK
- See Also:
- Constant Field Values
SWTVK_PRINTSCREEN
public static final int SWTVK_PRINTSCREEN
- See Also:
- Constant Field Values
SWTVK_HELP
public static final int SWTVK_HELP
- See Also:
- Constant Field Values
KEY_LOCATION_UNKNOWN
public static final int KEY_LOCATION_UNKNOWN
- See Also:
- Constant Field Values
KEY_LOCATION_STANDARD
public static final int KEY_LOCATION_STANDARD
- See Also:
- Constant Field Values
KEY_LOCATION_LEFT
public static final int KEY_LOCATION_LEFT
- See Also:
- Constant Field Values
KEY_LOCATION_RIGHT
public static final int KEY_LOCATION_RIGHT
- See Also:
- Constant Field Values
KEY_LOCATION_NUMPAD
public static final int KEY_LOCATION_NUMPAD
- See Also:
- Constant Field Values
VK_UNDEFINED
public static final int VK_UNDEFINED
- See Also:
- Constant Field Values
CHAR_UNDEFINED
public static final char CHAR_UNDEFINED
- See Also:
- Constant Field Values
KeyEvent
public KeyEvent(Component source,
int id)
KeyEvent
public KeyEvent(Component source,
int id,
long when,
int modifiers,
int keyCode)
KeyEvent
public KeyEvent(Component source,
int id,
long when,
int modifiers,
int keyCode,
char keyChar)
KeyEvent
public KeyEvent(Component source,
int id,
long when,
int modifiers,
int keyCode,
char keyChar,
int keyLocation)
getKeyChar
public char getKeyChar()
- Getter for property keyChar.
- Returns:
- Value of property keyChar.
setKeyChar
public void setKeyChar(char keyChar)
- Setter for property keyChar.
- Parameters:
keyChar
- New value of property keyChar.
getKeyCode
public int getKeyCode()
- Getter for property keyCode.
- Returns:
- Value of property keyCode.
setKeyCode
public void setKeyCode(int keyCode)
- Setter for property keyCode.
- Parameters:
keyCode
- New value of property keyCode.
setModifiers
public void setModifiers(int modifiers)
- Setter for property modifiers.
- Parameters:
modifiers
- New value of property modifiers.
translateSWTKey
public static int translateSWTKey(int swtKey)
- Returns the AWT key code for an SWT key
translateAWTKey
public static int translateAWTKey(int awtKey)
- Returns the SWT key code for an AWT key