public class FileDialogProxy extends WindowProxy implements com.rational.test.ft.object.interfaces.IFileDialog, com.rational.test.ft.object.interfaces.ITopWindow
FileDialogTestObject
| Property | Usage |
|---|---|
| .captionText | The visible text on the window titlebar. |
| .class | The Java full class name of the test object. |
| .mode | Either Load or Save depending on the mode of the dialog. |
| name | The name property, suppressed if default formatted (default form = className+count). |
ComponentProxy.ChildEnumerator, ComponentProxy.ImmediateChildEnumeratorCAPTIONchildrenEnumerated, CLASSINDEX, CLASSINDEXWEIGHT, MAX_NAME, NAMEPROPERTY, NAMEPROPERTYWEIGHT, PRIORLABEL, PRIORLABELWEIGHTLEFT, preDownState, processMouseEventHandler, ROLEINDEX, ROLEINDEXWEIGHT, TESTDATA_SPECIALFRAMESTATE, TESTDATA_SPECIALFRAMESTATE_DESCRIPTION, topLevelWindowBROWSERTABTESTOBJECT_CLASSNAME, BROWSERTESTOBJECT_CLASSNAME, COLORDIALOGTESTOBJECT_CLASSNAME, CROSSDOMAINCONTAINER_CLASSNAME, DOCUMENTTESTOBJECT_CLASSNAME, DOMAINTESTOBJECT_CLASSNAME, ECLIPSETOPLEVELTESTOBJECT_CLASSNAME, EMBEDDEDBROWSERTESTOBJECT_CLASSNAME, FILEDIALOGTESTOBJECT_CLASSNAME, FRAMESUBITEMTESTOBJECT_CLASSNAME, FRAMETESTOBJECT_CLASSNAME, GEFEDITPARTTESTOBJECT_CLASSNAME, GUISUBITEMTESTOBJECT_CLASSNAME, GUITESTOBJECT_CLASSNAME, INTERNALFRAMETESTOBJECT_CLASSNAME, MESSAGEBOXTESTOBJECT_CLASSNAME, PALETTEGUISUBITEMTESTOBJECT_CLASSNAME, PROCESSTESTOBJECT_CLASSNAME, SCROLLSUBITEMTESTOBJECT_CLASSNAME, SCROLLTESTOBJECT_CLASSNAME, SELECTGUISUBITEMTESTOBJECT_CLASSNAME, SELECTSCROLLGUISUBITEMTESTOBJECT_CLASSNAME, SHELLTESTOBJECT_CLASSNAME, STATELESSGUISUBITEMTESTOBJECT_CLASSNAME, SUBITEMTESTOBJECT_CLASSNAME, TABITEMTESTOBJECT_CLASSNAME, TESTOBJECT_CLASSNAME, TEXTGUISUBITEMTESTOBJECT_CLASSNAME, TEXTGUITESTOBJECT_CLASSNAME, TEXTSCROLLTESTOBJECT_CLASSNAME, TEXTSELECTGUISUBITEMTESTOBJECT_CLASSNAME, TIMEOUTTESTOBJECT_CLASSNAME, TOGGLEGUITESTOBJECT_CLASSNAME, TOGGLETESTOBJECT_CLASSNAME, TOPLEVELSUBITEMTESTOBJECT_CLASSNAME, TOPLEVELTESTOBJECT_CLASSNAME, TRACKBARTESTOBJECT_CLASSNAME, vomClippedRectangle| Constructor and Description |
|---|
FileDialogProxy(java.lang.Object theObjectInTheSUT)
Sets the SUT object
as a member variable for the proxy.
|
| Modifier and Type | Method and Description |
|---|---|
void |
activate()
Causes the associated window control to become the
active window if possible.
|
void |
clickAccept()
Clicks on the
button on the file dialog that does the accepting.
|
void |
clickCancel()
Clicks on the cancel button on the file dialog.
|
void |
contextHelp() |
java.awt.Rectangle |
getClippedScreenRectangle() |
java.lang.Object |
getProperty(java.lang.String propertyName)
Gets the value for a specific property.
|
java.lang.String |
getRole()
Returns
TestObjectRole.ROLE_FILE_CHOOSER. |
java.awt.Rectangle |
getScreenRectangle()
Returns the rectangle that contains the component being
evaluated relative to the top left corner of the screen.
|
java.lang.String |
getTestObjectClassName()
Returns the top level GUI test object that implements
IFileDialog and ITopLevel. |
protected com.rational.test.ft.sys.graphical.TopLevelWindow |
getTopLevelWindow()
Get the top-level window associated with this Frame.
|
java.awt.Rectangle |
getVisualClippedRectangle() |
void |
processSingleMouseEvent(com.rational.test.ft.domain.IMouseActionInfo action)
Returns a method specification for the specified mouse event.
|
void |
setFile(java.lang.String file)
Sets the full path name specified in the associated file dialog
window.
|
getCaption, getCaptionPropertyclickDisabled, close, getDescriptiveName, getHandle, getScriptCommandFlags, inputChars, inputKeys, isIconified, isTopLevel, maximize, minimize, move, resize, restorecanBeScrolled, childConstructed, getChildAtPoint, getChildProxy, getChildrenEnumeration, getClippedRect, getComponentChildren, getElementWithFocus, getEmbeddedBrowsers, getImmediateChildren, getLabelText, getLeadingLabel, getLocationOnScreen, getMappableChildren, getMappableParent, getName, getOwnedObjects, getOwner, getParent, getParent2, getParentObject, getTopParent, getWindow, hasFocus, isDopeyDynamicName, isEnabled, isHScroll, isLabelled, isOpaque, isRecognitionProperty, isShowing, isVScroll, setParentactivateTopWindow, click, click, click, click, doubleClick, doubleClick, doubleClick, doubleClick, drag, drag, drag, drag, dragToScreenPoint, dragToScreenPoint, dragToScreenPoint, dumpAction, ensureObjectIsVisible, getActionRect, getCachedRectX, getCachedRectY, getMethodSpecForPoint, getProcessMouseEventHandler, getRegisteredTopLevelWindow, getScreenPoint, getScreenPoint, getTopMappableWindow, getTopWindow, hover, hover, hover, hover, invokeMethodOnEDT, isDrag, isPointInObject, isPointInObject, modifiersChanged, mouseMove, mouseMove, nClick, nClickDrag, nClickDragToScreenPoint, processHoverMouseEvent, processMouseEvent, scrollRectToVisible, setProcessMouseEventHandler, setTopLevelWindow, shouldBeMappedaddMappableChildrenToVector, addRecognitionProperty, allowProperty, getAddedRecognitionPropertyValue, getChildren, getIndexer, getIndexers, getMethods, getNonValueProperties, getProperties, getRecognitionProperties, getRecognitionPropertyWeight, getStandardProperties, getTestDataTypes, getTestDomain, getTopMappableParent, getUniqueId, getVisualClippableParent, hasAddedRecognitionProperties, setIndexer, setPropertyaddDataDrivableCommands, baseClassMatch, canTakeVP, equals, findChildrenWithProperties, findChildrenWithPropertiesAndInvoke, getChannel, getChildren, getDataDrivableCommand, getDataDrivableCommands, getField, getIgnorableProperties, getMappableChildren, getMappableParent, getObjectClassName, getObjectCustomClassName, getOwnedObjects, getParent, getProxy, getScriptCommandAnchor, getTestData, getVisualMappableChildren, getVisualTopParent, getVOMSpecificProperty, hasSpecialFrameState, isClassIndexConsidered, isSameObject, isValidObject, ping, suppressKeyAction, updateTestDataaddProxyReference, dereference, getObject, getRegisteredId, getTransactionId, isReferenced, isReleaseRequired, register, registerTransiently, release, toString, unregisterclone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitclickDisabled, inputChars, inputKeysclose, isIconified, maximize, minimize, move, resize, restoreclick, click, click, click, doubleClick, doubleClick, doubleClick, doubleClick, drag, drag, drag, drag, dragToScreenPoint, dragToScreenPoint, dragToScreenPoint, getChildAtPoint, getScreenPoint, getScreenPoint, hasFocus, hover, hover, hover, hover, isEnabled, isOpaque, isPointInObject, isShowing, mouseMove, mouseMove, nClick, nClickDrag, nClickDragToScreenPointpublic FileDialogProxy(java.lang.Object theObjectInTheSUT)
protected com.rational.test.ft.sys.graphical.TopLevelWindow getTopLevelWindow()
TopLevelWindowProxygetTopLevelWindow in class TopLevelWindowProxypublic java.lang.String getTestObjectClassName()
IFileDialog and ITopLevel.getTestObjectClassName in interface com.rational.test.ft.domain.IProxyBasegetTestObjectClassName in class WindowProxypublic java.lang.String getRole()
TestObjectRole.ROLE_FILE_CHOOSER.getRole in class WindowProxypublic java.lang.Object getProperty(java.lang.String propertyName)
getProperty in class WindowProxypublic void processSingleMouseEvent(com.rational.test.ft.domain.IMouseActionInfo action)
processSingleMouseEvent in class TopLevelWindowProxyaction - The event cache and other mouse state information
for this mouse action.MethodSpecificationpublic java.awt.Rectangle getScreenRectangle()
getScreenRectangle in interface com.rational.test.ft.object.interfaces.IGraphicalgetScreenRectangle in class TopLevelWindowProxypublic java.awt.Rectangle getClippedScreenRectangle()
getClippedScreenRectangle in interface com.rational.test.ft.object.interfaces.IGraphicalgetClippedScreenRectangle in class TopLevelWindowProxypublic java.awt.Rectangle getVisualClippedRectangle()
getVisualClippedRectangle in class TopLevelWindowProxypublic void activate()
SetForegroundWindow). If it is not possible to
activate the window, an appropriate exception
is thrown. Common causes for the window to not become active
are that another window is modal or that the window is not displayable.
Frame.activate is generally called before any UI action
that occurs on a component in the frame. For instance,
JavaGuiProxy.click() calls activateTopWindow(), which
in most cases makes its way to Frame.activate. (This assumes
that the top window to be activated is a frame.)activate in interface com.rational.test.ft.object.interfaces.ITopWindowactivate in class TopLevelWindowProxypublic void setFile(java.lang.String file)
setFile in interface com.rational.test.ft.object.interfaces.IFileDialogfile - The full file path name for the desired file.public void clickAccept()
clickAccept in interface com.rational.test.ft.object.interfaces.IFileDialogpublic void clickCancel()
clickCancel in interface com.rational.test.ft.object.interfaces.IFileDialogpublic void contextHelp()
contextHelp in interface com.rational.test.ft.object.interfaces.IFramecontextHelp in class TopLevelWindowProxy