|
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.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.JTableProxy
public class JTableProxy
Proxy class for javax.swing.JTable.
GuiSubitemTestObject
Type | Desciption | Data Class |
---|---|---|
contents | Table Contents | ITestDataTable |
selected | Selected 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. |
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 |
---|---|
Cell |
Defines the cell to act upon via
Row and Column
specifications. |
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 | |
---|---|
JTableProxy(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 |
addColumnSelectionInterval(int index0, int index1)
Adds the columns from index0 to index1, inclusive, to the current selection. |
protected void |
addDataDrivableCommands(ProxyTestObject proxy, java.util.Vector commands, int includeChildren)
|
protected void |
addRowSelectionInterval(int index0, int index1)
Adds the rows from index0 to index1, inclusive, to the current selection. |
boolean |
canBeScrolled()
Returns true if the object is associated with scrollbar(s). |
protected void |
changeSelection(int rowIndex, int columnIndex, boolean toggle, boolean extend)
|
protected void |
clearSelection()
Deselects all selected columns and rows. |
protected int |
columnAtPoint(java.awt.Point pt)
This method returns the column index for the column at the specified Point. |
protected com.rational.test.ft.script.Cell |
getCell(int columnIndex, int rowIndex)
|
protected com.rational.test.ft.script.Cell |
getCell(java.awt.Point pt)
|
protected java.awt.Rectangle |
getCellRectangle(int nColumn, int nRow)
This method returns the table relative rectangle for the specified cell. |
protected com.rational.test.ft.script.Column |
getColumn(int columnIndex)
|
protected com.rational.test.ft.script.Column |
getColumn(java.awt.Point pt)
|
protected int |
getColumnCount()
This method returns the number of columns in the table header component under evaluation. |
protected java.lang.String |
getColumnHeader(int nColumn)
This method returns the name of the column at the specified column index. |
protected java.lang.String |
getColumnName(int nColumn)
This method returns the name of the column at the specified column index. |
protected boolean |
getColumnSelectionAllowed()
Returns true<\b> if columns can be selected. |
com.rational.test.ft.sys.MethodSpecification |
getDataDrivableCommand()
This method must be implemented by any proxy that wishes to support data driving. |
protected int |
getFirstSelectedRow()
|
int[] |
getKeyColumns(int nRow)
This method returns a list of up to three "key" columns that may be used to determine a row in the table in a unique fashion. |
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.table.TableModel |
getModel()
|
protected java.lang.String |
getObjectStringAt(int nRow, int nColumn)
|
protected java.lang.String |
getRenderedStringAt(int nRow, int nColumn)
|
protected java.lang.String |
getRenderedStringAt(int nRow, int nColumn, boolean checkLength)
This method returns the value in the specified table cell. |
java.lang.String |
getRole()
Returns TestObjectRole.ROLE_TABLE . |
protected com.rational.test.ft.script.Row |
getRow(int rowIndex)
|
protected com.rational.test.ft.script.Row |
getRow(java.awt.Point pt)
|
protected int |
getRowCount()
This method returns the number of rows in the table component under evaluation. |
protected boolean |
getRowSelectionAllowed()
Returns true<\b> if columns can be selected. |
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 int[] |
getSelectedColumns()
Returns the indices of all selected columns. |
protected int[] |
getSelectedRows()
Returns the indices of all selected rows. |
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)
Constructs the specified verification data object. |
protected java.lang.Object |
getTestDataTableAt(int row, int col, java.lang.String type, javax.swing.table.TableModel model)
|
java.util.Hashtable |
getTestDataTypes()
Returns a hashtable of data type descriptions of the verification point data available with the associated object. |
protected java.lang.Object |
getValueAt(int nRow, int nColumn)
This method returns the value in the specified table cell. |
protected boolean |
isCellEditable(int nColumn, int nRow)
This method returns TRUE if the specified cell is read/write and FALSE if the cell is read/only. |
protected boolean |
isCellSelected(int rowIndex, int columnIndex)
Returns true if the column at the specified index is selected. |
protected boolean |
isColumnSelected(int columnIndex)
Returns true if the column at the specified index is selected. |
protected boolean |
isRowSelected(int rowIndex)
Returns true if the row at the specified index is selected. |
void |
processSingleMouseEvent(IMouseActionInfo action)
Return a MethodSpecification for the specified mouse event. |
protected int |
rowAtPoint(java.awt.Point pt)
This method returns the row index for the row at the specified Point. |
protected void |
setColumnSelectionInterval(int index0, int index1)
Selects the columns from index0 to index1, inclusive. |
protected void |
setRowSelectionInterval(int index0, int index1)
Selects the rows from index0 to index1, inclusive. |
void |
setState(com.rational.test.ft.script.Action action)
This method performs a specific action. |
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 for JTableProxy. |
protected boolean |
testKeysForUniqueness(int row, int roCol, int[] roCols, java.lang.String[] roValues)
|
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.jfc.JScrollPaneProxy |
---|
click, getAssociateProxy, getClippedRect, getHScroll, getRealTestObject, getScroll, getScrollPaneProxy, getViewport, getVScroll, isPointInObject, isScroll |
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 |
Constructor Detail |
---|
public JTableProxy(java.lang.Object theObjectInTheSUT)
Method Detail |
---|
public java.lang.String getRole()
TestObjectRole.ROLE_TABLE
.
getRole
in class JScrollPaneProxy
public boolean shouldBeMapped()
shouldBeMapped
in class JScrollPaneProxy
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 JScrollPaneProxy
subitem
- The subitem to fetch an object for.
protected int columnAtPoint(java.awt.Point pt)
pt
- The Header component relative coordinates that should be used to determine the column index.
protected int rowAtPoint(java.awt.Point pt)
pt
- The Table component relative coordinates that should be used to determine the row index.
protected int getColumnCount()
protected int getRowCount()
protected java.lang.String getColumnName(int nColumn)
nColumn
- The column index for which a name
should be created.
protected java.lang.String getColumnHeader(int nColumn)
nColumn
- The column index for which a name
should be created.
protected 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 boolean isCellEditable(int nColumn, int nRow)
nColumn
- The column index to get the cell state for.nRow
- The row index to get the cell state for.
protected boolean isColumnSelected(int columnIndex)
columnIndex
- the index of the column in the column model protected boolean isCellSelected(int rowIndex, int columnIndex)
columnIndex
- the index of the column in the column model protected boolean isRowSelected(int rowIndex)
rowIndex
- the index of the row protected boolean getColumnSelectionAllowed()
protected boolean getRowSelectionAllowed()
protected int[] getSelectedColumns()
protected int[] getSelectedRows()
protected int getFirstSelectedRow()
protected void clearSelection()
protected void setColumnSelectionInterval(int index0, int index1)
index0
- one end of the interval index1 the other end of the intervalprotected void addColumnSelectionInterval(int index0, int index1)
index0
- one end of the interval index1 the other end of the intervalprotected void setRowSelectionInterval(int index0, int index1)
index0
- one end of the interval index1 the other end of the intervalprotected void addRowSelectionInterval(int index0, int index1)
index0
- one end of the interval index1 the other end of the intervalprotected void changeSelection(int rowIndex, int columnIndex, boolean toggle, boolean extend)
protected java.lang.String getRenderedStringAt(int nRow, int nColumn)
protected java.lang.String getRenderedStringAt(int nRow, int nColumn, boolean checkLength)
nColumn
- The column index to get the table cell image for.nRow
- The row index to get the table cell image for.checkLength
- The flag to check the lenght protected java.lang.Object getValueAt(int nRow, int nColumn)
nColumn
- The column index to get the table cell image for.nRow
- The row index to get the table cell image for.
protected javax.swing.table.TableModel getModel()
protected java.lang.String getObjectStringAt(int nRow, int nColumn)
protected com.rational.test.ft.script.Cell getCell(java.awt.Point pt)
protected com.rational.test.ft.script.Cell getCell(int columnIndex, int rowIndex)
protected com.rational.test.ft.script.Column getColumn(java.awt.Point pt)
protected com.rational.test.ft.script.Column getColumn(int columnIndex)
protected com.rational.test.ft.script.Row getRow(java.awt.Point pt)
protected com.rational.test.ft.script.Row getRow(int rowIndex)
public int[] getKeyColumns(int nRow)
protected boolean testKeysForUniqueness(int row, int roCol, int[] roCols, java.lang.String[] roValues)
public void setState(com.rational.test.ft.script.Action action)
setState
in interface com.rational.test.ft.object.interfaces.ISubitem
setState
in class JScrollPaneProxy
action
- The action that should be performed.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
setState
in class JScrollPaneProxy
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
setState
in class JScrollPaneProxy
start
- The first item to act upon.end
- The last item to act upon.action
- The action that should be performed.public void processSingleMouseEvent(IMouseActionInfo action)
processSingleMouseEvent
in class JavaGuiProxy
action
- The event cache and other mouse state information
for this mouse action.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 JavaGuiProxy
x
- The screen relative x coordinate.y
- The screen relative y coordinate.MethodSpecification
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 JavaProxy
type
/description
pairs used to describe the verification data available from this proxy.getTestData(String)
,
ITestData
public com.rational.test.ft.vp.ITestData getTestData(java.lang.String testDataType)
testDataType
parameter is a hashtable key returned by getTestDataTypes()
.
getTestData
in class ProxyTestObject
testDataType
- A test data type supplied by
getTestDataTypes()
.
getTestDataTypes()
,
ITestData
protected java.lang.Object getTestDataTableAt(int row, int col, java.lang.String type, javax.swing.table.TableModel model)
public 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 ProxyTestObject
testDataType
- A test data type supplied by
getTestDataTypes()
.testData
- The test data base object that requires
updating.
testData
passed in with appropriate updates.getTestDataTypes()
,
ITestData
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 JScrollPaneProxy
public boolean canBeScrolled()
canBeScrolled
in class ComponentProxy
public com.rational.test.ft.sys.MethodSpecification getDataDrivableCommand()
null
value is returned.
getDataDrivableCommand
in interface IDataDriven
getDataDrivableCommand
in class ProxyTestObject
ProxyTestObject.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 |