| 
 | 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.Objectcom.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.awt.ComponentProxy
com.rational.test.ft.domain.java.jfc.JComponentProxy
com.rational.test.ft.domain.java.jfc.JfcGraphicalSubitemProxy
com.rational.test.ft.domain.java.jfc.JScrollPaneProxy
com.rational.test.ft.domain.java.jfc.JTreeProxy
public class JTreeProxy
Proxy for the javax.swing.JTree class.
 
 
GuiSubitemTestObject
 | Type | Desciption | Data Class | 
|---|---|---|
| tree | tree Hierarchy | ITestDataTree | 
| selected | selected 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. | 
| accessibleContext.accessibleName | A programmatically defined name for the component. | 
| name | The name property, suppressed if default formatted (default form = className+count). | 
| toolTipText | The text from the associated tool tip, omitted if there is no associated tool tip. | 
| Subitem | Usage | 
|---|---|
| List | The ordered set of Text,IndexandPLUS_MINUSsubitems that define a path to a child tree node.
                        Most commonly appears in scripts asatPathspecifications. | 
| 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.awt.ComponentProxy | 
|---|
| ComponentProxy.ChildEnumerator, ComponentProxy.ImmediateChildEnumerator | 
| Field Summary | 
|---|
| Fields inherited from class com.rational.test.ft.domain.java.jfc.JScrollPaneProxy | 
|---|
| theScrollBar | 
| Fields inherited from class com.rational.test.ft.domain.java.jfc.JComponentProxy | 
|---|
| TAB_INDEX, TAB_TEXT | 
| Fields inherited from class com.rational.test.ft.domain.java.awt.ComponentProxy | 
|---|
| childrenEnumerated, CLASSINDEX, CLASSINDEXWEIGHT, MAX_NAME, NAMEPROPERTY, NAMEPROPERTYWEIGHT, PRIORLABEL, PRIORLABELWEIGHT | 
| 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 | |
|---|---|
| JTreeProxy(java.lang.Object theObjectInTheSUT)This sole constructor for all proxy objects sets the SUT object as a member variable for the proxy. | |
| Method Summary | |
|---|---|
| protected  boolean | allowsMultipleSelections()true is returned if the tree component being evaluated allows multiple nodes to be selected at the same time. | 
|  boolean | canBeScrolled()Returns true if the object is associated with scrollbar(s). | 
| protected  void | clearSelection()Clears all selections in the treeview component being evaluated. | 
| 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  java.lang.Object | constructPath(java.lang.Object item) | 
| protected  java.lang.Object | constructPath(java.lang.Object[] path) | 
| protected  void | deselectNode(java.lang.Object node)Set the state of the specified node to not be selected. | 
| 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  java.lang.Object | getChild(java.lang.Object parentNode,          int nChildIndex)Returns the child of parent at index nChildIndex in the parent's child array. | 
| protected  int | getChildCount(java.lang.Object node)This method is used to compute the number of child nodes available relative to the supplied node. | 
|  com.rational.test.ft.sys.MethodSpecification | getDataDrivableCommand()This method must be implemented by any proxy that wishes to support data driving. | 
| protected  javax.swing.tree.TreePath | getFirstSelectionPath()Returns the path to the first selected node. | 
| protected  int | getIndexOfChild(java.lang.Object child)This method is used to compute the index of child in parent | 
| protected  java.lang.Object | getLastPathComponent(java.lang.Object node)Returns the last component of this path. | 
|  com.rational.test.ft.sys.MethodSpecification | getMethodSpecForPoint(java.awt.Point pt)Return a MethodSpecification for a method that returns a java.awt.Point for the specified coordinates. | 
| protected  javax.swing.tree.TreeModel | getModel()Returns the TreeModel that is providing the data. | 
| protected  com.rational.test.ft.script.Subitem[] | getPath(java.awt.Point pt)Returns an array of Subitem representing the treepath at the given point. | 
| protected  com.rational.test.ft.script.Subitem[] | getPath(javax.swing.tree.TreePath treePath,         boolean isDP)Returns an array of Subitem representing the treepath. | 
| protected  java.awt.Rectangle | getPathBounds(javax.swing.tree.TreePath path)Returns the Rectangle that the specified node will be drawn into. | 
| protected  java.awt.Point | getPointToRow(javax.swing.tree.TreePath treePath,               java.awt.Point pt) | 
|  java.lang.String | getRole()Returns TestObjectRole.ROLE_TREE. | 
| protected  java.lang.Object | getRoot()This method is used to access the root nodes of the Tree component being queried. | 
| protected  java.awt.Rectangle | getRowBounds(int row)Returns the Rectangle that the specified node will be drawn into. | 
| protected  int | getRowForPath(javax.swing.tree.TreePath treePath)Returns the row that displays the node identified by the specified path. | 
|  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  java.lang.Object[] | getSelectedNodes()Returns the list of currently selected nodes in the tree being evaluated. | 
| protected  com.rational.test.ft.script.Action | getState(java.lang.Object node)Returns action state (expanded/selected/collapsed) of given 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. | 
| protected  java.lang.String | getTextForNode(javax.swing.tree.TreePath treePath,                java.lang.Object node)Returns the text of the given node. | 
| protected  javax.swing.tree.TreePath | getTreePath(java.lang.Object node) | 
| protected  javax.swing.tree.TreePath | getTreePath(java.awt.Point pt)Returns the closest path for the node at the specified point. | 
| protected  javax.swing.tree.TreePath | getTreePath(com.rational.test.ft.script.Subitem subitem) | 
| protected  java.lang.Class | getTreePathClass() | 
| protected  boolean | hasDuplicateChildren(javax.swing.tree.TreePath path,                      java.lang.String node) | 
| protected  boolean | isCollapsed(java.lang.Object node)true is returned if the child nodes of the supplied node are not visible. | 
| protected  boolean | isEditable()true is returned if the tree component being evaluated is directly editable. | 
| protected  boolean | isExpanded(java.lang.Object node)true is returned if the child nodes of the supplied node are visible. | 
| protected  boolean | isPointInNode(java.awt.Point pt,               javax.swing.tree.TreePath path)Returns true if the specified point is inside the node identified by the paticular path. | 
| protected  boolean | isPointInRow(java.awt.Point pt,              javax.swing.tree.TreePath path)Returns true if the specified point is inside the row identified by the paticular path. | 
| protected  boolean | isRootVisible()Returns true<\b> if the root node of the tree is displayed. | 
| protected  boolean | isSelected(java.lang.Object node)true is returned if the supplied node is selected and false if it is not selected. | 
| protected  boolean | isVisible(java.lang.Object node)Returns true if the supplied node is visible and false if it is not visible. | 
|  void | processSingleMouseEvent(IMouseActionInfo action)Return a MethodSpecification for the specified mouse event. | 
| protected  void | scrollPathToVisible(javax.swing.tree.TreePath path)Makes sure all the path components in path are expanded (except for the last path component) and scrolls so that the node identified by the path is displayed. | 
| protected  void | selectNode(java.lang.Object node)Set the state of the specified node to be selected. | 
|  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. | 
|  boolean | shouldBeMapped()Returns true for JTreeProxy. | 
|  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.jfc.JScrollPaneProxy | 
|---|
| click, getAssociateProxy, getClippedRect, getHScroll, getRealTestObject, getScroll, getScrollPaneProxy, getViewport, getVScroll, isPointInObject, isScroll, setState, setState | 
| Methods inherited from class com.rational.test.ft.domain.java.jfc.JfcGraphicalSubitemProxy | 
|---|
| click, click, click, doubleClick, doubleClick, doubleClick, doubleClick, drag, drag, drag, drag, drag, drag, dragToScreenPoint, dragToScreenPoint, dragToScreenPoint, dragToScreenPoint, getScreenPoint, getScreenPoint, getTestObjectClassName, hover, hover, hover, hover, mouseMove, mouseMove, mouseMove, mouseMove, nClick, nClickDrag, nClickDrag, nClickDragToScreenPoint, nClickDragToScreenPoint | 
| Methods inherited from class com.rational.test.ft.domain.java.jfc.JComponentProxy | 
|---|
| getBorderTitle, getClippedScreenRectangle, getDescriptiveName, getProperties, getProperty, getStandardProperties, getText, getVisibleRectangle, getVisualClippedRectangle, hasFocus, isOpaque, isType, scrollRectToVisible | 
| Methods inherited from class com.rational.test.ft.domain.java.awt.ComponentProxy | 
|---|
| childConstructed, getChildAtPoint, getChildProxy, getChildrenEnumeration, getComponentChildren, getEmbeddedBrowsers, getImmediateChildren, getLabelText, getLeadingLabel, getLocationOnScreen, getMappableChildren, getMappableParent, getName, getOwnedObjects, getOwner, getParent, getParent2, getParentObject, getScreenRectangle, getTopParent, getWindow, isDopeyDynamicName, isEnabled, isHScroll, isLabelled, isRecognitionProperty, isShowing, isVScroll, setParent | 
| 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, getProcessMouseEventHandler, getRegisteredTopLevelWindow, getScreenPoint, getScreenPoint, getScriptCommandFlags, getTopMappableWindow, getTopWindow, hover, hover, hover, hover, isDrag, isPointInObject, modifiersChanged, mouseMove, mouseMove, nClick, nClickDrag, nClickDragToScreenPoint, processHoverMouseEvent, processMouseEvent, setProcessMouseEventHandler, setTopLevelWindow | 
| Methods inherited from class com.rational.test.ft.domain.java.JavaProxy | 
|---|
| addMappableChildrenToVector, addRecognitionProperty, allowProperty, getAddedRecognitionPropertyValue, getChildren, getIndexer, getIndexers, getMethods, getNonValueProperties, getRecognitionProperties, getRecognitionPropertyWeight, getTestDomain, getTopMappableParent, getUniqueId, getVisualClippableParent, hasAddedRecognitionProperties, 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, setState | 
| Constructor Detail | 
|---|
public JTreeProxy(java.lang.Object theObjectInTheSUT)
| Method Detail | 
|---|
public java.lang.String getRole()
TestObjectRole.ROLE_TREE.
getRole in class JScrollPaneProxypublic boolean shouldBeMapped()
shouldBeMapped in class JScrollPaneProxypublic 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.IGraphicalSubitemgetSubitem in class JScrollPaneProxysubitem - The subitem to fetch an object for.
protected void scrollPathToVisible(javax.swing.tree.TreePath path)
path - the TreePath identifying the node to bring into viewprotected javax.swing.tree.TreePath getTreePath(java.awt.Point pt)
pt - the screen point relative to the JTree protected javax.swing.tree.TreePath getTreePath(java.lang.Object node)
protected javax.swing.tree.TreePath getTreePath(com.rational.test.ft.script.Subitem subitem)
protected java.awt.Rectangle getPathBounds(javax.swing.tree.TreePath path)
path - - the TreePath identifying the node protected java.awt.Rectangle getRowBounds(int row)
path - - the TreePath identifying the node protected java.awt.Point getPointToRow(javax.swing.tree.TreePath treePath, java.awt.Point pt)
protected boolean isPointInNode(java.awt.Point pt, javax.swing.tree.TreePath path)
pt - - the Pointpath - - the TreePath identifying the node protected boolean isPointInRow(java.awt.Point pt, javax.swing.tree.TreePath path)
pt - - the Pointpath - - the TreePath identifying the row protected com.rational.test.ft.script.Action getState(java.lang.Object node)
node - - the node protected javax.swing.tree.TreeModel getModel()
protected java.lang.Object getRoot()
protected java.lang.Object getLastPathComponent(java.lang.Object node)
protected int getChildCount(java.lang.Object node)
node - The node for which the child count is 
                                        to be computed relative to.
protected int getIndexOfChild(java.lang.Object child)
node - The node for which the child count is 
                                        to be computed relative to.
protected java.lang.Object getChild(java.lang.Object parentNode, int nChildIndex)
parentNode - The parent node for which the Nth                                                 child should be computed and returned.nChildIndex - The zero based child index.
protected boolean isExpanded(java.lang.Object node)
node - The node to check to see if the child                                         nodes are visible.
protected boolean isCollapsed(java.lang.Object node)
node - The node to check to see if the child                                         nodes are visible.
protected boolean isSelected(java.lang.Object node)
node - The node to check to see if the node                                         is selected.
protected boolean isVisible(java.lang.Object node)
node - The node to check to see if the node                                         is visible.
protected boolean isRootVisible()
protected boolean isEditable()
protected boolean allowsMultipleSelections()
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.protected void selectNode(java.lang.Object node)
node - The node that is to be selected.protected void deselectNode(java.lang.Object node)
node - The node that is to be deselected.protected void clearSelection()
protected java.lang.Object[] getSelectedNodes()
protected java.lang.String getTextForNode(javax.swing.tree.TreePath treePath, java.lang.Object node)
treePath - the TreePath of the nodenode - the node to get text for protected com.rational.test.ft.script.Subitem[] getPath(java.awt.Point pt)
pt - the screen point relative to the JTree protected int getRowForPath(javax.swing.tree.TreePath treePath)
treePath - the TreePath identifying a node protected javax.swing.tree.TreePath getFirstSelectionPath()
protected com.rational.test.ft.script.Subitem[] getPath(javax.swing.tree.TreePath treePath, boolean isDP)
treePath - isDP - true if this array will be used by 
                                                getDataDrivableCommand.
