abbot.editor.recorder
Class ChoiceRecorder
java.lang.Object
abbot.editor.recorder.SemanticRecorder
abbot.editor.recorder.ComponentRecorder
abbot.editor.recorder.ChoiceRecorder
- All Implemented Interfaces:
- SemanticEvents
public class ChoiceRecorder
- extends ComponentRecorder
Record basic semantic events you might find on an Choice component.
Method Summary |
protected Step |
createSelection(Choice target,
String selection)
|
protected Step |
createStep()
Returns the script step generated from the events recorded so far. |
protected void |
init(int recordingType)
|
protected boolean |
isClick(AWTEvent e)
Also accept ItemEvents, since the ChoiceTester will not generate any
explicit clicks to control the component. |
protected boolean |
parseClick(AWTEvent event)
Track click -> select ->click, cancelable by ESC or by clicking away
from the component. |
Methods inherited from class abbot.editor.recorder.ComponentRecorder |
accept, canDrag, canMultipleClick, createAWTMenuSelection, createClick, createDrag, createDrop, createInputMethod, createKey, createMenuSelection, createPopupMenuSelection, createWindowEvent, dragStarted, getLocation, getLocationArgument, isClose, isDragDrop, isKeyTyped, isMenuEvent, isOpen, isToolTip, isWindowEvent, parse, parseDrop, parseInputMethod, parseKeyEvent, parseMenuSelection, parseWindowEvent, setFinished |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ChoiceRecorder
public ChoiceRecorder(Resolver resolver)
init
protected void init(int recordingType)
- Overrides:
init
in class ComponentRecorder
isClick
protected boolean isClick(AWTEvent e)
- Also accept ItemEvents, since the ChoiceTester will not generate any
explicit clicks to control the component.
- Overrides:
isClick
in class ComponentRecorder
parseClick
protected boolean parseClick(AWTEvent event)
- Track click -> select ->click, cancelable by ESC or by clicking away
from the component.
NOTE: press->drag->release produces an identical set of events
OSX 1.3.1:
MOUSE_PRESSED
(ITEM_STATE_CHANGED)|MOUSE_RELEASED|KEY_RELEASED
The ItemEvent never makes it to the AWT listener.
- Overrides:
parseClick
in class ComponentRecorder
createStep
protected Step createStep()
- Description copied from class:
ComponentRecorder
- Returns the script step generated from the events recorded so far.
- Overrides:
createStep
in class ComponentRecorder
createSelection
protected Step createSelection(Choice target,
String selection)
Copyright © 2002-2008 Timothy Wall. All Rights Reserved.
Abbot is hosted on