|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--jcontrol.ui.vole.event.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.
Keyboard
Field Summary | |
(package private) int |
key
|
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' |
(package private) int |
type
|
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, finalize, notifyAll, wait |
Field Detail |
int key
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
int type
Constructor Detail |
public KeyEvent(int type, int key)
type
- The KeyEvent type (KEY_PRESSED, KEY_RELEASED)key
- The key function that was pressedMethod Detail |
public int getKey()
public int getType()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |