|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.zkoss.zk.ui.event.Event org.zkoss.zk.ui.event.KeyEvent
public class KeyEvent
Represents a key pressed by the user.
Field Summary | |
---|---|
static int |
DELETE
|
static int |
DOWN
|
static int |
END
|
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 |
HOME
|
static int |
INSERT
|
static int |
LEFT
|
static int |
PAGE_DOWN
|
static int |
PAGE_UP
|
static int |
RIGHT
|
static int |
UP
|
Constructor Summary | |
---|---|
KeyEvent(java.lang.String name,
Component target,
int keyCode,
boolean ctrlKey,
boolean shiftKey,
boolean altKey)
|
|
KeyEvent(java.lang.String name,
Component target,
int keyCode,
boolean ctrlKey,
boolean shiftKey,
boolean altKey,
Component ref)
Constructs a mouse relevant event. |
Method Summary | |
---|---|
int |
getKeyCode()
Returns the key code. |
static KeyEvent |
getKeyEvent(AuRequest request)
Converts an AU request to a key event. |
Component |
getReference()
Returns the reference item that is the component causing the key event to be fired. |
boolean |
isAltKey()
Returns whether ALT is pressed. |
boolean |
isCtrlKey()
Returns whether CTRL is pressed. |
boolean |
isShiftKey()
Returns whether SHIFT is pressed. |
Methods inherited from class org.zkoss.zk.ui.event.Event |
---|
getData, getEvent, getName, getPage, getTarget, isPropagatable, stopPropagation, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
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 PAGE_UP
public static final int PAGE_DOWN
public static final int END
public static final int HOME
public static final int LEFT
public static final int UP
public static final int RIGHT
public static final int DOWN
public static final int INSERT
public static final int DELETE
Constructor Detail |
---|
public KeyEvent(java.lang.String name, Component target, int keyCode, boolean ctrlKey, boolean shiftKey, boolean altKey)
public KeyEvent(java.lang.String name, Component target, int keyCode, boolean ctrlKey, boolean shiftKey, boolean altKey, Component ref)
Method Detail |
---|
public static final KeyEvent getKeyEvent(AuRequest request)
public final int getKeyCode()
public final boolean isCtrlKey()
public final boolean isShiftKey()
public final boolean isAltKey()
public Component getReference()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |