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) 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(AWTEvent event)
Handle an event.
|
void |
start()
Start recording a new event stream.
|
void |
terminate()
Indicate the end of the current event input stream.
|
String |
toString()
Return the name of the type of GUI action to be recorded.
|
addActionListener, getLastEventTime, getListener, getResolver, getStep, record, setStatus
ArrayList steps
public static final long RECORDING_EVENT_MASK
public EventRecorder(Resolver resolver, boolean captureMotion)
public String toString()
public void start()
Recorder
public void insertStep(Step step)
insertStep
in class Recorder
protected Step createStep()
createStep
in class Recorder
public void terminate() throws RecordingFailedException
Recorder
terminate
in class Recorder
RecordingFailedException
protected void recordEvent(AWTEvent event) throws RecordingFailedException
recordEvent
in class Recorder
RecordingFailedException
- if an error was encountered and
recording should be discontinued.public long getEventMask()
getEventMask
in class Recorder
Abbot is hosted on