|
|||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface AwtFileDialog
AwtFileDialog is created to represent java.awt.FileDialog component
The following code fragment illustrates how to create an
AwtFileDialog
element.
var element = engine.createAwtFileDialog(1, 5);where engine is object of
IScriptEngine
Method Summary | |
---|---|
java.lang.String |
getDirectory()
To get the currently selected folder in the FileDialog |
java.lang.String |
getFile()
To get the currently selected file in the FileDialog |
int |
getMode()
Indicates whether this file dialog box is for loading from a file or for saving to a file. |
boolean |
setDirectory(java.lang.String directory)
To select the folder represented by directory path in the FileDialog |
boolean |
setFile(java.lang.String file)
To select the file represented by file path in the FileDialog |
Methods inherited from interface com.appperfect.devcommon.script.javaelement.AwtDialog |
---|
isModal, isResizable, setModal |
Methods inherited from interface com.appperfect.devcommon.script.javaelement.AwtWindow |
---|
hide, isActive, show |
Methods inherited from interface com.appperfect.devcommon.script.javaelement.AwtContainer |
---|
getComponentCount |
Methods inherited from interface com.appperfect.devcommon.script.javaelement.JavaComponent |
---|
activate, addAttribute, captureImage, click, close, dblClick, drag, drop, getName, getText, getToolTipText, maximize, minimize, mouseMove, restore, rightClick, set, setBreakPoint, setIgnored, setImagePath, setName, setThinkTime, setTitle, type |
Methods inherited from interface com.appperfect.devcommon.script.IScript |
---|
getReasonForFailure, isIgnored, isTaskSuccessful, isTaskTimedOut, setReasonForFailure, setTaskSuccessful, setTaskTimedout, setTimeout |
Method Detail |
---|
java.lang.String getDirectory()
java.lang.String getFile()
int getMode()
FileDialog.LOAD
or FileDialog.SAVE
boolean setDirectory(java.lang.String directory)
directory
- path of the directory to be selected
boolean setFile(java.lang.String file)
file
- path of the file to be selected
|
|||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |