|
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.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.TableProxy
public class TableProxy
This is the proxy class for org.eclipse.swt.widgets.Table.
GuiSubitemTestObject
| Type | Desciption | Data Class |
|---|---|---|
| contents | Table Contents | ITestDataTable |
| selected | Selected Table Cells | ITestDataTable |
| checked | Checked Table Cells | ITestDataTable |
| 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 |
|---|---|
Cell |
Defines the cell to act upon via
Row and Column
specifications. |
Text |
Defines the first-column cell with the specified visible text. |
List |
The ordered set of Cell and CHECKBOX
subitems that define a checkbox inside a cell.
|
| 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 | |
|---|---|
TableProxy(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 void |
addDataDrivableCommands(ProxyTestObject proxy, java.util.Vector commands, int includeChildren)
|
protected void |
checkItem(TableItem item)
Sets the checked state of the table item. |
int |
columnAtPoint(java.awt.Point pt)
This method returns the column index for the column at the specified Point. |
protected void |
extendSelect(int index)
This method extends the current selection to include a subitem at a specified index. |
com.rational.test.ft.script.Cell |
getCell(int columnIndex, int rowIndex)
|
java.awt.Rectangle |
getCellRectangle(int nColumn, int nRow)
This method returns the table relative rectangle for the specified cell. |
protected boolean |
getCheckable()
|
java.awt.Rectangle |
getClientRectangle()
Returns the rectangle that contains the component being evaluated relative to the top left corner of the screen. |
com.rational.test.ft.script.Column |
getColumn(int columnIndex)
|
com.rational.test.ft.script.Column |
getColumn(java.awt.Point pt)
|
int |
getColumnCount()
This method returns the number of columns in the table header component under evaluation. |
java.lang.String |
getColumnName(int nColumn)
This method returns the name of the column at the specified column index. |
protected TableColumn[] |
getColumns()
|
com.rational.test.ft.sys.MethodSpecification |
getDataDrivableCommand()
This method must be implemented by any proxy that wishes to support data driving. |
protected TableItem |
getItem(int index)
|
int |
getItemHeight()
Returns the height of the area which would be used to display of the items |
java.lang.String |
getRole()
Returns TestObjectRole.ROLE_TABLE. |
com.rational.test.ft.script.Row |
getRow(int rowIndex)
|
int |
getRowCount()
This method returns the number of rows in the table component under evaluation. |
int |
getRowIndex(java.awt.Point pt)
|
protected int |
getRowIndex(com.rational.test.ft.script.Row row)
|
protected int |
getRowIndex(com.rational.test.ft.script.Text subitem)
|
java.awt.Point |
getScreenPoint(com.rational.test.ft.script.Subitem subitem, java.awt.Point pt)
Returns the screen relative point given a subitem and a subitem relative point. |
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. |
java.awt.Rectangle |
getScreenRectangle(com.rational.test.ft.script.Subitem subitem, boolean needScroll)
Returns the rectangle that contains the component being evaluated relative to the top left corner of the screen. |
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.script.Subitem |
getSubitemAtPoint(java.awt.Point pt)
|
com.rational.test.ft.vp.ITestData |
getTestData(java.lang.String testDataType)
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. |
protected boolean |
isHeaderVisible()
|
void |
processSingleMouseEvent(IMouseActionInfo action)
Return a MethodSpecification for the specified mouse event. |
protected void |
scrollCellIntoView(int nRow, int nColumn, boolean isCheckBox)
|
protected void |
scrollPointIntoView(java.awt.Point pt, com.rational.test.ft.script.Subitem subitem)
|
void |
setState(com.rational.test.ft.script.Action action)
This method performs a specific action against the Table. |
protected void |
setState(com.rational.test.ft.script.Action action, int index)
This method performs a specific action against the subitem at a specified index. |
protected void |
setState(com.rational.test.ft.script.Action action, int start, int end)
|
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. |
boolean |
shouldBeMapped()
Returns true; by default all test objects are mapped. |
protected void |
unCheckItem(TableItem item)
Sets the checked state of the table item to be false |
com.rational.test.ft.vp.ITestData |
updateTestData(java.lang.String testDataType, com.rational.test.ft.vp.ITestData testData)
Updates the supplied test data object and returns it. |
| Methods inherited from class com.rational.test.ft.domain.java.swt.ScrollableSwtGraphicalSubitemProxy |
|---|
click, click, click, click, doubleClick, doubleClick, doubleClick, doubleClick, drag, drag, drag, drag, drag, drag, dragToScreenPoint, dragToScreenPoint, dragToScreenPoint, dragToScreenPoint, getScreenPoint, getTestObjectClassName, hover, hover, hover, hover, hScrollTo, mouseMove, mouseMove, mouseMove, mouseMove, nClick, nClickDrag, nClickDrag, nClickDragToScreenPoint, nClickDragToScreenPoint, scrollLineDown, scrollLineLeft, scrollLineRight, scrollLineUp, scrollPageDown, scrollPageLeft, scrollPageRight, scrollPageUp, vScrollTo |
| Methods inherited from class com.rational.test.ft.domain.java.swt.ScrollableProxy |
|---|
canBeScrolled, getClientArea, getHorizontalBar, getVerticalBar, hScroll, isHorizontalScrollable, isPointInClientArea, 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 |
| 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 |
| Constructor Detail |
|---|
public TableProxy(java.lang.Object theObjectInTheSUT)
| Method Detail |
|---|
public java.lang.String getRole()
TestObjectRole.ROLE_TABLE.
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 boolean shouldBeMapped()
shouldBeMapped in class JavaGuiProxypublic int getItemHeight()
protected TableItem getItem(int index)
protected TableColumn[] getColumns()
public int columnAtPoint(java.awt.Point pt)
pt - The Header component relative coordinates that should be used to determine the column index.
public int getColumnCount()
public int getRowCount()
public java.lang.String getColumnName(int nColumn)
nColumn - The column index for which a name
should be created.
public java.awt.Rectangle getCellRectangle(int nColumn, int nRow)
nColumn - The column index to get the table rectangle for.nRow - The row index to get the table rectangle for.
protected int getRowIndex(com.rational.test.ft.script.Row row)
protected int getRowIndex(com.rational.test.ft.script.Text subitem)
public com.rational.test.ft.script.Subitem getSubitemAtPoint(java.awt.Point pt)
public com.rational.test.ft.script.Cell getCell(int columnIndex, int rowIndex)
public com.rational.test.ft.script.Column getColumn(java.awt.Point pt)
public com.rational.test.ft.script.Column getColumn(int columnIndex)
public int getRowIndex(java.awt.Point pt)
public com.rational.test.ft.script.Row getRow(int rowIndex)
protected boolean isHeaderVisible()
protected boolean getCheckable()
protected void scrollCellIntoView(int nRow, int nColumn, boolean isCheckBox)
protected void scrollPointIntoView(java.awt.Point pt, com.rational.test.ft.script.Subitem subitem)
public void setState(com.rational.test.ft.script.Action action)
setState in interface com.rational.test.ft.object.interfaces.ISubitemsetState in class ScrollableSwtGraphicalSubitemProxyaction - The action that should be performed.protected void setState(com.rational.test.ft.script.Action action, int index)
item - The index of the item to act upon.action - The action that should be performed.protected void setState(com.rational.test.ft.script.Action action, int start, int end)
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.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 void checkItem(TableItem item)
item - The tableitem that is to be checked.protected void unCheckItem(TableItem item)
item - The tableitem that is to be checked.protected void extendSelect(int index)
item - The index of the item to select.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 java.awt.Rectangle getScreenRectangle(com.rational.test.ft.script.Subitem subitem, boolean needScroll)
public java.awt.Point getScreenPoint(com.rational.test.ft.script.Subitem subitem, java.awt.Point pt)
getScreenPoint in interface com.rational.test.ft.object.interfaces.IGraphicalSubitemgetScreenPoint in class ScrollableSwtGraphicalSubitemProxysubitem - The subitem the resultant screen point is
relative to.pt - The subitem relative point.
public java.awt.Rectangle getClientRectangle()
public void processSingleMouseEvent(IMouseActionInfo action)
processSingleMouseEvent in class ScrollableProxyaction - The event cache and other mouse state information
for this mouse action.public java.util.Hashtable getTestDataTypes()
String objects that are used as the VP type in the associated test data. The type is a
simple value that is different from other type values associated with this object under test. The type keys map to a verbose description of the test data, reasonable for presentation to a
user.
getTestDataTypes in class JavaProxytype/description pairs used to describe the verification data available from this proxy.getTestData(String),
ITestDatapublic com.rational.test.ft.vp.ITestData getTestData(java.lang.String testDataType)
testDataType parameter is a hashtable key returned by 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)
testDataType parameter is a hashtable key returned by 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.
testData passed in with appropriate updates.getTestDataTypes(),
ITestDatapublic com.rational.test.ft.sys.MethodSpecification getDataDrivableCommand()
null value is returned.
getDataDrivableCommand in interface IDataDrivengetDataDrivableCommand in class ProxyTestObjectProxyTestObject.getDataDrivableCommands(int)protected void addDataDrivableCommands(ProxyTestObject proxy, java.util.Vector commands, int includeChildren)
addDataDrivableCommands in class ProxyTestObject
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||