public abstract class SemanticRecorder extends Object implements SemanticEvents
See EventRecorder for implementation details.
Constructor and Description |
---|
SemanticRecorder(Resolver resolver)
Create a SemanticRecorder for use in capturing the semantics of a GUI
action.
|
Modifier and Type | Method and Description |
---|---|
abstract boolean |
accept(AWTEvent event)
Returns whether this SemanticRecorder wishes to accept the given event
and subsequent events.
|
void |
addActionListener(ActionListener al)
Supports at most one listener.
|
protected abstract Step |
createStep()
Create a step based on the events received thus far.
|
int |
getRecordingType() |
protected Resolver |
getResolver()
Return the Resolver to be used by this recorder.
|
Step |
getStep()
Returns the script step generated from the events recorded so far.
|
protected void |
init(int recordingType) |
boolean |
isFinished()
Return whether this recorder has finished recording the current
semantic event.
|
abstract boolean |
parse(AWTEvent event)
Handle an event.
|
boolean |
record(AWTEvent event)
Handle an event.
|
protected void |
setFinished(boolean state)
Invoke when end of the semantic event has been seen.
|
protected void |
setRecordingType(int type) |
protected void |
setStatus(String msg)
Indicate the current recording state, so that the status may be
displayed elsewhere.
|
protected void |
setStep(Step newStep)
Add the given step.
|
protected ArrayList events
public SemanticRecorder(Resolver resolver)
public void addActionListener(ActionListener al)
public int getRecordingType()
protected void setRecordingType(int type)
protected void init(int recordingType)
public abstract boolean accept(AWTEvent event)
public final boolean record(AWTEvent event)
public abstract boolean parse(AWTEvent event)
protected Resolver getResolver()
public Step getStep() throws BugReport
BugReport
protected abstract Step createStep()
protected void setStep(Step newStep)
public boolean isFinished()
protected void setFinished(boolean state)
protected void setStatus(String msg)
Abbot is hosted on