|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.pivot.wtk.Keyboard
public final class Keyboard
Class representing the system keyboard.
| Nested Class Summary | |
|---|---|
static class |
Keyboard.KeyCode
Contains a set of key code constants that are common to all locales. |
static class |
Keyboard.KeyLocation
Enumeration representing key locations. |
static class |
Keyboard.KeyStroke
Represents a keystroke, a combination of a keycode and modifier flags. |
static class |
Keyboard.Modifier
Enumeration representing keyboard modifiers. |
| Constructor Summary | |
|---|---|
Keyboard()
|
|
| Method Summary | |
|---|---|
static DropAction |
getDropAction()
Returns the current drop action. |
static int |
getModifiers()
Returns a bitfield representing the keyboard modifiers that are currently pressed. |
static boolean |
isPressed(Keyboard.Modifier modifier)
Tests the pressed state of a modifier. |
protected static void |
setModifiers(int modifiers)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Keyboard()
| Method Detail |
|---|
public static int getModifiers()
protected static void setModifiers(int modifiers)
public static boolean isPressed(Keyboard.Modifier modifier)
modifier -
public static DropAction getDropAction()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||