public class EditPartProxy extends JavaGuiProxy
| Modifier and Type | Field and Description |
|---|---|
protected static java.lang.String |
CLASSINDEX |
protected static int |
CLASSINDEXWEIGHT |
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, vomClippedRectangleINCLUDE_ALL, INCLUDE_JUSTOBJECT, INCLUDE_SIBLINGS| Constructor and Description |
|---|
EditPartProxy(java.lang.Object theObjectInTheSUT) |
| Modifier and Type | Method and Description |
|---|---|
void |
activateTopWindow()
Activate the editpart before clicking
|
IChannel |
getChannel()
return the channel for the object.
|
java.lang.Object |
getChildAtPoint(java.awt.Point pt)
Finds the child object that is at the specified point.
|
java.util.Enumeration |
getChildrenEnumeration()
Return an enumeration of mappable proxies for the children of this object.
|
java.awt.Rectangle |
getClippedScreenRectangle()
For connection edit parts we need to return the actual parent
|
ProxyTestObject[] |
getConnectors()
Return the connectors for the edit part
|
MethodSpecification |
getDataDrivableCommand()
This method must be implemented by any proxy that wishes to support
data driving.
|
java.lang.String |
getDescriptiveName()
Returns a name that can be used to describe the associated UI
object in a script.
|
java.lang.Object |
getFigure()
Return the figure for the given editpart
|
java.util.Enumeration |
getImmediateChildren()
Return an enumeration of proxies for the immediate children of this object.
|
ProxyTestObject |
getMappableParent()
Returns a proxy object for the mappable parent of this object.
|
java.lang.Object |
getModel()
Return the model for the theTestObject
|
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.util.Hashtable |
getProperties()
Returns a complete set of properties for the associated
test object.
|
java.lang.Object |
getProperty(java.lang.String propertyName)
Gets the value for a specific property.
|
java.lang.String |
getRole()
Returns a brief type name that describes the role this object plays in the
UI.
|
java.awt.Rectangle |
getScreenRectangle()
Returns the rectangle that contains the component being
evaluated relative to the top left corner of the screen.
|
java.util.Hashtable |
getStandardProperties()
For Java, the definition for standard properties is the same
as
getProperties(). |
ITestData |
getTestData(java.lang.String testDataType)
This method constructs the specified verification data object.
|
java.util.Hashtable |
getTestDataTypes()
Returns a hashtable of data type descriptions of the verification
point data available with the associated object in the SUT.
|
java.lang.String |
getTestObjectClassName()
The default GUI test object classname is returned.
|
java.lang.String |
getText() |
java.awt.Rectangle |
getVisualClippedRectangle()
The optimized way to obtain the ClippedRectangle.
|
boolean |
hasFocus()
Check the component under evaluation to determine if it has
keyboard focus.
|
boolean |
isConnector()
Return true if the editpart is connection based
|
boolean |
isEnabled()
Check the component under evaluation to determine if it is
enabled or disabled.
|
boolean |
isShowing()
Check the component under evaluation to determine if it is
showing (as opposed to hidden).
|
void |
nClick(int clickCount,
MouseModifiers modifiers,
java.awt.Point pt)
Perform a mouse n-click action on the specified coordinates relative
to the associated TestObject.
|
void |
scrollRectToVisible(java.awt.Rectangle rect)
Scrolls the viewport(if it exists) so that the rectangle within the viewport
becomes visible.
|
void |
setText(java.lang.String text)
Set the text for the labelled edit part
|
boolean |
shouldBeMapped()
Returns true; by default all test objects are mapped.
|
click, click, click, doubleClick, doubleClick, doubleClick, drag, drag, drag, drag, dragToScreenPoint, dragToScreenPoint, dragToScreenPoint, dumpAction, ensureObjectIsVisible, getActionRect, getCachedRectX, getCachedRectY, getClippedRect, getMethodSpecForPoint, getProcessMouseEventHandler, getRegisteredTopLevelWindow, getScreenPoint, getScreenPoint, getScriptCommandFlags, getTopMappableWindow, getTopWindow, hover, hover, hover, hover, invokeMethodOnEDT, isDrag, isOpaque, isPointInObject, isPointInObject, modifiersChanged, mouseMove, mouseMove, nClickDrag, nClickDragToScreenPoint, processHoverMouseEvent, processMouseEvent, processSingleMouseEvent, setProcessMouseEventHandler, setTopLevelWindowaddMappableChildrenToVector, addRecognitionProperty, allowProperty, childConstructed, getAddedRecognitionPropertyValue, getChildren, getIndexer, getIndexers, getMappableChildren, getMethods, getNonValueProperties, getOwnedObjects, getOwner, getRecognitionProperties, getRecognitionPropertyWeight, getTestDomain, getTopMappableParent, getTopParent, getUniqueId, getVisualClippableParent, hasAddedRecognitionProperties, isRecognitionProperty, setIndexer, setPropertyaddDataDrivableCommands, baseClassMatch, canTakeVP, equals, findChildrenWithProperties, findChildrenWithPropertiesAndInvoke, getChildren, getDataDrivableCommands, getElementWithFocus, getField, getIgnorableProperties, getMappableChildren, getMappableParent, getObjectClassName, getObjectCustomClassName, getOwnedObjects, getParent, getProxy, getScriptCommandAnchor, getVisualMappableChildren, getVisualTopParent, getVOMSpecificProperty, hasSpecialFrameState, isClassIndexConsidered, isSameObject, isValidObject, ping, suppressKeyAction, updateTestDataprotected static final java.lang.String CLASSINDEX
protected static final int CLASSINDEXWEIGHT
public java.util.Enumeration getChildrenEnumeration()
JavaGuiProxygetChildrenEnumeration in class JavaGuiProxypublic java.lang.String getDescriptiveName()
JavaGuiProxygetDescriptiveName in class JavaGuiProxypublic java.util.Enumeration getImmediateChildren()
JavaGuiProxygetImmediateChildren in class JavaGuiProxypublic ProxyTestObject getMappableParent()
JavaGuiProxygetMappableParent in class JavaGuiProxypublic ProxyTestObject getParent()
JavaGuiProxygetParent in class JavaGuiProxypublic java.lang.Object getParentObject()
JavaGuiProxynull if this
object has no parent.getParentObject in class JavaGuiProxypublic java.awt.Rectangle getScreenRectangle()
JavaGuiProxygetScreenRectangle in class JavaGuiProxypublic boolean hasFocus()
JavaGuiProxyhasFocus in class JavaGuiProxypublic boolean isEnabled()
JavaGuiProxyisEnabled in class JavaGuiProxypublic boolean isShowing()
JavaGuiProxyisShowing in class JavaGuiProxypublic java.lang.String getText()
public java.lang.Object getProperty(java.lang.String propertyName)
JavaProxygetProperty in class JavaProxypropertyName - The name of the property to fetch.ProxyTestObject.getProperties(),
ProxyTestObject.setProperty(String,Object),
ProxyTestObject.getRecognitionProperties(),
ProxyTestObject.addRecognitionProperty(String,Object,int)public java.lang.Object getModel()
public java.util.Hashtable getProperties()
ProxyTestObject
This method does not return properties whose values are references
to objects. The method ProxyTestObject.getNonValueProperties() returns
information about such properties.
getProperties in class JavaProxyProxyTestObject.getProperty(String),
ProxyTestObject.setProperty(String,Object),
ProxyTestObject.getStandardProperties(),
ProxyTestObject.getNonValueProperties()public java.util.Hashtable getStandardProperties()
JavaProxygetProperties().getStandardProperties in class JavaProxyJavaProxy.getProperties()public IChannel getChannel()
getChannel in class ProxyTestObjectpublic void activateTopWindow()
activateTopWindow in class JavaGuiProxypublic void scrollRectToVisible(java.awt.Rectangle rect)
scrollRectToVisible in class JavaGuiProxypublic java.util.Hashtable getTestDataTypes()
getTestDataTypes in class JavaProxygetTestData(String),
ITestDatapublic ITestData getTestData(java.lang.String testDataType)
getTestDataTypes.getTestData in class ProxyTestObjecttestDataType - A test data type supplied by
getTestDataTypes.getTestDataTypes(),
ITestDatapublic java.lang.Object getChildAtPoint(java.awt.Point pt)
If this object has no children, it should return null.
getChildAtPoint in class JavaGuiProxypt - Screen relative point to check.getScreenRectangle()public java.awt.Rectangle getClippedScreenRectangle()
getClippedScreenRectangle in class JavaGuiProxypublic java.awt.Rectangle getVisualClippedRectangle()
ProxyTestObjectgetVisualClippedRectangle in class ProxyTestObjectpublic java.lang.String getRole()
ProxyTestObjectjava.awt.Button might return button.
There are suggested role constants in the TestObjectRole
class. However, proxies are not limited to these constants.
The role is used for several purposes by the test infrastructure. First, the
role can be used in the construction of object names in scripts, augmenting
the name returned by getDescriptiveName().
The role is also used in the UI to decorate nodes in the map with icons that
help users quickly associate the nodes with the roles they play in the system
under test.
public java.lang.String getTestObjectClassName()
getTestObjectClassName in interface IProxyBasegetTestObjectClassName in class JavaGuiProxypublic void setText(java.lang.String text)
text - public MethodSpecification getDataDrivableCommand()
null value is returned.getDataDrivableCommand in interface IDataDrivengetDataDrivableCommand in class ProxyTestObjectProxyTestObject.getDataDrivableCommands(int)public java.lang.Object getFigure()
public void nClick(int clickCount,
MouseModifiers modifiers,
java.awt.Point pt)
nClick in class JavaGuiProxypublic boolean shouldBeMapped()
shouldBeMapped in class JavaGuiProxypublic ProxyTestObject[] getConnectors()
editPart - public boolean isConnector()