|
IBM Rational Functional Tester Version 8.1.1000 IBM Rational Functional Tester Proxy SDK Reference Project Version 2.3 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.rational.test.ft.sys.RegisteredObject com.rational.test.ft.domain.ProxyTestObject com.rational.test.ft.domain.java.JavaProxy com.rational.test.ft.domain.java.JavaGuiProxy com.rational.test.ft.domain.java.awt.ComponentProxy com.rational.test.ft.domain.java.awt.TopLevelWindowProxy com.rational.test.ft.domain.java.awt.WindowProxy com.rational.test.ft.domain.java.awt.FileDialogProxy
public class FileDialogProxy
Proxy for AWT FileDialog objects.
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). |
Nested Class Summary |
---|
Nested classes/interfaces inherited from class com.rational.test.ft.domain.java.awt.ComponentProxy |
---|
ComponentProxy.ChildEnumerator, ComponentProxy.ImmediateChildEnumerator |
Field Summary |
---|
Fields inherited from class com.rational.test.ft.domain.java.awt.TopLevelWindowProxy |
---|
CAPTION |
Fields inherited from class com.rational.test.ft.domain.java.awt.ComponentProxy |
---|
childrenEnumerated, CLASSINDEX, CLASSINDEXWEIGHT, MAX_NAME, NAMEPROPERTY, NAMEPROPERTYWEIGHT, PRIORLABEL, PRIORLABELWEIGHT |
Fields inherited from class com.rational.test.ft.domain.java.JavaGuiProxy |
---|
LEFT, preDownState, processMouseEventHandler, ROLEINDEX, ROLEINDEXWEIGHT, TESTDATA_SPECIALFRAMESTATE, TESTDATA_SPECIALFRAMESTATE_DESCRIPTION, topLevelWindow |
Fields inherited from class com.rational.test.ft.domain.java.JavaProxy |
---|
debug, uniqueId |
Fields inherited from class com.rational.test.ft.sys.RegisteredObject |
---|
theTestObject |
Fields inherited from interface com.rational.test.ft.object.interfaces.ITopWindow |
---|
INPUTCHARS_METHOD, INPUTKEYS_METHOD |
Fields inherited from interface com.rational.test.ft.domain.IDataDriven |
---|
INCLUDE_ALL, INCLUDE_JUSTOBJECT, INCLUDE_SIBLINGS |
Constructor Summary | |
---|---|
FileDialogProxy(java.lang.Object theObjectInTheSUT)
Sets the SUT object as a member variable for the proxy. |
Method Summary | |
---|---|
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()
Activate the context-sensitive Help |
java.awt.Rectangle |
getClippedScreenRectangle()
Returns the clipped-screen rectangle for the associated TestObject |
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()
The optimized way to obtain the ClippedRectangle. |
void |
processSingleMouseEvent(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. |
Methods inherited from class com.rational.test.ft.domain.java.awt.WindowProxy |
---|
getCaption, getCaptionProperty |
Methods inherited from class com.rational.test.ft.domain.java.awt.TopLevelWindowProxy |
---|
clickDisabled, close, getDescriptiveName, getHandle, getScriptCommandFlags, inputChars, inputKeys, isIconified, isTopLevel, maximize, minimize, move, resize, restore |
Methods inherited from class com.rational.test.ft.domain.java.awt.ComponentProxy |
---|
canBeScrolled, childConstructed, getChildAtPoint, getChildProxy, getChildrenEnumeration, getClippedRect, getComponentChildren, getEmbeddedBrowsers, getImmediateChildren, getLabelText, getLeadingLabel, getLocationOnScreen, getMappableChildren, getMappableParent, getName, getOwnedObjects, getOwner, getParent, getParent2, getParentObject, getTopParent, getWindow, hasFocus, isDopeyDynamicName, isEnabled, isHScroll, isLabelled, isOpaque, isRecognitionProperty, isShowing, isVScroll, setParent |
Methods inherited from class com.rational.test.ft.domain.java.JavaGuiProxy |
---|
activateTopWindow, 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, isDrag, isPointInObject, isPointInObject, modifiersChanged, mouseMove, mouseMove, nClick, nClickDrag, nClickDragToScreenPoint, processHoverMouseEvent, processMouseEvent, scrollRectToVisible, setProcessMouseEventHandler, setTopLevelWindow, shouldBeMapped |
Methods inherited from class com.rational.test.ft.domain.java.JavaProxy |
---|
addMappableChildrenToVector, addRecognitionProperty, allowProperty, getAddedRecognitionPropertyValue, getChildren, getIndexer, getIndexers, getMethods, getNonValueProperties, getProperties, getRecognitionProperties, getRecognitionPropertyWeight, getStandardProperties, getTestDataTypes, getTestDomain, getTopMappableParent, getUniqueId, getVisualClippableParent, hasAddedRecognitionProperties, setIndexer, setProperty |
Methods inherited from class com.rational.test.ft.sys.RegisteredObject |
---|
addProxyReference, dereference, getObject, getRegisteredId, getTransactionId, isReferenced, isReleaseRequired, register, registerTransiently, release, toString, unregister |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface com.rational.test.ft.object.interfaces.ITopWindow |
---|
clickDisabled, inputChars, inputKeys |
Methods inherited from interface com.rational.test.ft.object.interfaces.IFrame |
---|
close, 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, getScreenPoint, getScreenPoint, hasFocus, hover, hover, hover, hover, isEnabled, isOpaque, isPointInObject, isShowing, mouseMove, mouseMove, nClick, nClickDrag, nClickDragToScreenPoint |
Constructor Detail |
---|
public FileDialogProxy(java.lang.Object theObjectInTheSUT)
Method Detail |
---|
protected com.rational.test.ft.sys.graphical.TopLevelWindow getTopLevelWindow()
TopLevelWindowProxy
getTopLevelWindow
in class TopLevelWindowProxy
public java.lang.String getTestObjectClassName()
IFileDialog
and ITopLevel
.
getTestObjectClassName
in interface IProxyBase
getTestObjectClassName
in class WindowProxy
public java.lang.String getRole()
TestObjectRole.ROLE_FILE_CHOOSER
.
getRole
in class WindowProxy
public java.lang.Object getProperty(java.lang.String propertyName)
getProperty
in class WindowProxy
propertyName
- The name of the property to fetch.
ProxyTestObject.getProperties()
,
ProxyTestObject.setProperty(String,Object)
,
ProxyTestObject.getRecognitionProperties()
,
ProxyTestObject.addRecognitionProperty(String,Object,int)
public void processSingleMouseEvent(IMouseActionInfo action)
processSingleMouseEvent
in class TopLevelWindowProxy
action
- The event cache and other mouse state information
for this mouse action.MethodSpecification
public java.awt.Rectangle getScreenRectangle()
getScreenRectangle
in interface com.rational.test.ft.object.interfaces.IGraphical
getScreenRectangle
in class TopLevelWindowProxy
IGraphical.isPointInObject(java.awt.Point)
,
IGraphical.getClippedScreenRectangle()
public java.awt.Rectangle getClippedScreenRectangle()
com.rational.test.ft.object.interfaces.IGraphical
TestObject
getClippedScreenRectangle
in interface com.rational.test.ft.object.interfaces.IGraphical
getClippedScreenRectangle
in class TopLevelWindowProxy
null
if the object cannot be seen
in any window on the screen.IGraphical.getScreenRectangle()
public java.awt.Rectangle getVisualClippedRectangle()
ProxyTestObject
getVisualClippedRectangle
in class TopLevelWindowProxy
public 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.ITopWindow
activate
in class TopLevelWindowProxy
public void setFile(java.lang.String file)
setFile
in interface com.rational.test.ft.object.interfaces.IFileDialog
file
- The full file path name for the desired file.public void clickAccept()
clickAccept
in interface com.rational.test.ft.object.interfaces.IFileDialog
public void clickCancel()
clickCancel
in interface com.rational.test.ft.object.interfaces.IFileDialog
public void contextHelp()
com.rational.test.ft.object.interfaces.IFrame
contextHelp
in interface com.rational.test.ft.object.interfaces.IFrame
contextHelp
in class TopLevelWindowProxy
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |