public abstract class TopLevelWindowProxy extends ComponentProxy implements com.rational.test.ft.object.interfaces.ITopWindow
java.awt.Frame & java.awt.Window.
GuiTestObject
| Property | Usage |
|---|---|
| .class | The Java full class name of the test object. |
| .classIndex | The zero-based index of the class relative to the immediate parent in the object map. |
| .priorLabel | The text of a preceding label. Suppressed if there is no preceding label. |
| name | The name property, suppressed if default formatted (default form = className+count). |
ComponentProxy.ChildEnumerator, ComponentProxy.ImmediateChildEnumerator| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
CAPTION |
childrenEnumerated, 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 |
|---|
TopLevelWindowProxy(java.lang.Object theObjectInTheSUT)
This sole constructor for all proxy objects sets the SUT object
as a member variable for the proxy.
|
| Modifier and Type | Method and Description |
|---|---|
void |
activate()
This method causes the associated window control to become the
active window, if possible.
|
void |
clickDisabled()
All actions performed against an inactive window will be recorded as a call to this method.
|
void |
close()
This method closes the associated window.
|
void |
contextHelp() |
protected abstract com.rational.test.ft.script.CaptionText |
getCaption()
Returns the Title for the Frame object.
|
java.awt.Rectangle |
getClippedScreenRectangle() |
java.lang.String |
getDescriptiveName()
Returns a name that can be used to describe the associated UI
object in a script.
|
long |
getHandle()
Get the top-level window associated with this frame
and return its native handle.
|
java.awt.Rectangle |
getScreenRectangle()
Returns the rectangle that contains the component being
evaluated relative to the top left corner of the screen.
|
com.rational.test.ft.script.ScriptCommandFlags |
getScriptCommandFlags()
This method returns an active state value that reflects the state of the
test object at the time of the call.
|
protected com.rational.test.ft.sys.graphical.TopLevelWindow |
getTopLevelWindow()
Get the top-level window associated with this Frame.
|
java.awt.Rectangle |
getVisualClippedRectangle() |
void |
inputChars(java.lang.String keys)
This method sends the supplied characters to the associated window.
|
void |
inputKeys(java.lang.String keys)
This method sends the supplied characters to the associated window.
|
boolean |
isIconified() |
protected boolean |
isTopLevel()
Is this Frame a top-level window?
|
void |
maximize()
This method maximizes the associated window.
|
void |
minimize()
This method iconifies the associated window.
|
void |
move(java.awt.Point screenPt) |
void |
processSingleMouseEvent(com.rational.test.ft.domain.IMouseActionInfo action)
Return a MethodSpecification for the specified mouse event.
|
void |
resize(int width,
int height) |
void |
restore()
This method restores the associated window.
|
canBeScrolled, childConstructed, getChildAtPoint, getChildProxy, getChildrenEnumeration, getClippedRect, getComponentChildren, getElementWithFocus, getEmbeddedBrowsers, getImmediateChildren, getLabelText, getLeadingLabel, getLocationOnScreen, getMappableChildren, getMappableParent, getName, getOwnedObjects, getOwner, getParent, getParent2, getParentObject, getProperty, getRole, 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, getTestObjectClassName, 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, waitclick, 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 static final java.lang.String CAPTION
public TopLevelWindowProxy(java.lang.Object theObjectInTheSUT)
protected boolean isTopLevel()
protected abstract com.rational.test.ft.script.CaptionText getCaption()
public java.lang.String getDescriptiveName()
getDescriptiveName in class ComponentProxypublic com.rational.test.ft.script.ScriptCommandFlags getScriptCommandFlags()
JavaGuiProxygetScriptCommandFlags in class JavaGuiProxypublic void processSingleMouseEvent(com.rational.test.ft.domain.IMouseActionInfo action)
processSingleMouseEvent in class JavaGuiProxyaction - The event cache and other mouse state information
for this mouse action.MethodSpecificationpublic void inputKeys(java.lang.String keys)
inputKeys in interface com.rational.test.ft.object.interfaces.ITopWindowkeys - The characters to be processed by this window.public void inputChars(java.lang.String keys)
inputChars in interface com.rational.test.ft.object.interfaces.ITopWindowkeys - The characters to be processed by this window.public void activate()
activate in interface com.rational.test.ft.object.interfaces.ITopWindowpublic void close()
close in interface com.rational.test.ft.object.interfaces.IFramepublic void maximize()
maximize in interface com.rational.test.ft.object.interfaces.IFramepublic void minimize()
minimize in interface com.rational.test.ft.object.interfaces.IFramepublic void restore()
restore in interface com.rational.test.ft.object.interfaces.IFramepublic void resize(int width,
int height)
resize in interface com.rational.test.ft.object.interfaces.IFramepublic void move(java.awt.Point screenPt)
move in interface com.rational.test.ft.object.interfaces.IFramepublic boolean isIconified()
isIconified in interface com.rational.test.ft.object.interfaces.IFramepublic void contextHelp()
contextHelp in interface com.rational.test.ft.object.interfaces.IFramepublic void clickDisabled()
clickDisabled in interface com.rational.test.ft.object.interfaces.ITopWindowpublic long getHandle()
protected com.rational.test.ft.sys.graphical.TopLevelWindow getTopLevelWindow()
public java.awt.Rectangle getScreenRectangle()
ComponentProxygetScreenRectangle in interface com.rational.test.ft.object.interfaces.IGraphicalgetScreenRectangle in class ComponentProxypublic java.awt.Rectangle getClippedScreenRectangle()
getClippedScreenRectangle in interface com.rational.test.ft.object.interfaces.IGraphicalgetClippedScreenRectangle in class JavaGuiProxypublic java.awt.Rectangle getVisualClippedRectangle()
getVisualClippedRectangle in class com.rational.test.ft.domain.ProxyTestObject