public abstract class TopLevelWindowProxy extends ComponentProxy
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, vomClippedRectangleINCLUDE_ALL, INCLUDE_JUSTOBJECT, INCLUDE_SIBLINGS| 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 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.
|
ScriptCommandFlags |
getScriptCommandFlags()
This method returns an active state value that reflects the state of the
test object at the time of the call.
|
protected TopLevelWindow |
getTopLevelWindow()
Get the top-level window associated with this Frame.
|
java.awt.Rectangle |
getVisualClippedRectangle()
The optimized way to obtain the ClippedRectangle.
|
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(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, 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, updateTestDatapublic static final java.lang.String CAPTION
public TopLevelWindowProxy(java.lang.Object theObjectInTheSUT)
protected boolean isTopLevel()
protected abstract CaptionText getCaption()
public java.lang.String getDescriptiveName()
getDescriptiveName in class ComponentProxypublic ScriptCommandFlags getScriptCommandFlags()
JavaGuiProxygetScriptCommandFlags in class JavaGuiProxypublic void processSingleMouseEvent(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)
keys - The characters to be processed by this window.public void inputChars(java.lang.String keys)
keys - The characters to be processed by this window.public void activate()
public void close()
public void maximize()
public void minimize()
public void restore()
public void resize(int width,
int height)
public void move(java.awt.Point screenPt)
public boolean isIconified()
public void contextHelp()
public void clickDisabled()
public long getHandle()
protected TopLevelWindow getTopLevelWindow()
public java.awt.Rectangle getScreenRectangle()
ComponentProxygetScreenRectangle in class ComponentProxypublic java.awt.Rectangle getClippedScreenRectangle()
getClippedScreenRectangle in class JavaGuiProxypublic java.awt.Rectangle getVisualClippedRectangle()
ProxyTestObjectgetVisualClippedRectangle in class ProxyTestObject