|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectjcontrol.ui.vole.event.KeyEvent
public class KeyEvent
This event may be generated when a Keyboard key is pressed. It should be sent to the top level component to be automatically passed through the focus path down to a basic component, for example a button. Until now, the KeyEvent must be generated manually, which is mostly done by continuously requesting the Keyboard by calling readKey.
(c) Copyright 2003-2005 DOMOLOGIC GmbH
Keyboard| Field Summary | |
|---|---|
static int |
KEY_FOCUS_BACKWARD
Key function 'transfer focus backward' |
static int |
KEY_FOCUS_FORWARD
Key function 'transfer focus forward' |
static int |
KEY_PRESSED
Indicate that a key was pressed |
static int |
KEY_RELEASED
Indicate that a key has been released |
static int |
KEY_SCROLL_DOWN
Key function 'scroll down' |
static int |
KEY_SCROLL_UP
Key function 'scroll up' |
static int |
KEY_SELECT
Key function 'select' |
| Constructor Summary | |
|---|---|
KeyEvent(int type,
int key)
Constructs a KeyEvent. |
|
| Method Summary | |
|---|---|
int |
getKey()
Get event's function |
int |
getType()
Get event's type (may be undefined) |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, notifyAll, wait |
| Field Detail |
|---|
public static final int KEY_FOCUS_BACKWARD
public static final int KEY_FOCUS_FORWARD
public static final int KEY_PRESSED
public static final int KEY_RELEASED
public static final int KEY_SCROLL_DOWN
public static final int KEY_SCROLL_UP
public static final int KEY_SELECT
| Constructor Detail |
|---|
public KeyEvent(int type,
int key)
type - The KeyEvent type (KEY_PRESSED, KEY_RELEASED)key - The key function that was pressed| Method Detail |
|---|
public int getKey()
public int getType()
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||