public abstract class WidgetProxy extends JavaGuiProxy
org.eclipse.swt.widgets.Widget.
TestObject
| 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. |
| Modifier and Type | Class and Description |
|---|---|
protected class |
WidgetProxy.ChildEnumerator |
protected class |
WidgetProxy.ImmediateChildEnumerator |
| Modifier and Type | Field and Description |
|---|---|
protected static java.lang.String |
CLASSINDEX |
protected static int |
CLASSINDEXWEIGHT |
protected static java.lang.String |
MAPPABLECLASSINDEX |
protected static int |
MAPPABLECLASSINDEXWEIGHT |
protected static int |
MAX_NAME |
LEFT, 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 |
|---|
WidgetProxy(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 |
|---|---|
com.rational.test.ft.domain.IChannel |
getChannel()
return a channel for the object.
|
protected com.rational.test.ft.domain.ProxyTestObject |
getChildProxy(java.lang.Object childObject) |
java.util.Enumeration |
getChildrenEnumeration()
Return an enumeration of proxies for the children
of this object.
|
java.lang.String |
getDescriptiveName()
Returns a name that can be used to describe the associated UI
object in a script.
|
java.util.Enumeration |
getImmediateChildren()
Return an enumeration of proxies for the children of this object.
|
protected java.lang.String |
getLeadingLabel()
This method is used to generate an interesting descriptive name
for controls without persistent text.
|
java.awt.Point |
getLocationOnScreen()
Return the location on the screen.
|
com.rational.test.ft.domain.ProxyTestObject |
getMappableParent()
Returns a proxy object for the parent of this object.
|
java.lang.String |
getName()
get the name of the object
|
com.rational.test.ft.domain.ProxyTestObject[] |
getOwnedObjects()
Return an array of proxies for the objects owned
by this object.
|
com.rational.test.ft.domain.ProxyTestObject |
getOwner()
Returns a proxy object for the owner of this object.
|
com.rational.test.ft.domain.ProxyTestObject |
getParent()
Returns a proxy object for the parent of this object.
|
java.lang.Object |
getParentObject()
Returns an object for the parent of this object.
|
java.lang.Object |
getProperty(java.lang.String propertyName)
Get the value for a specific property.
|
java.lang.String |
getRole()
Returns
TestObjectRole.ROLE_SWT. |
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.domain.ProxyTestObject |
getTopMappableParent()
Returns a proxy object for the top parent of this object.
|
com.rational.test.ft.domain.ProxyTestObject |
getTopParent()
Returns a proxy object for the top parent of this object.
|
boolean |
hasFocus()
The hasFocus method is private in the SWT
world, so this method always returns false.
|
activateTopWindow, click, click, click, click, doubleClick, doubleClick, doubleClick, doubleClick, drag, drag, drag, drag, dragToScreenPoint, dragToScreenPoint, dragToScreenPoint, dumpAction, ensureObjectIsVisible, getActionRect, getCachedRectX, getCachedRectY, getChildAtPoint, getClippedRect, getClippedScreenRectangle, getMethodSpecForPoint, getProcessMouseEventHandler, getRegisteredTopLevelWindow, getScreenPoint, getScreenPoint, getScriptCommandFlags, getTestObjectClassName, getTopMappableWindow, getTopWindow, hover, hover, hover, hover, invokeMethodOnEDT, isDrag, isEnabled, isOpaque, isPointInObject, isPointInObject, isShowing, modifiersChanged, mouseMove, mouseMove, nClick, nClickDrag, nClickDragToScreenPoint, processHoverMouseEvent, processMouseEvent, processSingleMouseEvent, scrollRectToVisible, setProcessMouseEventHandler, setTopLevelWindow, shouldBeMappedaddMappableChildrenToVector, addRecognitionProperty, allowProperty, childConstructed, 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, getElementWithFocus, getField, getIgnorableProperties, getMappableChildren, getMappableParent, getObjectClassName, getObjectCustomClassName, getOwnedObjects, getParent, getProxy, getScriptCommandAnchor, getTestData, getVisualClippedRectangle, getVisualMappableChildren, getVisualTopParent, getVOMSpecificProperty, hasSpecialFrameState, isClassIndexConsidered, isSameObject, isValidObject, ping, suppressKeyAction, updateTestDataprotected static final int MAX_NAME
protected static final java.lang.String CLASSINDEX
protected static final int CLASSINDEXWEIGHT
protected static final java.lang.String MAPPABLECLASSINDEX
protected static final int MAPPABLECLASSINDEXWEIGHT
public WidgetProxy(java.lang.Object theObjectInTheSUT)
public java.lang.String getName()
public java.lang.String getDescriptiveName()
getDescriptiveName in class JavaGuiProxypublic java.lang.String getRole()
TestObjectRole.ROLE_SWT.public java.lang.Object getProperty(java.lang.String propertyName)
getProperty in class JavaProxypublic boolean hasFocus()
hasFocus in interface com.rational.test.ft.object.interfaces.IGraphicalhasFocus in class JavaGuiProxypublic java.awt.Rectangle getScreenRectangle()
getScreenRectangle in interface com.rational.test.ft.object.interfaces.IGraphicalgetScreenRectangle in class JavaGuiProxypublic java.awt.Point getLocationOnScreen()
public com.rational.test.ft.domain.ProxyTestObject getParent()
getParent in class JavaGuiProxypublic java.lang.Object getParentObject()
getParentObject in class JavaGuiProxypublic com.rational.test.ft.domain.ProxyTestObject getMappableParent()
getMappableParent in class JavaGuiProxypublic com.rational.test.ft.domain.ProxyTestObject getTopParent()
getTopParent in class JavaProxypublic com.rational.test.ft.domain.ProxyTestObject getTopMappableParent()
getTopMappableParent in class JavaProxyprotected com.rational.test.ft.domain.ProxyTestObject getChildProxy(java.lang.Object childObject)
public java.util.Enumeration getChildrenEnumeration()
getChildrenEnumeration in class JavaGuiProxypublic java.util.Enumeration getImmediateChildren()
getImmediateChildren in class JavaGuiProxypublic com.rational.test.ft.domain.ProxyTestObject getOwner()
public com.rational.test.ft.domain.ProxyTestObject[] getOwnedObjects()
getOwnedObjects in class JavaProxyprotected java.lang.String getLeadingLabel()
public com.rational.test.ft.domain.IChannel getChannel()
getChannel in interface com.rational.test.ft.domain.IChannelObjectgetChannel in class com.rational.test.ft.domain.ProxyTestObject