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, topLevelWindow
BROWSERTABTESTOBJECT_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
INCLUDE_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, setTopLevelWindow
addMappableChildrenToVector, addRecognitionProperty, allowProperty, childConstructed, getAddedRecognitionPropertyValue, getChildren, getIndexer, getIndexers, getMappableChildren, getMethods, getNonValueProperties, getOwnedObjects, getOwner, getRecognitionProperties, getRecognitionPropertyWeight, getTestDomain, getTopMappableParent, getTopParent, getUniqueId, getVisualClippableParent, hasAddedRecognitionProperties, isRecognitionProperty, setIndexer, setProperty
addDataDrivableCommands, 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, updateTestData
protected static final java.lang.String CLASSINDEX
protected static final int CLASSINDEXWEIGHT
public java.util.Enumeration getChildrenEnumeration()
JavaGuiProxy
getChildrenEnumeration
in class JavaGuiProxy
public java.lang.String getDescriptiveName()
JavaGuiProxy
getDescriptiveName
in class JavaGuiProxy
public java.util.Enumeration getImmediateChildren()
JavaGuiProxy
getImmediateChildren
in class JavaGuiProxy
public ProxyTestObject getMappableParent()
JavaGuiProxy
getMappableParent
in class JavaGuiProxy
public ProxyTestObject getParent()
JavaGuiProxy
getParent
in class JavaGuiProxy
public java.lang.Object getParentObject()
JavaGuiProxy
null
if this
object has no parent.getParentObject
in class JavaGuiProxy
public java.awt.Rectangle getScreenRectangle()
JavaGuiProxy
getScreenRectangle
in class JavaGuiProxy
public boolean hasFocus()
JavaGuiProxy
hasFocus
in class JavaGuiProxy
public boolean isEnabled()
JavaGuiProxy
isEnabled
in class JavaGuiProxy
public boolean isShowing()
JavaGuiProxy
isShowing
in class JavaGuiProxy
public java.lang.String getText()
public java.lang.Object getProperty(java.lang.String propertyName)
JavaProxy
getProperty
in class JavaProxy
propertyName
- 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 JavaProxy
ProxyTestObject.getProperty(String)
,
ProxyTestObject.setProperty(String,Object)
,
ProxyTestObject.getStandardProperties()
,
ProxyTestObject.getNonValueProperties()
public java.util.Hashtable getStandardProperties()
JavaProxy
getProperties()
.getStandardProperties
in class JavaProxy
JavaProxy.getProperties()
public IChannel getChannel()
getChannel
in class ProxyTestObject
public void activateTopWindow()
activateTopWindow
in class JavaGuiProxy
public void scrollRectToVisible(java.awt.Rectangle rect)
scrollRectToVisible
in class JavaGuiProxy
public java.util.Hashtable getTestDataTypes()
getTestDataTypes
in class JavaProxy
getTestData(String)
,
ITestData
public ITestData getTestData(java.lang.String testDataType)
getTestDataTypes
.getTestData
in class ProxyTestObject
testDataType
- A test data type supplied by
getTestDataTypes
.getTestDataTypes()
,
ITestData
public java.lang.Object getChildAtPoint(java.awt.Point pt)
If this object has no children, it should return null
.
getChildAtPoint
in class JavaGuiProxy
pt
- Screen relative point to check.getScreenRectangle()
public java.awt.Rectangle getClippedScreenRectangle()
getClippedScreenRectangle
in class JavaGuiProxy
public java.awt.Rectangle getVisualClippedRectangle()
ProxyTestObject
getVisualClippedRectangle
in class ProxyTestObject
public java.lang.String getRole()
ProxyTestObject
java.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 IProxyBase
getTestObjectClassName
in class JavaGuiProxy
public void setText(java.lang.String text)
text
- public MethodSpecification getDataDrivableCommand()
null
value is returned.getDataDrivableCommand
in interface IDataDriven
getDataDrivableCommand
in class ProxyTestObject
ProxyTestObject.getDataDrivableCommands(int)
public java.lang.Object getFigure()
public void nClick(int clickCount, MouseModifiers modifiers, java.awt.Point pt)
nClick
in class JavaGuiProxy
public boolean shouldBeMapped()
shouldBeMapped
in class JavaGuiProxy
public ProxyTestObject[] getConnectors()
editPart
- public boolean isConnector()