abbot.editor.recorder
Class FileDialogRecorder

java.lang.Object
  extended byabbot.editor.recorder.SemanticRecorder
      extended byabbot.editor.recorder.ComponentRecorder
          extended byabbot.editor.recorder.ContainerRecorder
              extended byabbot.editor.recorder.WindowRecorder
                  extended byabbot.editor.recorder.DialogRecorder
                      extended byabbot.editor.recorder.FileDialogRecorder
All Implemented Interfaces:
SemanticEvents

public class FileDialogRecorder
extends DialogRecorder

Recorder for the java.awt.FileDialog. Since this is a native component and no java events are generated other than window open/close, the only things to take note of are the following:

Author:
Vrata Venet, European Space Agency, Madrid-Spain (av@iso.vilspa.esa.es)

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
FileDialogRecorder(Resolver resolver)
          Create a FileDialogRecorder for use in capturing the semantics of a GUI action.
 
Method Summary
protected  Step createFileDialogEvents(FileDialog d, String oldDir, String oldFile)
          Create one or more steps corresponding to what was done to the file dialog.
protected  Step createStep()
          Returns the script step generated from the events recorded so far.
protected  void init(int type)
           
protected  boolean parseWindowEvent(AWTEvent event)
          Override the default window parsing to consume everything between dialog open and close.
 
Methods inherited from class abbot.editor.recorder.DialogRecorder
createResize
 
Methods inherited from class abbot.editor.recorder.WindowRecorder
createClose, createMove, isWindowEvent
 
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, setNativeDrag
 
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

FileDialogRecorder

public FileDialogRecorder(Resolver resolver)
Create a FileDialogRecorder for use in capturing the semantics of a GUI action.

Method Detail

init

protected void init(int type)
Overrides:
init in class WindowRecorder

parseWindowEvent

protected boolean parseWindowEvent(AWTEvent event)
Override the default window parsing to consume everything between dialog open and close.

Overrides:
parseWindowEvent in class WindowRecorder

createFileDialogEvents

protected Step createFileDialogEvents(FileDialog d,
                                      String oldDir,
                                      String oldFile)
Create one or more steps corresponding to what was done to the file dialog. If the directory is non-null, the directory was changed. If the file is non-null, the file was accepted.


createStep

protected Step createStep()
Description copied from class: ComponentRecorder
Returns the script step generated from the events recorded so far.

Overrides:
createStep in class WindowRecorder


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

SourceForge