|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.util.EventObject | +--com.droplets.api.event.KeyPressEvent
This event carries with it a key press, represented as an ASCII character code of the key.
Fields inherited from class java.util.EventObject |
source |
Constructor Summary | |
KeyPressEvent(Component source,
int key)
Construct the new KeyPressEvent. |
Method Summary | |
int |
getKey()
|
Component |
getSourceComponent()
Type-safe method to return the source object of this event, since we know it's a Component. |
Methods inherited from class java.util.EventObject |
getSource, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public KeyPressEvent(Component source, int key)
source
- component which dispatched the event.key
- the ascii code of the keyMethod Detail |
public Component getSourceComponent()
public int getKey()
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |