|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectdiva.util.jester.EventRecorder
public class EventRecorder
EventRecorder listens to all of the mouse and keyboard events on a given component and records these into a sequence which can then be played back using an EventPlayer object.
EventPlayer
Red |
Nested Class Summary | |
---|---|
private class |
EventRecorder.KeyRecorder
Record all keyboard events. |
private class |
EventRecorder.MouseMotionRecorder
Record all mouse motion events. |
private class |
EventRecorder.MouseRecorder
Record all mouse events. |
Field Summary | |
---|---|
private java.awt.Component |
_component
The component that we are recording from. |
private java.util.ArrayList |
_events
Store the event sequence here. |
private EventRecorder.KeyRecorder |
_keyRecorder
Record keyboard events. |
private EventRecorder.MouseMotionRecorder |
_mouseMotionRecorder
Record mouse motion events. |
private EventRecorder.MouseRecorder |
_mouseRecorder
Record mouse events. |
Constructor Summary | |
---|---|
EventRecorder(java.awt.Component component)
Record events from the given component. |
Method Summary | |
---|---|
void |
record()
Start recording events on the constructor-specified component. |
java.awt.event.InputEvent[] |
stop()
Stop recording events on the constructor-specified component and return the recorded events from this session as an array. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private java.awt.Component _component
private java.util.ArrayList _events
private EventRecorder.MouseRecorder _mouseRecorder
private EventRecorder.MouseMotionRecorder _mouseMotionRecorder
private EventRecorder.KeyRecorder _keyRecorder
Constructor Detail |
---|
public EventRecorder(java.awt.Component component)
Method Detail |
---|
public void record()
public java.awt.event.InputEvent[] stop()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |