public class ShellProxy extends ControlProxy implements com.rational.test.ft.object.interfaces.ITopWindow, IMenuBarHost
org.eclipse.swt.widgets.Shell.
TopLevelTestObject
| 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. |
| .groupText | The text of a group parent. Only available if parent is a group. Omitted if the group parent has no visible text. |
| .toolTipText | The text from the associated tool tip, omitted if there is no associated tool tip. |
| .captionText | The visible text on the window titlebar. |
ControlProxy.ChildEnumerator, ControlProxy.ImmediateChildEnumerator| Modifier and Type | Field and Description |
|---|---|
protected static java.lang.String |
CAPTION |
static java.lang.String |
INPUTKEYS_METHOD
The name of the inputKeys method.
|
childrenEnumerated, CLASSINDEX, CLASSINDEXWEIGHT, clickArgs, currentMethod, GROUPTEXT, GROUPTEXTWEIGHT, HANDLE, MAPPABLECLASSINDEX, MAPPABLECLASSINDEXWEIGHT, MAX_NAME, predownScreenRect, PRIORLABEL, PRIORLABELWEIGHT, TOOLTIPTEXT, TOOLTIPTEXTWEIGHTLEFT, 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 |
|---|
ShellProxy(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() |
void |
close()
This method closes the associated window.
|
void |
contextHelp() |
protected com.rational.test.ft.script.CaptionText |
getCaption()
Returns the Title for the Frame object.
|
java.util.Enumeration |
getChildrenEnumeration()
Returns a proxy object for the owner of this object.
|
java.lang.String |
getDescriptiveName()
Returns a name that can be used to describe the associated UI
object in a script.
|
com.rational.test.ft.domain.ProxyTestObject |
getEclipsePlatformObject() |
long |
getHandle()
Get the value for the handle field.
|
java.util.Enumeration |
getImmediateChildren()
Return an enumeration of proxies for the immediate children
of this object.
|
com.rational.test.ft.domain.ProxyTestObject |
getMenuBar()
Return the menu bar associated with this frame.
|
java.lang.Object |
getProperty(java.lang.String propertyName)
Get the value for a specific property.
|
java.lang.String |
getRole()
Returns
TestObjectRole.ROLE_FRAME. |
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.
|
java.lang.String |
getTestObjectClassName()
Returns the classname of a top level gui test object.
|
java.lang.String |
getText() |
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() |
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.
|
childConstructed, getActionArgs, getChannel, getChildProxy, getClippedScreenRectangle, getDefaultActionArgs, getElementWithFocus, getLabelText, getLeadingLabel, getLocationOnScreen, getMappableParent, getName, getOwnedObjects, getOwner, getParent, getParentObject, getReorderedChildren, getStyle, getToolTipText, getTopMappableParent, getTopParent, getVisualClippedRectangle, hasFocus, isEnabled, isGTK, isLabelled, isObjectMoved, isShell, isShowing, processHoverMouseEvent, processPreDownMouseEvent, processPreUpMouseEvent, scrollRectToVisible, setClickArgs, setDownPointArgs, setDrag, setMethodSpecification, setMultiClickAction, setRecordCacheactivateTopWindow, click, click, click, click, doubleClick, doubleClick, doubleClick, doubleClick, drag, drag, drag, drag, dragToScreenPoint, dragToScreenPoint, dragToScreenPoint, dumpAction, ensureObjectIsVisible, getActionRect, getCachedRectX, getCachedRectY, getChildAtPoint, getClippedRect, getMethodSpecForPoint, getProcessMouseEventHandler, getRegisteredTopLevelWindow, getScreenPoint, getScreenPoint, getTopMappableWindow, getTopWindow, hover, hover, hover, hover, invokeMethodOnEDT, isDrag, isOpaque, isPointInObject, isPointInObject, modifiersChanged, mouseMove, mouseMove, nClick, nClickDrag, nClickDragToScreenPoint, processMouseEvent, setProcessMouseEventHandler, setTopLevelWindow, shouldBeMappedaddMappableChildrenToVector, addRecognitionProperty, allowProperty, getAddedRecognitionPropertyValue, getChildren, getIndexer, getIndexers, getMappableChildren, getMethods, getNonValueProperties, getProperties, getRecognitionProperties, getRecognitionPropertyWeight, getStandardProperties, getTestDataTypes, getTestDomain, getUniqueId, getVisualClippableParent, hasAddedRecognitionProperties, isRecognitionProperty, setIndexer, setPropertyaddDataDrivableCommands, baseClassMatch, canTakeVP, equals, findChildrenWithProperties, findChildrenWithPropertiesAndInvoke, 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, getClippedScreenRectangle, getScreenPoint, getScreenPoint, hasFocus, hover, hover, hover, hover, isEnabled, isOpaque, isPointInObject, isShowing, mouseMove, mouseMove, nClick, nClickDrag, nClickDragToScreenPointprotected static final java.lang.String CAPTION
public static final java.lang.String INPUTKEYS_METHOD
public ShellProxy(java.lang.Object theObjectInTheSUT)
public java.lang.String getRole()
TestObjectRole.ROLE_FRAME.getRole in class ControlProxypublic java.lang.String getDescriptiveName()
getDescriptiveName in class ControlProxypublic 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 boolean isIconified()
isIconified 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 void contextHelp()
contextHelp in interface com.rational.test.ft.object.interfaces.IFramepublic void clickDisabled()
clickDisabled in interface com.rational.test.ft.object.interfaces.ITopWindowprotected com.rational.test.ft.script.CaptionText getCaption()
public java.lang.Object getProperty(java.lang.String propertyName)
getProperty in class ControlProxypublic java.lang.String getTestObjectClassName()
getTestObjectClassName in interface com.rational.test.ft.domain.IProxyBasegetTestObjectClassName in class JavaGuiProxypublic java.lang.String getText()
public com.rational.test.ft.domain.ProxyTestObject getMenuBar()
null should be returned.getMenuBar in interface IMenuBarHostpublic java.util.Enumeration getChildrenEnumeration()
getChildrenEnumeration in class ControlProxypublic java.util.Enumeration getImmediateChildren()
getImmediateChildren in class ControlProxypublic java.awt.Rectangle getScreenRectangle()
ControlProxygetScreenRectangle in interface com.rational.test.ft.object.interfaces.IGraphicalgetScreenRectangle in class ControlProxypublic 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 long getHandle()
ControlProxygetHandle in class ControlProxypublic com.rational.test.ft.domain.ProxyTestObject getEclipsePlatformObject()