abbot.editor.recorder
Class WindowRecorder

java.lang.Object
  extended by abbot.editor.recorder.SemanticRecorder
      extended by abbot.editor.recorder.ComponentRecorder
          extended by abbot.editor.recorder.ContainerRecorder
              extended by abbot.editor.recorder.WindowRecorder
All Implemented Interfaces:
SemanticEvents
Direct Known Subclasses:
DialogRecorder, FrameRecorder

public class WindowRecorder
extends ContainerRecorder

Record basic semantic events you might find on an Window.


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
WindowRecorder(Resolver resolver)
           
 
Method Summary
protected  Step createClose(Window window)
           
protected  Step createMove(Window window, Point where)
           
protected  Step createResize(Window window, Dimension size)
           
protected  Step createStep()
          Returns the script step generated from the events recorded so far.
protected  void init(int recordingType)
           
protected  boolean isWindowEvent(AWTEvent event)
          Test whether the given event is a trigger for a window event.
protected  boolean parseWindowEvent(AWTEvent event)
           
 
Methods inherited from class abbot.editor.recorder.ComponentRecorder
accept, canDrag, canMultipleClick, createAWTMenuSelection, createClick, createDrag, createDrop, createInputMethod, createKey, createMenuSelection, createPopupMenuSelection, createWindowEvent, dragStarted, getLocation, getLocationArgument, isClick, isClose, isDragDrop, isKeyTyped, isMenuEvent, isOpen, isToolTip, parse, parseClick, parseDrop, parseInputMethod, parseKeyEvent, parseMenuSelection, 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

WindowRecorder

public WindowRecorder(Resolver resolver)
Method Detail

init

protected void init(int recordingType)
Overrides:
init in class ComponentRecorder

isWindowEvent

protected boolean isWindowEvent(AWTEvent event)
Description copied from class: ComponentRecorder
Test whether the given event is a trigger for a window event. Allow derived classes to change definition of a click.

Overrides:
isWindowEvent in class ComponentRecorder

parseWindowEvent

protected boolean parseWindowEvent(AWTEvent event)
Overrides:
parseWindowEvent 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

createClose

protected Step createClose(Window window)

createMove

protected Step createMove(Window window,
                          Point where)

createResize

protected Step createResize(Window window,
                            Dimension size)


Copyright © 2002-2008 Timothy Wall. All Rights Reserved.
Abbot is hosted on

SourceForge