|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecthermes.postoffice.KeyMessage
public class KeyMessage
Message representing a key stroke. The type of the key message is determined by the key it corresponds to.
Constructor Summary | |
---|---|
KeyMessage(int keyCode,
char keyChar,
boolean isPressed)
Creates a new KeyMessage. |
Method Summary | |
---|---|
boolean |
equals(java.lang.Object o)
Checks for equality of KeyMessage by comparing key codes. |
char |
getKeyChar()
Gets character representing the key acted upon if key is unicode. |
int |
getKeyCode()
Gets code listed in POConstants corresponding to key |
boolean |
isPressed()
Tells if key is pressed or not. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public KeyMessage(int keyCode, char keyChar, boolean isPressed)
keyCode
- int corresponding to key, use PostOffice constants to determine keykeyChar
- char corresponding to key, PostOffice.CHAR_UNDEFINED if key is non-unicodeisPressed
- true when key is pressed, false when key is releasedMethod Detail |
---|
public int getKeyCode()
public char getKeyChar()
public boolean isPressed()
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |