public class TableTreeProxy extends ScrollableSwtGraphicalSubitemProxy implements com.rational.test.ft.object.interfaces.ISubitem
org.eclipse.swt.custom.TableTree.
GuiSubitemTestObject
| Type | Desciption | Data Class |
|---|---|---|
| tabletree | tabletree Hierarchy | ITestDataTree |
| selected | selected tabletree Hierarchy | ITestDataTree |
| checked | checked tabletree 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 tabletree node.
Most commonly appears in scripts as atPath specifications.
|
Row |
Defines the tabletree 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. |
ControlProxy.ChildEnumerator, ControlProxy.ImmediateChildEnumeratorchildrenEnumerated, CLASSINDEX, CLASSINDEXWEIGHT, clickArgs, currentMethod, GROUPTEXT, GROUPTEXTWEIGHT, HANDLE, MAPPABLECLASSINDEX, MAPPABLECLASSINDEXWEIGHT, MAX_NAME, predownScreenRect, PRIORLABEL, PRIORLABELWEIGHT, TOOLTIPTEXT, TOOLTIPTEXTWEIGHTLEFT, preDownState, processMouseEventHandler, ROLEINDEX, ROLEINDEXWEIGHT, TESTDATA_SPECIALFRAMESTATE, TESTDATA_SPECIALFRAMESTATE_DESCRIPTION, topLevelWindowBROWSERTABTESTOBJECT_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| Constructor and Description |
|---|
TableTreeProxy(java.lang.Object theObjectInTheSUT)
This sole constructor for all proxy objects sets the SUT object
as a member variable for the proxy.
|
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
allowsMultipleSelections()
true is returned if the tree component being evaluated
allows multiple nodes to be selected at the same time.
|
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) |
void |
doubleClick(com.rational.test.ft.script.Subitem subitem)
Left mouse dbl-click on the center point of the associated TestObject.
|
void |
drag(com.rational.test.ft.script.Subitem subitem)
Left mouse drag in the associated TestObject.
|
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) |
org.eclipse.swt.graphics.Rectangle |
getClientArea()
Returns a rectangle which describes the area of the
receiver which is capable of displaying data (that is,
not covered by the "trimmings").
|
protected org.eclipse.swt.custom.TableTreeItem |
getClosestTableTreeItem(java.awt.Point pt) |
int |
getColumnCount()
This method returns the number of columns in the table
header component under evaluation.
|
int |
getColumnIndexAtPoint(org.eclipse.swt.custom.TableTreeItem item,
java.awt.Point pt)
Returns the column index of the point given.
|
java.lang.String |
getColumnName(int nColumn)
This method returns the name of the column at the
specified column index.
|
long |
getHandle()
Get the value for the handle field.
|
org.eclipse.swt.widgets.ScrollBar |
getHorizontalBar()
Gets the horizontal Scroll Bar.
|
protected org.eclipse.swt.custom.TableTreeItem |
getParentItem(org.eclipse.swt.custom.TableTreeItem item) |
protected org.eclipse.swt.custom.TableTree |
getParentTableTree(org.eclipse.swt.custom.TableTreeItem item) |
protected com.rational.test.ft.script.Subitem[] |
getPath(org.eclipse.swt.custom.TableTreeItem item) |
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.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.awt.Rectangle |
getScreenRectangle(org.eclipse.swt.custom.TableTreeItem item,
int colIndex) |
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.
|
protected org.eclipse.swt.custom.TableTreeItem |
getTableTreeItem(com.rational.test.ft.script.Index subitem,
org.eclipse.swt.custom.TableTreeItem[] theItems) |
protected org.eclipse.swt.custom.TableTreeItem |
getTableTreeItem(com.rational.test.ft.script.Subitem subitem) |
protected org.eclipse.swt.custom.TableTreeItem |
getTableTreeItem(com.rational.test.ft.script.Text text,
org.eclipse.swt.custom.TableTreeItem[] theItems) |
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(org.eclipse.swt.custom.TableTreeItem item) |
org.eclipse.swt.widgets.ScrollBar |
getVerticalBar()
Gets the vertical Scroll Bar.
|
protected boolean |
hasDuplicateChildren(org.eclipse.swt.custom.TableTreeItem path,
java.lang.String node) |
protected boolean |
isChecked(java.lang.Object node) |
boolean |
isCollapsed(java.lang.Object node) |
boolean |
isExpanded(java.lang.Object node) |
boolean |
isSelected(java.lang.Object node) |
void |
processSingleMouseEvent(com.rational.test.ft.domain.IMouseActionInfo action) |
protected void |
scrollCellIntoView(int nRow,
int nCol,
boolean isCheckBox) |
protected void |
scrollCellIntoView(org.eclipse.swt.custom.TableTreeItem item,
int col,
boolean isCheckBox) |
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.
|
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.
|
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.
|
click, click, click, doubleClick, doubleClick, doubleClick, drag, drag, drag, drag, drag, dragToScreenPoint, dragToScreenPoint, dragToScreenPoint, dragToScreenPoint, getScreenPoint, getScreenPoint, getTestObjectClassName, hover, hover, hover, hover, hScrollTo, mouseMove, mouseMove, mouseMove, mouseMove, nClick, nClickDrag, nClickDrag, nClickDragToScreenPoint, nClickDragToScreenPoint, scrollLineDown, scrollLineLeft, scrollLineRight, scrollLineUp, scrollPageDown, scrollPageLeft, scrollPageRight, scrollPageUp, setState, vScrollTocanBeScrolled, hScroll, isHorizontalScrollable, isPointInClientArea, isScrollable, isVerticalScrollable, scrollRectToVisible, vScrollchildConstructed, getActionArgs, getChannel, getChildProxy, getChildrenEnumeration, getClippedScreenRectangle, getDefaultActionArgs, getDescriptiveName, getElementWithFocus, getImmediateChildren, getLabelText, getLeadingLabel, getLocationOnScreen, getMappableParent, getName, getOwnedObjects, getOwner, getParent, getParentObject, getReorderedChildren, getScreenRectangle, getStyle, getToolTipText, getTopMappableParent, getTopParent, getVisualClippedRectangle, hasFocus, isEnabled, isGTK, isLabelled, isObjectMoved, isShell, isShowing, processHoverMouseEvent, processPreDownMouseEvent, processPreUpMouseEvent, setClickArgs, setDownPointArgs, setDrag, setMethodSpecification, setMultiClickAction, setRecordCacheactivateTopWindow, 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, invokeMethodOnEDT, isDrag, isOpaque, isPointInObject, isPointInObject, modifiersChanged, mouseMove, mouseMove, nClick, nClickDrag, nClickDragToScreenPoint, processMouseEvent, setProcessMouseEventHandler, setTopLevelWindow, shouldBeMappedaddMappableChildrenToVector, addRecognitionProperty, allowProperty, getAddedRecognitionPropertyValue, getChildren, getIndexer, getIndexers, getMappableChildren, getMethods, getNonValueProperties, getProperties, getRecognitionProperties, getRecognitionPropertyWeight, getStandardProperties, getTestDomain, getUniqueId, getVisualClippableParent, hasAddedRecognitionProperties, isRecognitionProperty, setIndexer, setPropertyaddDataDrivableCommands, baseClassMatch, canTakeVP, equals, findChildrenWithProperties, findChildrenWithPropertiesAndInvoke, getChildren, getDataDrivableCommand, getDataDrivableCommands, getField, getIgnorableProperties, getMappableChildren, getMappableParent, getObjectClassName, getObjectCustomClassName, getOwnedObjects, getParent, getProxy, getScriptCommandAnchor, getVisualMappableChildren, getVisualTopParent, getVOMSpecificProperty, hasSpecialFrameState, isClassIndexConsidered, isSameObject, isValidObject, ping, suppressKeyActionaddProxyReference, dereference, getObject, getRegisteredId, getTransactionId, isReferenced, isReleaseRequired, register, registerTransiently, release, toString, unregisterpublic TableTreeProxy(java.lang.Object theObjectInTheSUT)
public java.lang.String getRole()
TestObjectRole.ROLE_TREE.getRole in class ControlProxypublic 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 ScrollableSwtGraphicalSubitemProxysubitem - The subitem to fetch an object for.public long getHandle()
getHandle in class ControlProxyprotected org.eclipse.swt.custom.TableTreeItem getParentItem(org.eclipse.swt.custom.TableTreeItem item)
protected org.eclipse.swt.custom.TableTree getParentTableTree(org.eclipse.swt.custom.TableTreeItem item)
protected org.eclipse.swt.custom.TableTreeItem getClosestTableTreeItem(java.awt.Point pt)
protected com.rational.test.ft.script.Subitem[] getPath(org.eclipse.swt.custom.TableTreeItem item)
protected org.eclipse.swt.custom.TableTreeItem getTableTreeItem(com.rational.test.ft.script.Subitem subitem)
protected org.eclipse.swt.custom.TableTreeItem getTableTreeItem(com.rational.test.ft.script.Index subitem,
org.eclipse.swt.custom.TableTreeItem[] theItems)
protected org.eclipse.swt.custom.TableTreeItem getTableTreeItem(com.rational.test.ft.script.Text text,
org.eclipse.swt.custom.TableTreeItem[] theItems)
protected boolean isChecked(java.lang.Object node)
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 allowsMultipleSelections()
protected void selectNode(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.protected void scrollCellIntoView(int nRow,
int nCol,
boolean isCheckBox)
protected void scrollCellIntoView(org.eclipse.swt.custom.TableTreeItem item,
int col,
boolean isCheckBox)
public java.lang.String getText(org.eclipse.swt.custom.TableTreeItem item)
public org.eclipse.swt.widgets.ScrollBar getHorizontalBar()
getHorizontalBar in class ScrollableProxypublic org.eclipse.swt.widgets.ScrollBar getVerticalBar()
getVerticalBar in class ScrollableProxypublic org.eclipse.swt.graphics.Rectangle getClientArea()
getClientArea in class ScrollableProxypublic int getColumnIndexAtPoint(org.eclipse.swt.custom.TableTreeItem item,
java.awt.Point pt)
public int getColumnCount()
public java.lang.String getColumnName(int nColumn)
nColumn - The column index for which a name
should be created.public void processSingleMouseEvent(com.rational.test.ft.domain.IMouseActionInfo action)
processSingleMouseEvent in class ScrollableProxypublic 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.ISubitemitem - 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.ISubitemstart - The first item to act upon.end - The last item to act upon.action - The action that should be performed.protected java.awt.Rectangle getScreenRectangle(org.eclipse.swt.custom.TableTreeItem item,
int colIndex)
public java.awt.Rectangle getScreenRectangle(com.rational.test.ft.script.Subitem subitem)
getScreenRectangle in interface com.rational.test.ft.object.interfaces.IGraphicalSubitemgetScreenRectangle in class ScrollableSwtGraphicalSubitemProxypublic void click(com.rational.test.ft.script.Subitem subitem)
click in interface com.rational.test.ft.object.interfaces.IGraphicalSubitemclick in class ScrollableSwtGraphicalSubitemProxypublic void doubleClick(com.rational.test.ft.script.Subitem subitem)
doubleClick in interface com.rational.test.ft.object.interfaces.IGraphicalSubitemdoubleClick in class ScrollableSwtGraphicalSubitemProxypublic void drag(com.rational.test.ft.script.Subitem subitem)
drag in interface com.rational.test.ft.object.interfaces.IGraphicalSubitemdrag in class ScrollableSwtGraphicalSubitemProxyprotected boolean hasDuplicateChildren(org.eclipse.swt.custom.TableTreeItem 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 com.rational.test.ft.domain.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 com.rational.test.ft.domain.ProxyTestObjecttestDataType - A test data type supplied by
getTestDataTypes.testData - The test data base object that requires
updating.getTestDataTypes(),
ITestDatapublic java.lang.Object getProperty(java.lang.String propertyName)
getProperty in class ControlProxy