IBM Rational Functional Tester
Version 8.1.1000
IBM Rational Functional Tester API Reference

Project Version 2.3

com.rational.test.ft.object.interfaces
Interface IFileDialog

All Superinterfaces:
IFrame, IGraphical, ITopWindow
All Known Implementing Classes:
FileDialogTestObject

public interface IFileDialog
extends ITopWindow

Defines the methods uniquely associated with a file-dialog type of control. These methods apply to native file dialog control-based TestObjects. They do not apply to custom file dialogs that do not appear internally to be file-dialog controls.

Since:
RFT6.1.1.1
See Also:
ITopWindow FileDialogTestObject FileDialogTestObject}

Field Summary
 
Fields inherited from interface com.rational.test.ft.object.interfaces.ITopWindow
INPUTCHARS_METHOD, INPUTKEYS_METHOD
 
Method Summary
 void clickAccept()
          Clicks the button on the file dialog that is associated with recognition information.
 void clickCancel()
          Clicks the cancel button on the file dialog.
 void setFile(java.lang.String file)
          Sets the full path name specified in the associated file dialog window.
 
Methods inherited from interface com.rational.test.ft.object.interfaces.ITopWindow
activate, clickDisabled, inputChars, inputKeys
 
Methods inherited from interface com.rational.test.ft.object.interfaces.IFrame
close, contextHelp, isIconified, maximize, minimize, move, resize, restore
 
Methods inherited from interface com.rational.test.ft.object.interfaces.IGraphical
click, click, click, click, doubleClick, doubleClick, doubleClick, doubleClick, drag, drag, drag, drag, dragToScreenPoint, dragToScreenPoint, dragToScreenPoint, getChildAtPoint, getClippedScreenRectangle, getScreenPoint, getScreenPoint, getScreenRectangle, hasFocus, hover, hover, hover, hover, isEnabled, isOpaque, isPointInObject, isShowing, mouseMove, mouseMove, nClick, nClickDrag, nClickDragToScreenPoint
 

Method Detail

setFile

void setFile(java.lang.String file)
Sets the full path name specified in the associated file dialog window. Both the directory name and file name are specified in the appropriate file path format for the target test context.

Parameters:
file - The full path name for the desired file
Example:
To set the file path in the AWTBasic Java Application

FileDialog().setFile("C:\temp\test.java")

Since:
RFT6.1.1.1

clickAccept

void clickAccept()
Clicks the button on the file dialog that is associated with recognition information. The recognition information associated with this button varies from host to host. Therefore, a more generic method is supplied to perform this functionality.

Example:
To open the file in the AWTBasic Java Application

fileDialog().clickAccept()

Since:
RFT6.1.1.1

clickCancel

void clickCancel()
Clicks the cancel button on the file dialog. The recognition information associated with this button varies from host to host. Therefore, a more generic method is supplied to perform this functionality.

Example:
To cancel the file dialog the AWTBasic Java Application

fileDialog().clickCancel(")

Since:
RFT6.1.1.1