public class KeyCode
extends java.lang.Object
mSpecialKeys
.
alt
, ctrl
, shift
and #F
,
Modifier and Type | Field and Description |
---|---|
static int |
activated
Key code for anything activated.
|
static int |
alphanum
Alpha-numeric keys in
mSpecialKeys . |
static int |
alt |
static int |
altDigit |
static int |
back |
int |
code |
static int |
ctrl |
static int |
ctrlAlt
Use the 7.6. digit looks line "ca" for "control alt".
|
static int |
ctrlDigit |
static int |
defaultSelect
Determines that a line of a table is selected per default.
|
static int |
del |
static int |
dn |
static int |
dragFiles |
static int |
dragText |
static int |
dropFiles |
static int |
dropText |
static int |
end |
static int |
enter |
static int |
Entered
Determines that a menu item is entered.
|
static int |
esc |
static int |
F1 |
static int |
F10 |
static int |
F11 |
static int |
F12 |
static int |
F2 |
static int |
F3 |
static int |
F4 |
static int |
F5 |
static int |
F6 |
static int |
F7 |
static int |
F8 |
static int |
F9 |
static int |
focusGained
Determines that a field has got a focus.
|
static int |
focusLost |
static int |
function
Function keys in
mSpecialKeys . |
static int |
functionDigit |
static int |
home |
static int |
ins |
static int |
left |
static int |
mAddKeys
Mask for the additional ctrl, alt and shift key.
|
static int |
mCtrlAlt
Any of control or alt is pressed.
|
static int |
mCtrlAltDigit |
static int |
menuEntered
Determines that a menu item is entered.
|
static int |
mouse1Double
Doubleclick on mouse button.
|
static int |
mouse1Down |
static int |
mouse1Up |
static int |
mouse1UpMoved
The mouse button is released, but at another position where pressed.
|
static int |
mouse2Double |
static int |
mouse2Down
The mouse button 2 is usual the right button.
|
static int |
mouse2Up |
static int |
mouse2UpMoved
The mouse button is released, but at another position where pressed.
|
static int |
mouse3Down
The mouse button 3 is usual the middle button.
|
static int |
mouse3Up |
static int |
mouseBothDown
Both mouse buttons left and right are pressed down.
|
static int |
mouseWheelDn |
static int |
mouseWheelUp |
static int |
mSpecialKeyDigit |
static int |
mSpecialKeys
Bits to designate special keys.
|
static int |
nonAlphanum
Non-alpha-numeric keys in
mSpecialKeys . |
static int |
pgdn |
static int |
pgup |
static int |
removed
Key code for anything removed.
|
static int |
right |
static int |
shift
Use the 8. digit looks line "S" for "shift", value "5".
|
static int |
shiftAlt |
static int |
shiftCtrl |
static int |
shiftCtrlAlt |
static int |
shiftDigit |
java.lang.String |
str |
static java.lang.String |
sVersion
The version
2013-11-23 Hartmut new: Masks for
shiftDigit etc, Definition of tab
2013-11-23 Hartmut chg: userSelect and defaultSelect instead tableLineSelect
2012-07-15 Hartmut new: isAsciiTextKey(int)
2012-06-17 new isControlFunctionMouseUpOrMenu(int) etc. cluster of keys and actions. |
static int |
tab |
static int |
undefined |
static int |
up |
static int |
userSelect
Determines that a line of a table is selected by user actions.
|
static int |
valueChanged
A textfields content is changed.
|
Constructor and Description |
---|
KeyCode(int code) |
KeyCode(java.lang.String src) |
Modifier and Type | Method and Description |
---|---|
static int |
convert(java.lang.String src) |
static boolean |
isAsciiTextKey(int key)
Any key between the codes 0x20 .. 0x7e, it is an ASCII text key.
|
static boolean |
isControlFunctionMouseUpOrMenu(int key)
Returns true if it is a control, function or graphical control key.
|
static boolean |
isControlOrFunction(int key)
returns true if it is a control or function key.
|
static boolean |
isTextKey(int key)
Any text key, in UTF16 range but not a ASCII control key (0x0 .. 0x1f)
|
static boolean |
isWritingKey(int key)
A key which is used in an text field to write something.
|
static boolean |
isWritingOrTextNavigationKey(int key) |
java.lang.String |
toString() |
public static final java.lang.String sVersion
shiftDigit
etc, Definition of tab
userSelect
and defaultSelect
instead tableLineSelect
isAsciiTextKey(int)
isControlFunctionMouseUpOrMenu(int)
etc. cluster of keys and actions.
mouse1UpMoved
public static final int altDigit
public static final int alt
public static final int ctrlDigit
public static final int ctrl
public static final int shiftDigit
public static final int shift
public static final int ctrlAlt
public static final int shiftAlt
public static final int shiftCtrl
public static final int shiftCtrlAlt
public static final int mSpecialKeys
#F
public static final int mSpecialKeyDigit
public static final int mAddKeys
public static final int mCtrlAlt
public static final int mCtrlAltDigit
public static final int function
mSpecialKeys
.public static final int functionDigit
public static final int nonAlphanum
mSpecialKeys
.public static final int alphanum
mSpecialKeys
.public static final int F1
public static final int F2
public static final int F3
public static final int F4
public static final int F5
public static final int F6
public static final int F7
public static final int F8
public static final int F9
public static final int F10
public static final int F11
public static final int F12
public static final int left
public static final int right
public static final int up
public static final int dn
public static final int pgup
public static final int pgdn
public static final int home
public static final int end
public static final int back
public static final int enter
public static final int ins
public static final int del
public static final int esc
public static final int tab
public static final int mouse1Down
public static final int mouse1Up
public static final int mouse1UpMoved
public static final int mouse1Double
public static final int mouse2Down
public static final int mouse2Up
public static final int mouse2UpMoved
public static final int mouse2Double
public static final int mouseBothDown
public static final int mouseWheelUp
public static final int mouseWheelDn
public static final int mouse3Down
public static final int mouse3Up
public static final int menuEntered
public static final int Entered
public static final int userSelect
public static final int defaultSelect
public static final int focusGained
public static final int focusLost
public static final int valueChanged
public static final int activated
public static final int removed
public static final int dropFiles
public static final int dropText
public static final int dragFiles
public static final int dragText
public static final int undefined
public final int code
public final java.lang.String str
public java.lang.String toString()
toString
in class java.lang.Object
public static int convert(java.lang.String src)
public static boolean isWritingKey(int key)
key
- public static boolean isAsciiTextKey(int key)
key
- public static boolean isTextKey(int key)
key
- public static boolean isControlOrFunction(int key)
key
- public static boolean isControlFunctionMouseUpOrMenu(int key)
key
- public static boolean isWritingOrTextNavigationKey(int key)