public com.rational.test.ft.sys.MethodSpecification getDataDrivableCommand()
null value is returned.
getDataDrivableCommand in interface IDataDrivengetDataDrivableCommand in class ProxyTestObjectProxyTestObject.getDataDrivableCommands(int)public void processSingleMouseEvent(IMouseActionInfo action)
processSingleMouseEvent in class JavaGuiProxyaction - The event cache and other mouse state information 
                                        for this mouse action.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.ISubitemsetState in class JScrollPaneProxyitem - The item to act upon.action - The action that should be performed.public com.rational.test.ft.sys.MethodSpecification getMethodSpecForPoint(java.awt.Point pt)
IGraphical.getScreenPoint will be returned.  However, if a proxy can find 
getMethodSpecForPoint in class JavaGuiProxyx - The screen relative x coordinate.y - The screen relative y coordinate.MethodSpecificationpublic java.awt.Rectangle getScreenRectangle(com.rational.test.ft.script.Subitem subitem)
getScreenRectangle in interface com.rational.test.ft.object.interfaces.IGraphicalSubitemgetScreenRectangle in class JScrollPaneProxyprotected java.lang.Class getTreePathClass()
protected java.lang.Object constructPath(java.lang.Object[] path)
protected java.lang.Object constructPath(java.lang.Object item)
protected boolean hasDuplicateChildren(javax.swing.tree.TreePath path, java.lang.String node)
public java.util.Hashtable getTestDataTypes()
getTestDataTypes in class JavaProxygetTestData(String), 
ITestDatapublic com.rational.test.ft.vp.ITestData getTestData(java.lang.String testDataType)
getTestDataTypes.
getTestData in class ProxyTestObjecttestDataType - A test data type supplied by 
                                                        getTestDataTypes.
getTestDataTypes(), 
ITestDatapublic 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 ProxyTestObjecttestDataType - A test data type supplied by 
                                                        getTestDataTypes.testData - The test data base object that requires 
                                                        updating.
getTestDataTypes(), 
ITestDatapublic boolean canBeScrolled()
canBeScrolled in class ComponentProxy| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||