public class GefEditPartTestObject extends GuiTestObject
ShellTestObject
ignoreTheObjectState, ref
Constructor and Description |
---|
GefEditPartTestObject() |
GefEditPartTestObject(SpyMappedTestObject mappedObject)
For internal use.
|
GefEditPartTestObject(SpyMappedTestObject mappedObject,
TestObject anchor)
For internal use.
|
GefEditPartTestObject(SpyMappedTestObject mappedObject,
TestObject anchor,
long scriptCommandFlags)
For internal use.
|
GefEditPartTestObject(TestObjectReference ref)
For internal use.
|
Modifier and Type | Method and Description |
---|---|
TestObject[] |
getConnectors()
Provide access to the Connectors.
|
GuiTestObject |
getFigure()
Return the Figurecorrespondig to the EditPart
|
java.lang.Object |
getModel()
Return the Model for the corresponding EditPart.
|
java.lang.String |
getText()
Allows direct access to the text property on the edit part.
|
boolean |
isConnector()
Verify if the EditPart is a Connector.
|
void |
setText(java.lang.String text)
Set the text on the EditPart.
|
canTakeVP, click, click, click, click, clickRadio, doubleClick, doubleClick, doubleClick, doubleClick, drag, drag, drag, drag, dragToScreenPoint, dragToScreenPoint, dragToScreenPoint, ensureObjectIsVisible, getChildAtPoint, getClippedScreenRectangle, getImage, getImage, getIWindow, getRole, getScreenPoint, getScreenPoint, getScreenRectangle, getScreenSnapshot, getVisibleArea, hasFocus, hover, hover, hover, hover, invokeProxyWithGuiDelay, invokeProxyWithGuiDelay, isEnabled, isOpaque, isPointInObject, isShowing, mouseMove, mouseMove, nClick, nClickDrag, nClickDragToScreenPoint
exists, exists, exists, find, find, findAndInvoke, findAndInvokeProxy, getProperty, getTestDataTypes, invoke, invokeProxy, unregister, waitForExistence
compare, compare, compareAndLog, compareAndLog, equals, find, findAndInvoke, getActualData, getChildren, getDescribedObject, getDescribedObjects, getDescriptiveName, getDomain, getField, getIndexer, getIndexer, getIndexers, getMappableChildren, getMappableParent, getMapProperties, getMethods, getNameInScript, getNonValueProperties, getObjectClassName, getObjectCustomClassName, getObjectReference, getOwnedObjects, getOwner, getParent, getProcess, getProperties, getPropertyFromMap, getRecognitionProperties, getRecognitionPropertyWeight, getScriptCommandFlags, getStandardProperties, getTestData, getTopMappableParent, getTopParent, hashCode, invoke, invoke, invoke, invokeProxy, invokeProxy, isLoggedDuringUnregister, isMappedObject, isSameObject, isScreenTestObject, isTopLevelTestObject, performTest, performTest, performTest, performTest, setIndexer, setIndexer, setLoggedDuringUnregister, setMapProperties, setProperty, toString, updateTestData, waitForExistence
public GefEditPartTestObject(SpyMappedTestObject mappedObject)
public GefEditPartTestObject(SpyMappedTestObject mappedObject, TestObject anchor)
public GefEditPartTestObject(SpyMappedTestObject mappedObject, TestObject anchor, long scriptCommandFlags)
public GefEditPartTestObject(TestObjectReference ref)
public GefEditPartTestObject()
public java.lang.String getText()
Figure
for the EditPart
.EditPart
.
String text = Class1().getText();
public void setText(java.lang.String text)
text
- the text to update the control with."Class2"
.
Class1().setText("Class2");
public java.lang.Object getModel()
Object models = class1().getModel();
Object classModel = null;
if(models != null && models instanceof Object[]) //The model is an array of Objects
{
Object numModels = (Object[])models;
classModel = numModels[0];
}else if(models != null) //The model is a single Object
{
classModel = models;
}
public GuiTestObject getFigure()
TextGuiTestObject
if the Figure contains text, else returns GuiTestObject
.GuiTestObject fig = class1().getFigure();
GuiTestObject
public boolean isConnector()
true
if the EditPart is a connector, false
otherwise.true
, if the EditPart is of type ConnectionEditPart, false
otherwise.boolean isConnector = conn1().isConnector();
public TestObject[] getConnectors()
TestObject
's.TestObject []connectors = class1().getConnectors();