IBM Rational Functional Tester
Version 8.1.1000
IBM Rational Functional Tester API Reference

Project Version 2.3

com.rational.test.ft.object.interfaces
Class GefEditPartTestObject

java.lang.Object   extended by com.rational.test.ft.object.interfaces.TestObject
      extended by com.rational.test.ft.object.interfaces.ClientTestObject
          extended by com.rational.test.ft.object.interfaces.GuiTestObject
              extended by com.rational.test.ft.object.interfaces.GefEditPartTestObject
All Implemented Interfaces:
IGraphical

public class GefEditPartTestObject
extends GuiTestObject

Provides script access to an EditPart in GEF based applications.

Since:
RFT8.0
See Also:
ShellTestObject

Field Summary
 
Fields inherited from class com.rational.test.ft.object.interfaces.TestObject
ref
 
Constructor Summary
GefEditPartTestObject()
           
GefEditPartTestObject(com.rational.test.ft.object.map.SpyMappedTestObject mappedObject)
          For internal use.
GefEditPartTestObject(com.rational.test.ft.object.map.SpyMappedTestObject mappedObject, TestObject anchor)
          For internal use.
GefEditPartTestObject(com.rational.test.ft.object.map.SpyMappedTestObject mappedObject, TestObject anchor, long scriptCommandFlags)
          For internal use.
GefEditPartTestObject(TestObject obj)
          Constructs one GefEditPartTestObject from another GefEditPartTestObject.
GefEditPartTestObject(com.rational.test.ft.object.TestObjectReference ref)
          For internal use.
 
Method Summary
 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.
 
Methods inherited from class com.rational.test.ft.object.interfaces.GuiTestObject
canTakeVP, click, click, click, click, clickRadio, doubleClick, doubleClick, doubleClick, doubleClick, drag, drag, drag, drag, dragToScreenPoint, dragToScreenPoint, dragToScreenPoint, ensureObjectIsVisible, getChildAtPoint, getClippedScreenRectangle, getImage, getImage, getScreenPoint, getScreenPoint, getScreenRectangle, getScreenSnapshot, getVisibleArea, hasFocus, hover, hover, hover, hover, invokeProxyWithGuiDelay, invokeProxyWithGuiDelay, isEnabled, isOpaque, isPointInObject, isShowing, mouseMove, mouseMove, nClick, nClickDrag, nClickDragToScreenPoint
 
Methods inherited from class com.rational.test.ft.object.interfaces.ClientTestObject
exists, find, find, findAndInvoke, findAndInvokeProxy, invoke, invokeProxy, unregister, waitForExistence
 
Methods inherited from class com.rational.test.ft.object.interfaces.TestObject
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, getProperty, getPropertyFromMap, getRecognitionProperties, getRecognitionPropertyWeight, getScriptCommandFlags, getStandardProperties, getTestData, getTestDataTypes, getTopMappableParent, getTopParent, hashCode, invoke, invokeProxy, isMappedObject, isSameObject, isScreenTestObject, isTopLevelTestObject, performTest, performTest, performTest, performTest, setIndexer, setIndexer, setMapProperties, setProperty, toString, updateTestData, waitForExistence
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

GefEditPartTestObject

public GefEditPartTestObject(com.rational.test.ft.object.map.SpyMappedTestObject mappedObject)
For internal use.

Since:
RFT8.0

GefEditPartTestObject

public GefEditPartTestObject(com.rational.test.ft.object.map.SpyMappedTestObject mappedObject,                              TestObject anchor)
For internal use.

Since:
RFT8.0

GefEditPartTestObject

public GefEditPartTestObject(com.rational.test.ft.object.map.SpyMappedTestObject mappedObject,                              TestObject anchor,                              long scriptCommandFlags)
For internal use.

Since:
RFT8.0

GefEditPartTestObject

public GefEditPartTestObject(com.rational.test.ft.object.TestObjectReference ref)
For internal use.

Since:
RFT8.0

GefEditPartTestObject

public GefEditPartTestObject(TestObject obj)
Constructs one GefEditPartTestObject from another GefEditPartTestObject. Both are references to the same object.

Since:
RFT8.0

GefEditPartTestObject

public GefEditPartTestObject()
Method Detail

getText

public java.lang.String getText()
Allows direct access to the text property on the edit part.

Returns:
java.lang.String the active text in the edit part or null.
Detail description:
Returns the text from the corresponding Figure for the EditPart.
Example:
Retrieve the text from an EditPart.
String text = Class1().getText();
Since:
RFT8.0

setText

public void setText(java.lang.String text)
Set the text on the EditPart.

Parameters:
text - the text to update the control with.
Detail description:
It directly modifies the text on the Figure corresponding to the EditPart . Any existing text in the EditPart is replaced with the specified text value.
Example:
Modify the text on a Class Diagram to "Class2".
Class1().setText("Class2");
Since:
RFT8.0

getModel

public java.lang.Object getModel()
Return the Model for the corresponding EditPart.

Returns:
The TestObject/TestObject's for the model corresponding to the EditPart
Detail description:
Allows access to the Model for the EditPart. The return value could be a TestObject or an array of TestObject. The return value need to be typecasted accordingly.
Example:
Example 1
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;

}
Since:
RFT8.0

getFigure

public GuiTestObject getFigure()
Return the Figurecorrespondig to the EditPart

Returns:
GuiTestObject The figure for the EditPart
Detail description:
Allows access to the Figure for the corresponding EditPart. Returns TextGuiTestObject if the Figure contains text, else returns GuiTestObject.
Example:
Get the Figure corresponding to an EditPart.
GuiTestObject fig = class1().getFigure();
Since:
RFT8.0
See Also:
GuiTestObject

isConnector

public boolean isConnector()
Verify if the EditPart is a Connector.

Returns:
boolean true if the EditPart is a connector, false otherwise.
Detail description:
Returns true, if the EditPart is of type ConnectionEditPart, false otherwise.
Example:

boolean isConnector = conn1().isConnector();
Since:
RFT8.0

getConnectors

public TestObject[] getConnectors()
Provide access to the Connectors.

Returns:
The array of connectors for the source EditPart or an empty array.
Detail description:
Returns the connectors from the source EditPart as an array of TestObject's.
Example:

TestObject []connectors = class1().getConnectors();
Since:
RFT8.0