junit.extensions.awt.editor
Class ButtonClickRecorder
java.lang.Object
|
+--junit.extensions.awt.editor.Recorder
|
+--junit.extensions.awt.editor.ButtonClickRecorder
- public class ButtonClickRecorder
- extends Recorder
That means mouse button click, not GUI button click.
Method Summary |
protected Step |
createStep()
Create a script step based on the information gathered so far. |
protected void |
eventDispatched(java.awt.AWTEvent event)
Handle an action. |
long |
getEventMask()
Return a mask for events of interest to this recorder. |
java.lang.String |
getName()
For use with actions. |
protected void |
initialize()
Set up state prior to capturing events. |
protected boolean |
shouldStop()
Override this to indicate when the recording whould terminate (not
cancel. |
Methods inherited from class java.lang.Object |
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ButtonClickRecorder
public ButtonClickRecorder(Resolver resolver,
ComponentFinder finder,
java.awt.event.ActionListener al)
- Create a recorder for capturing mouse button clicks.
getName
public java.lang.String getName()
- For use with actions.
- Overrides:
getName
in class Recorder
getEventMask
public long getEventMask()
- Return a mask for events of interest to this recorder.
- Overrides:
getEventMask
in class Recorder
initialize
protected void initialize()
- Description copied from class:
Recorder
- Set up state prior to capturing events.
- Overrides:
initialize
in class Recorder
shouldStop
protected boolean shouldStop()
- Description copied from class:
Recorder
- Override this to indicate when the recording whould terminate (not
cancel.
- Overrides:
shouldStop
in class Recorder
createStep
protected Step createStep()
- Description copied from class:
Recorder
- Create a script step based on the information gathered so far.
- Overrides:
createStep
in class Recorder
eventDispatched
protected void eventDispatched(java.awt.AWTEvent event)
- Description copied from class:
Recorder
- Handle an action. This can either be ignored, contribute to the
recording, or cause the recording to be canceled.
- Overrides:
eventDispatched
in class Recorder