abbot.editor.recorder
Class ChoiceRecorder

java.lang.Object
  extended by abbot.editor.recorder.SemanticRecorder
      extended by abbot.editor.recorder.ComponentRecorder
          extended by abbot.editor.recorder.ChoiceRecorder
All Implemented Interfaces:
SemanticEvents

public class ChoiceRecorder
extends ComponentRecorder

Record basic semantic events you might find on an Choice component.


Field Summary
 
Fields inherited from class abbot.editor.recorder.SemanticRecorder
events
 
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
ChoiceRecorder(Resolver resolver)
           
 
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 abbot.editor.recorder.SemanticRecorder
addActionListener, getRecordingType, getResolver, getStep, isFinished, record, setRecordingType, setStatus, setStep
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ChoiceRecorder

public ChoiceRecorder(Resolver resolver)
Method Detail

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

SourceForge