|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--junit.extensions.awt.editor.Recorder | +--junit.extensions.awt.editor.EventRecorder
Provides recording of raw AWT events, attempting to parse them as high-level semantic events. Typing ESC will terminate the recording (ESC can be recorded separately using a key recorder if necessary).
Constructor Summary | |
EventRecorder(Resolver resolver,
ComponentFinder finder,
java.awt.event.ActionListener l)
Create a Recorder for use in capturing raw AWTEvents. |
Method Summary | |
protected Step |
createStep()
Encapsulate all the events we've collected into a single sequence. |
protected void |
eventDispatched(java.awt.AWTEvent event)
Handle an action. |
long |
getEventMask()
Return the events of interest to this Recorder. |
java.lang.String |
getName()
Return the name of the type of GUI action to be recorded. |
protected void |
initialize()
Set up state prior to capturing events. |
boolean |
isCancelEvent(java.awt.AWTEvent event)
ESC indicates the end of the stream, unless no windows are showing, in which case it will cancel the recording. |
protected boolean |
shouldStop()
The stop flag gets set when we've determined we should stop recording events. |
Methods inherited from class junit.extensions.awt.editor.Recorder |
cancel, eventToString, getFinder, getResolver, record, recordEvent, setResolver, setStatus, simpleClassName |
Methods inherited from class java.lang.Object |
|
Constructor Detail |
public EventRecorder(Resolver resolver, ComponentFinder finder, java.awt.event.ActionListener l)
Method Detail |
public java.lang.String getName()
getName
in class Recorder
protected void initialize()
Recorder
initialize
in class Recorder
protected boolean shouldStop()
shouldStop
in class Recorder
protected Step createStep()
createStep
in class Recorder
protected void eventDispatched(java.awt.AWTEvent event)
eventDispatched
in class Recorder
public long getEventMask()
getEventMask
in class Recorder
public boolean isCancelEvent(java.awt.AWTEvent event)
isCancelEvent
in class Recorder
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |