|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.nexttext.input.InputEvent net.nexttext.input.KeyboardEvent
public class KeyboardEvent
An event generated by the keyboard.
This is a wrapper around the KeyEvent
class. All IDs returned
by the functions of this class are the same IDs used in the KeyEvent
class.
Constructor Summary | |
---|---|
KeyboardEvent(java.awt.event.KeyEvent event)
Class constructor |
Method Summary | |
---|---|
char |
getKeyChar()
Returns the character associated with the key in this event. |
int |
getKeyCode()
Returns the integer keyCode associated with the key in this event. |
int |
getKeyLocation()
Returns the location of the key that originated this key event. |
int |
getType()
Returns the type of keyboard event. |
boolean |
isActionKey()
Returns whether the key in this event is an "action" key. |
boolean |
isAltDown()
Returns whether or not the Alt modifier is down on this event. |
boolean |
isAltGraphDown()
Returns whether or not the Alt Graph modifier is down on this event. |
boolean |
isControlDown()
Returns whether or not the Control modifier is down on this event. |
boolean |
isMetaDown()
Returns whether or not the Meta modifier is down on this event. |
boolean |
isShiftDown()
Returns whether or not the Shift modifier is down on this event. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public KeyboardEvent(java.awt.event.KeyEvent event)
event
- the generated eventMethod Detail |
---|
public int getType()
public char getKeyChar()
public int getKeyCode()
public int getKeyLocation()
public boolean isActionKey()
public boolean isAltDown()
public boolean isAltGraphDown()
public boolean isControlDown()
public boolean isMetaDown()
public boolean isShiftDown()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |