public class TableProxy extends ScrollableSwtGraphicalSubitemProxy implements com.rational.test.ft.object.interfaces.ISubitem, com.ibm.rational.test.ft.clearscript.IClearscript
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.
|
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 |
|---|
TableProxy(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 void |
addDataDrivableCommands(com.rational.test.ft.domain.ProxyTestObject proxy,
java.util.Vector commands,
int includeChildren) |
protected void |
checkItem(org.eclipse.swt.widgets.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.lang.String |
getClearscriptSimpleName()
Returns the clearscriptName for required for Manual Test Automation.
|
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 org.eclipse.swt.widgets.TableColumn[] |
getColumns() |
com.rational.test.ft.sys.MethodSpecification |
getDataDrivableCommand()
This method must be implemented by any proxy that wishes to support
data driving.
|
protected org.eclipse.swt.widgets.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(com.rational.test.ft.domain.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(org.eclipse.swt.widgets.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.
|
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, vScrollTocanBeScrolled, getClientArea, getHorizontalBar, getVerticalBar, hScroll, isHorizontalScrollable, isPointInClientArea, isScrollable, isVerticalScrollable, scrollRectToVisible, vScrollchildConstructed, getActionArgs, getChannel, getChildProxy, getChildrenEnumeration, getClippedScreenRectangle, getDefaultActionArgs, getDescriptiveName, getElementWithFocus, getHandle, getImmediateChildren, getLabelText, getLeadingLabel, getLocationOnScreen, getMappableParent, getName, getOwnedObjects, getOwner, getParent, getParentObject, getProperty, 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, setTopLevelWindowaddMappableChildrenToVector, addRecognitionProperty, allowProperty, getAddedRecognitionPropertyValue, getChildren, getIndexer, getIndexers, getMappableChildren, getMethods, getNonValueProperties, getProperties, getRecognitionProperties, getRecognitionPropertyWeight, getStandardProperties, getTestDomain, getUniqueId, getVisualClippableParent, hasAddedRecognitionProperties, isRecognitionProperty, setIndexer, setPropertybaseClassMatch, canTakeVP, equals, findChildrenWithProperties, findChildrenWithPropertiesAndInvoke, getChildren, getDataDrivableCommands, getField, getIgnorableProperties, getMappableChildren, getMappableParent, getObjectClassName, getObjectCustomClassName, getOwnedObjects, getParent, getProxy, getScriptCommandAnchor, getVisualMappableChildren, getVisualTopParent, getVOMSpecificProperty, hasSpecialFrameState, isClassIndexConsidered, isSameObject, isValidObject, ping, suppressKeyActionpublic TableProxy(java.lang.Object theObjectInTheSUT)
public java.lang.String getRole()
TestObjectRole.ROLE_TABLE.getRole in class ControlProxypublic java.lang.String getClearscriptSimpleName()
getClearscriptSimpleName in interface com.ibm.rational.test.ft.clearscript.IClearscriptpublic 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 org.eclipse.swt.widgets.TableItem getItem(int index)
protected org.eclipse.swt.widgets.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(org.eclipse.swt.widgets.TableItem item)
item - The tableitem that is to be checked.protected void unCheckItem(org.eclipse.swt.widgets.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(com.rational.test.ft.domain.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 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)
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 com.rational.test.ft.domain.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 com.rational.test.ft.domain.IDataDrivengetDataDrivableCommand in class com.rational.test.ft.domain.ProxyTestObjectProxyTestObject.getDataDrivableCommands(int)protected void addDataDrivableCommands(com.rational.test.ft.domain.ProxyTestObject proxy,
java.util.Vector commands,
int includeChildren)
addDataDrivableCommands in class com.rational.test.ft.domain.ProxyTestObject