abbot.editor.recorder
Class FileDialogRecorder
java.lang.Object
abbot.editor.recorder.SemanticRecorder
abbot.editor.recorder.ComponentRecorder
abbot.editor.recorder.ContainerRecorder
abbot.editor.recorder.WindowRecorder
abbot.editor.recorder.DialogRecorder
abbot.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:
- Changes to the directory
- Changes to the file
- Whether the user hits OK or Cancel
- Author:
- Vrata Venet, European Space Agency, Madrid-Spain (av@iso.vilspa.esa.es)
Constructor Summary |
FileDialogRecorder(Resolver resolver)
Create a FileDialogRecorder for use in capturing the semantics of a GUI
action. |
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FileDialogRecorder
public FileDialogRecorder(Resolver resolver)
- Create a FileDialogRecorder for use in capturing the semantics of a GUI
action.
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-2008 Timothy Wall. All Rights Reserved.
Abbot is hosted on