|
IBM Rational Functional Tester Version 8.1.1000 IBM Rational Functional Tester Proxy SDK Reference Project Version 2.3 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.rational.test.ft.sys.RegisteredObject com.rational.test.ft.domain.ProxyTestObject com.rational.test.ft.domain.java.JavaProxy com.rational.test.ft.domain.java.JavaGuiProxy com.rational.test.ft.domain.java.swt.ControlProxy com.rational.test.ft.domain.java.swt.ScrollableProxy com.rational.test.ft.domain.java.swt.ScrollableSwtGraphicalSubitemProxy com.rational.test.ft.domain.java.swt.TreeProxy
public class TreeProxy
This is the proxy class for org.eclipse.swt.widgets.Tree
.
GuiSubitemTestObject
Type | Desciption | Data Class |
---|---|---|
tree | tree Hierarchy | ITestDataTree |
selected | selected tree Hierarchy | ITestDataTree |
checked | checked tree Hierarchy | ITestDataTree |
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. |
.priorLabel | The text of a preceding label. Suppressed if there is no preceding label. |
.groupText | The text of a group parent. Only available if parent is a group. Omitted if the group parent has no visible text. |
.toolTipText | The text from the associated tool tip, omitted if there is no associated tool tip. |
Subitem | Usage |
---|---|
List |
The ordered set of Text , Index and PLUS_MINUS , CHECKBOX
subitems that define a path to a child tree node.
Most commonly appears in scripts as atPath specifications.
|
Row |
Defines the tree node via Row specification. The row must be defined by Text or Index subitems. |
Text |
Defines the element with the specified visible text. |
Index |
Defines the element at the specified zero-based index. |
Nested Class Summary |
---|
Nested classes/interfaces inherited from class com.rational.test.ft.domain.java.swt.ControlProxy |
---|
ControlProxy.ChildEnumerator, ControlProxy.ImmediateChildEnumerator |
Field Summary |
---|
Fields inherited from class com.rational.test.ft.domain.java.swt.ControlProxy |
---|
childrenEnumerated, CLASSINDEX, CLASSINDEXWEIGHT, clickArgs, currentMethod, GROUPTEXT, GROUPTEXTWEIGHT, HANDLE, MAPPABLECLASSINDEX, MAPPABLECLASSINDEXWEIGHT, MAX_NAME, predownScreenRect, PRIORLABEL, PRIORLABELWEIGHT, TOOLTIPTEXT, TOOLTIPTEXTWEIGHT |
Fields inherited from class com.rational.test.ft.domain.java.JavaGuiProxy |
---|
LEFT, preDownState, processMouseEventHandler, ROLEINDEX, ROLEINDEXWEIGHT, TESTDATA_SPECIALFRAMESTATE, TESTDATA_SPECIALFRAMESTATE_DESCRIPTION, topLevelWindow |
Fields inherited from class com.rational.test.ft.domain.java.JavaProxy |
---|
debug, uniqueId |
Fields inherited from class com.rational.test.ft.sys.RegisteredObject |
---|
theTestObject |
Fields inherited from interface com.rational.test.ft.domain.IDataDriven |
---|
INCLUDE_ALL, INCLUDE_JUSTOBJECT, INCLUDE_SIBLINGS |
Constructor Summary | |
---|---|
TreeProxy(java.lang.Object theObjectInTheSUT)
This sole constructor for all proxy objects sets the SUT object as a member variable for the proxy. |
Method Summary | |
---|---|
void |
addCell(java.util.Vector args, com.rational.test.ft.script.List pathList, int columnIndex)
|
void |
addCellAndPoint(java.util.Vector args, TreeItem node, java.awt.Point pt)
|
void |
addHeader(java.util.Vector args, java.awt.Point pt, java.lang.String colName)
|
protected boolean |
allowsMultipleSelections()
true is returned if the tree component being evaluated allows multiple nodes to be selected at the same time. |
protected void |
checkNode(java.lang.Object node)
Sets the checked state of the tree item. |
void |
click(com.rational.test.ft.script.Subitem subitem)
Left mouse click on the center point of the associated subitem. |
protected void |
collapseNode(java.lang.Object node)
Set the state of the specified node to be collapsed (such that the child nodes are not visible). |
protected void |
deselectNode(java.lang.Object node)
|
protected void |
expandNode(java.lang.Object node)
Set the state of the specified node to be expanded (such that the child nodes are visible). |
protected void |
extendSelectNode(java.lang.Object node)
|
protected boolean |
getCheckable()
|
protected com.rational.test.ft.script.State |
getCheckState(java.lang.Object node)
|
protected TreeItem |
getClosestTreeItem(java.awt.Point pt)
|
protected java.awt.Rectangle |
getImageRectangle(org.eclipse.swt.graphics.Image image)
|
java.awt.Point |
getLocationOnScreen()
Return the location on the screen for an swt control |
protected com.rational.test.ft.script.Subitem[] |
getPath(TreeItem item)
|
protected java.awt.Point |
getPointToColumn(TreeItem treeItem, java.awt.Point pt)
|
protected java.awt.Point |
getPointToRow(TreeItem treeItem, java.awt.Point pt)
|
java.lang.Object |
getProperty(java.lang.String propertyName)
Get the value for a specific property. |
java.lang.String |
getRole()
Returns TestObjectRole.ROLE_TREE . |
java.awt.Point |
getScreenPoint(com.rational.test.ft.script.Subitem subitem)
Returns the screen relative point to the center of the supplied subitem. |
java.awt.Rectangle |
getScreenRectangle(com.rational.test.ft.script.Subitem subitem)
Returns the rectangle that contains the component being evaluated relative to the top left corner of the screen. |
protected com.rational.test.ft.script.Action |
getState(java.lang.Object node)
|
java.lang.Object |
getSubitem(com.rational.test.ft.script.Subitem subitem)
Returns an object that represents the specified subitem in the associated test object. |
com.rational.test.ft.vp.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 |
getText(TreeItem item)
|
protected java.awt.Rectangle |
getTreeColumnRectangle(TreeItem item, int columnIndex)
|
protected java.awt.Rectangle |
getTreeItemRectangle(TreeItem item)
|
protected boolean |
hasDuplicateChildren(TreeItem path, java.lang.String node)
|
void |
hScrollTo(int value)
This method scrolls the control horizontally. |
protected boolean |
isChecked(java.lang.Object node)
|
boolean |
isCollapsed(java.lang.Object node)
|
boolean |
isExpanded(java.lang.Object node)
|
protected boolean |
isGrayed(java.lang.Object node)
|
protected boolean |
isPointInClientArea(java.awt.Point pt)
|
boolean |
isSelected(java.lang.Object node)
|
void |
processSingleMouseEvent(IMouseActionInfo action)
|
void |
scrollLineLeftForUnix()
|
void |
scrollLineRightForUnix()
|
protected void |
selectNode(java.lang.Object node)
Set the state of the specified node to be selected. |
void |
setScrollWidth()
|
void |
setState(com.rational.test.ft.script.Action action, com.rational.test.ft.script.Subitem item)
This method performs a specific action against the subitem. |
void |
setState(com.rational.test.ft.script.Action action, com.rational.test.ft.script.Subitem start, com.rational.test.ft.script.Subitem end)
This method performs a specific action against the subitem range defined by the specified indices. |
protected void |
unCheckNode(java.lang.Object node)
Sets the unchecked state of the tree item. |
com.rational.test.ft.vp.ITestData |
updateTestData(java.lang.String testDataType, com.rational.test.ft.vp.ITestData testData)
This method updates the supplied test data object and returns it. |
Methods inherited from class com.rational.test.ft.domain.java.swt.ScrollableSwtGraphicalSubitemProxy |
---|
click, click, click, doubleClick, doubleClick, doubleClick, doubleClick, drag, drag, drag, drag, drag, drag, dragToScreenPoint, dragToScreenPoint, dragToScreenPoint, dragToScreenPoint, getScreenPoint, getTestObjectClassName, hover, hover, hover, hover, mouseMove, mouseMove, mouseMove, mouseMove, nClick, nClickDrag, nClickDrag, nClickDragToScreenPoint, nClickDragToScreenPoint, scrollLineDown, scrollLineLeft, scrollLineRight, scrollLineUp, scrollPageDown, scrollPageLeft, scrollPageRight, scrollPageUp, setState, vScrollTo |
Methods inherited from class com.rational.test.ft.domain.java.swt.ScrollableProxy |
---|
canBeScrolled, getClientArea, getHorizontalBar, getVerticalBar, hScroll, isHorizontalScrollable, isScrollable, isVerticalScrollable, scrollRectToVisible, vScroll |
Methods inherited from class com.rational.test.ft.domain.java.JavaGuiProxy |
---|
activateTopWindow, click, click, click, click, doubleClick, doubleClick, doubleClick, doubleClick, drag, drag, drag, drag, dragToScreenPoint, dragToScreenPoint, dragToScreenPoint, dumpAction, ensureObjectIsVisible, getActionRect, getCachedRectX, getCachedRectY, getChildAtPoint, getClippedRect, getMethodSpecForPoint, getProcessMouseEventHandler, getRegisteredTopLevelWindow, getScreenPoint, getScreenPoint, getScriptCommandFlags, getTopMappableWindow, getTopWindow, hover, hover, hover, hover, isDrag, isOpaque, isPointInObject, isPointInObject, modifiersChanged, mouseMove, mouseMove, nClick, nClickDrag, nClickDragToScreenPoint, processMouseEvent, setProcessMouseEventHandler, setTopLevelWindow, shouldBeMapped |
Methods inherited from class com.rational.test.ft.domain.java.JavaProxy |
---|
addMappableChildrenToVector, addRecognitionProperty, allowProperty, getAddedRecognitionPropertyValue, getChildren, getIndexer, getIndexers, getMappableChildren, getMethods, getNonValueProperties, getProperties, getRecognitionProperties, getRecognitionPropertyWeight, getStandardProperties, getTestDomain, getUniqueId, getVisualClippableParent, hasAddedRecognitionProperties, isRecognitionProperty, setIndexer, setProperty |
Methods inherited from class com.rational.test.ft.sys.RegisteredObject |
---|
addProxyReference, dereference, getObject, getRegisteredId, getTransactionId, isReferenced, isReleaseRequired, register, registerTransiently, release, toString, unregister |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface com.rational.test.ft.object.interfaces.ISubitem |
---|
setState |
Constructor Detail |
---|
public TreeProxy(java.lang.Object theObjectInTheSUT)
Method Detail |
---|
public java.lang.String getRole()
TestObjectRole.ROLE_TREE
.
getRole
in class ControlProxy
public java.lang.Object getSubitem(com.rational.test.ft.script.Subitem subitem)
SubitemNotFoundException
will be thrown if the specified subitem is invalid relative to the associated test object. null
may be returned if the subitem does not have an object association that can be returned.
getSubitem
in interface com.rational.test.ft.object.interfaces.IGraphicalSubitem
getSubitem
in class ScrollableSwtGraphicalSubitemProxy
subitem
- The subitem to fetch an object for.
protected TreeItem getClosestTreeItem(java.awt.Point pt)
protected java.awt.Point getPointToColumn(TreeItem treeItem, java.awt.Point pt)
protected java.awt.Point getPointToRow(TreeItem treeItem, java.awt.Point pt)
protected com.rational.test.ft.script.Subitem[] getPath(TreeItem item)
protected boolean isChecked(java.lang.Object node)
protected boolean isGrayed(java.lang.Object node)
public void click(com.rational.test.ft.script.Subitem subitem)
ScrollableSwtGraphicalSubitemProxy
click
in interface com.rational.test.ft.object.interfaces.IGraphicalSubitem
click
in class ScrollableSwtGraphicalSubitemProxy
protected com.rational.test.ft.script.State getCheckState(java.lang.Object node)
protected boolean getCheckable()
protected com.rational.test.ft.script.Action getState(java.lang.Object node)
public boolean isExpanded(java.lang.Object node)
public boolean isCollapsed(java.lang.Object node)
public boolean isSelected(java.lang.Object node)
protected boolean isPointInClientArea(java.awt.Point pt)
isPointInClientArea
in class ScrollableProxy
protected boolean allowsMultipleSelections()
protected void selectNode(java.lang.Object node)
node
- The node that is to be selected.protected void checkNode(java.lang.Object node)
node
- The node that is to be selected.protected void unCheckNode(java.lang.Object node)
node
- The node that is to be selected.protected void extendSelectNode(java.lang.Object node)
protected void deselectNode(java.lang.Object node)
protected void expandNode(java.lang.Object node)
node
- The node that is to be expanded.protected void collapseNode(java.lang.Object node)
node
- The node that is to be collapsed.public void scrollLineLeftForUnix()
public void scrollLineRightForUnix()
protected java.awt.Rectangle getTreeColumnRectangle(TreeItem item, int columnIndex)
protected java.awt.Rectangle getTreeItemRectangle(TreeItem item)
protected java.awt.Rectangle getImageRectangle(org.eclipse.swt.graphics.Image image)
public java.lang.String getText(TreeItem item)
public void addHeader(java.util.Vector args, java.awt.Point pt, java.lang.String colName)
public void addCellAndPoint(java.util.Vector args, TreeItem node, java.awt.Point pt)
public void addCell(java.util.Vector args, com.rational.test.ft.script.List pathList, int columnIndex)
public void processSingleMouseEvent(IMouseActionInfo action)
processSingleMouseEvent
in class ScrollableProxy
public void setState(com.rational.test.ft.script.Action action, com.rational.test.ft.script.Subitem item)
setState
in interface com.rational.test.ft.object.interfaces.ISubitem
item
- The item to act upon.action
- The action that should be performed.public void setState(com.rational.test.ft.script.Action action, com.rational.test.ft.script.Subitem start, com.rational.test.ft.script.Subitem end)
setState
in interface com.rational.test.ft.object.interfaces.ISubitem
start
- The first item to act upon.end
- The last item to act upon.action
- The action that should be performed.public java.awt.Point getLocationOnScreen()
getLocationOnScreen
in class ControlProxy
public java.awt.Rectangle getScreenRectangle(com.rational.test.ft.script.Subitem subitem)
getScreenRectangle
in interface com.rational.test.ft.object.interfaces.IGraphicalSubitem
getScreenRectangle
in class ScrollableSwtGraphicalSubitemProxy
public java.awt.Point getScreenPoint(com.rational.test.ft.script.Subitem subitem)
getScreenPoint
in interface com.rational.test.ft.object.interfaces.IGraphicalSubitem
getScreenPoint
in class ScrollableSwtGraphicalSubitemProxy
subitem
- The subitem the resultant screen point is
relative to.
protected boolean hasDuplicateChildren(TreeItem path, java.lang.String node)
public java.util.Hashtable getTestDataTypes()
getTestDataTypes
in class JavaProxy
getTestData(String)
,
ITestData
public com.rational.test.ft.vp.ITestData getTestData(java.lang.String testDataType)
getTestDataTypes
.
getTestData
in class ProxyTestObject
testDataType
- A test data type supplied by
getTestDataTypes
.
getTestDataTypes()
,
ITestData
public com.rational.test.ft.vp.ITestData updateTestData(java.lang.String testDataType, com.rational.test.ft.vp.ITestData testData)
getTestDataTypes
.
The testData is a previously supplied ITestData
object that needs to be updated to reflect the current state of the associated test object.
updateTestData
in class ProxyTestObject
testDataType
- A test data type supplied by
getTestDataTypes
.testData
- The test data base object that requires
updating.
getTestDataTypes()
,
ITestData
public java.lang.Object getProperty(java.lang.String propertyName)
getProperty
in class ControlProxy
propertyName
- The name of the property to fetch.
ProxyTestObject.getProperties()
,
ProxyTestObject.setProperty(String,Object)
,
ProxyTestObject.getRecognitionProperties()
,
ProxyTestObject.addRecognitionProperty(String,Object,int)
public void hScrollTo(int value)
hScrollTo
in interface com.rational.test.ft.object.interfaces.IScrollable
hScrollTo
in class ScrollableSwtGraphicalSubitemProxy
value
- The position of the vertical scrollbar after this action is completed.hScrollTo(int)
public void setScrollWidth()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |