public class EventRecorder extends Recorder implements SemanticEvents
| Modifier and Type | Field and Description |
|---|---|
static long |
RECORDING_EVENT_MASK
Events of interest when recording all actions.
|
(package private) java.util.ArrayList |
steps |
| Constructor and Description |
|---|
EventRecorder(Resolver resolver,
boolean captureMotion)
Create a Recorder for use in capturing raw AWTEvents.
|
| Modifier and Type | Method and Description |
|---|---|
protected Step |
createStep()
Return a sequence containing all the semantic and basic events captured
thus far.
|
long |
getEventMask()
Return the events of interest to this Recorder.
|
void |
insertStep(Step step)
Insert an arbitrary script step into the currently recorded stream.
|
protected void |
recordEvent(java.awt.AWTEvent event)
Handle an event.
|
void |
start()
Start recording a new event stream.
|
void |
terminate()
Indicate the end of the current event input stream.
|
java.lang.String |
toString()
Return the name of the type of GUI action to be recorded.
|
addActionListener, getLastEventTime, getListener, getResolver, getStep, record, setStatusjava.util.ArrayList steps
public static final long RECORDING_EVENT_MASK
public EventRecorder(Resolver resolver, boolean captureMotion)
public java.lang.String toString()
toString in class java.lang.Objectpublic void start()
Recorderpublic void insertStep(Step step)
insertStep in class Recorderprotected Step createStep()
createStep in class Recorderpublic void terminate()
throws RecordingFailedException
Recorderterminate in class RecorderRecordingFailedExceptionprotected void recordEvent(java.awt.AWTEvent event)
throws RecordingFailedException
recordEvent in class RecorderRecordingFailedException - if an error was encountered and
recording should be discontinued.public long getEventMask()
getEventMask in class Recorder
Abbot is hosted on