|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectabbot.editor.recorder.Recorder
abbot.editor.recorder.EventRecorder
public class EventRecorder
Provides recording of raw AWT events and high-level semantic events. This is the main controller for any SemanticRecorder objects.
| Field Summary | |
|---|---|
static long |
RECORDING_EVENT_MASK
Events of interest when recording all actions. |
(package private) ArrayList |
steps
|
| Fields inherited from interface abbot.editor.recorder.SemanticEvents |
|---|
SE_ANY, SE_CLICK, SE_DRAG, SE_DROP, SE_IM, SE_KEY, SE_MENU, SE_NONE, SE_TEXT, SE_WINDOW |
| Constructor Summary | |
|---|---|
EventRecorder(Resolver resolver,
boolean captureMotion)
Create a Recorder for use in capturing raw AWTEvents. |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class abbot.editor.recorder.Recorder |
|---|
addActionListener, getLastEventTime, getListener, getResolver, getStep, record, setStatus |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
ArrayList steps
public static final long RECORDING_EVENT_MASK
| Constructor Detail |
|---|
public EventRecorder(Resolver resolver,
boolean captureMotion)
| Method Detail |
|---|
public String toString()
toString in class Objectpublic void start()
Recorder
start in class Recorderpublic void insertStep(Step step)
insertStep in class Recorderprotected Step createStep()
createStep in class Recorder
public void terminate()
throws RecordingFailedException
Recorder
terminate in class RecorderRecordingFailedException
protected void recordEvent(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
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||