|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
IKeys is an interface containing values for special keys and modifiers.
Below is an example of IKeys being used.
public void onEvent(Event event)
{
if (event.type == KeyEvent.KEY_PRESS)
{
KeyEvent ke = (KeyEvent)event;
if ((ke.modifiers & CONTROL) > 0)
... control key was held down
if (ke.key == PAGE_DOWN)
... page down key pressed
| Field Summary | |
static int |
ACTION
Action Button. |
static int |
ALT
modifier for alt key |
static int |
BACKSPACE
special key |
static int |
COMMAND
special key |
static int |
CONDITIONAL
For PRESSED KeyEvents, indicates that the key that was typed should be considered "conditional" - that is it may be superceded by another key. |
static int |
CONTROL
modifier for control key |
static int |
DELETE
special key |
static int |
DOWN
special key |
static int |
END
special key |
static int |
ENTER
special key |
static int |
ESCAPE
special key |
static int |
FROM_INPUT_METHOD
This indicates that the KeyEvent was generated by an InputMethod. |
static int |
HELP
special key |
static int |
HOME
special key |
static int |
INSERT
special key |
static int |
INVISIBLE
modifier used when specifying hot keys - indicates that the key should not be underlined. |
static int |
KEY_PRESSED
This mask should be applied to the result of Vm.getAsyncKeyState(int keyCode). |
static int |
KEY_WASPRESSED
This mask should be applied to the result of Vm.getAsyncKeyState(int keyCode). |
static int |
LEFT
special key |
static int |
MENU
special key |
static int |
MULTICHARACTER
For PRESSED KeyEvents, indicates that the text element has a multi-character string that should be considered as entered by the user. |
static int |
NEXT_CONTROL
special key |
static int |
NEXT_TAB
special key |
static int |
ONLY
modifier used when specifying hot keys - indicates that the key alone with no modifier must be pressed. |
static int |
PAGE_DOWN
special key |
static int |
PAGE_UP
special key |
static int |
PDA_CANCEL
special key |
static int |
PEN
Left Mouse Button or Pen |
static int |
PREV_CONTROL
special key |
static int |
PREV_TAB
special key |
static int |
REPEATED
For PRESSED KeyEvents, indicates that the key press is generated because the key is being held down. |
static int |
REPLACEMENT
For PRESSED KeyEvents, indicates that the key that was typed should be considered to replace the previously sent key press. |
static int |
RIGHT
special key |
static int |
SHIFT
modifier for shift key |
static int |
SOFTKEY1
special key |
static int |
SOFTKEY2
special key |
static int |
SPECIAL
modifier for special keys |
static int |
TAB
special key |
static int |
UP
special key |
| Fields inherited from interface ewe.ui.IFunctionKeys |
APP0, APP1, APP10, APP11, APP12, APP13, APP14, APP15, APP2, APP3, APP4, APP5, APP6, APP7, APP8, APP9, F1, F10, F11, F12, F2, F3, F4, F5, F6, F7, F8, F9 |
| Fields inherited from interface ewe.ui.IKeypadKeys |
KEYPAD_0, KEYPAD_1, KEYPAD_2, KEYPAD_3, KEYPAD_4, KEYPAD_5, KEYPAD_6, KEYPAD_7, KEYPAD_8, KEYPAD_9, KEYPAD_DEL, KEYPAD_DIVIDE, KEYPAD_DOWN, KEYPAD_END, KEYPAD_ENTER, KEYPAD_HOME, KEYPAD_INS, KEYPAD_LEFT, KEYPAD_MINUS, KEYPAD_PAGE_DOWN, KEYPAD_PAGE_UP, KEYPAD_PLUS, KEYPAD_POINT, KEYPAD_RIGHT, KEYPAD_TIMES, KEYPAD_UP |
| Field Detail |
public static final int ALT
public static final int CONTROL
public static final int SHIFT
public static final int SPECIAL
public static final int ONLY
public static final int INVISIBLE
public static final int REPEATED
public static final int MULTICHARACTER
public static final int CONDITIONAL
public static final int REPLACEMENT
public static final int FROM_INPUT_METHOD
public static final int PAGE_UP
public static final int PAGE_DOWN
public static final int HOME
public static final int END
public static final int UP
public static final int DOWN
public static final int LEFT
public static final int RIGHT
public static final int INSERT
public static final int ENTER
public static final int TAB
public static final int BACKSPACE
public static final int ESCAPE
public static final int DELETE
public static final int MENU
public static final int COMMAND
public static final int HELP
public static final int PDA_CANCEL
public static final int NEXT_TAB
public static final int PREV_TAB
public static final int NEXT_CONTROL
public static final int PREV_CONTROL
public static final int SOFTKEY1
public static final int SOFTKEY2
public static final int PEN
public static final int ACTION
public static final int KEY_PRESSED
public static final int KEY_WASPRESSED
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||