public class FlexDataGridProxy extends FlexListBaseProxy
| Modifier and Type | Class and Description |
|---|---|
class |
FlexDataGridProxy.FlexDataGridRow |
| Modifier and Type | Field and Description |
|---|---|
protected static java.lang.String |
TESTDATA_CONTENTS |
protected static java.lang.String |
TESTDATA_SELECTED |
protected static java.lang.String |
TESTDATA_VISIBLECONTENTS |
argsArray, EVENTTRIGGER_KEYBOARD, EVENTTRIGGER_MOUSE, PROPERTY_ALLOWMULTISELECT, PROPERTY_COLCOUNT, PROPERTY_LOCKEDCOLCOUNT, PROPERTY_LOCKEDROWCOUNT, PROPERTY_NUMCHILDREN, PROPERTY_SELECTABLE, PROPERTY_SELINDEX, PROPERTY_SELINDICES, PROPERTY_SELITEM, PROPERTY_SELITEMS, PROPERTY_SHOWDATATIPS, PROPERTY_WORDWRAP, spacePressedaddedRecProps, addedRecPropsWeight, ARG_SEPARATOR, COLUMN_SEPARATOR, debug, domain, m_automationID, m_className, MAX_NAME, preDownState, PROPERTY_AUTOMATIONCLASSNAME, PROPERTY_AUTOMATIONINDEX, PROPERTY_AUTOMATIONNAME, PROPERTY_CLASSNAME, PROPERTY_CURRENTSTATE, PROPERTY_ENABLED, PROPERTY_FOCUSENABLED, PROPERTY_ID, PROPERTY_MOUSEENABLED, PROPERTY_TABENABLED, PROPERTY_TABINDEX, PROPERTY_TOOLTIP, PROPERTY_VISIBLE, ScrollDetailsValue, ScrollDirectionValue, transactionIdBROWSERTABTESTOBJECT_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, vomClippedRectangleINCLUDE_ALL, INCLUDE_JUSTOBJECT, INCLUDE_SIBLINGS| Constructor and Description |
|---|
FlexDataGridProxy(FlexTestDomainImplementation theDomain,
IChannel channel,
java.lang.String theAutomationID) |
FlexDataGridProxy(FlexTestDomainImplementation theDomain,
java.lang.String theAutomationID) |
| Modifier and Type | Method and Description |
|---|---|
void |
click(MouseModifiers modifiers,
Subitem cell)
Performs a left-mouse click on the specified coordinates, relative
to the associated
TestObject. |
void |
click(Subitem cell)
Performs a left-mouse click on the specified object, relative
to coordinates within the associated
TestObject. |
void |
doubleClick(Subitem cell)
Performs a left-mouse double-click on the specified object, relative
to coordinates within the associated
TestObject. |
java.util.Vector |
getActionArgs(java.lang.String methodName) |
java.lang.Object |
getChildAtPoint(java.awt.Point pt)
Finds the child object that is at the specified point.
|
int |
getColCount() |
java.lang.String[] |
getColumnNames() |
protected ITestData |
getGridData(java.lang.String strGridItems) |
ProxyTestObject[] |
getMappableChildren()
Returns an array of proxies, visible by using the TestObject interface
from a script, for the children of this object.
|
protected java.lang.String |
getMethodName(java.lang.String eventName) |
MethodSpecification |
GetMethodSpec(java.lang.String eventName,
java.lang.String eventArgs) |
java.util.Hashtable |
getProperties()
Returns a complete set of properties for the associated
test object.
|
java.lang.Object |
getProperty(java.lang.String propertyName)
Gets the value for a specific property defined in
getProperties() or getRecognitionProperties(). |
java.lang.String |
getRole()
Returns a brief type name that describes the role this object plays in the
UI.
|
FlexDataGridProxy.FlexDataGridRow |
getRow(int index) |
int |
getRowCount() |
FlexDataGridProxy.FlexDataGridRow[] |
getRows() |
FlexDataGridProxy.FlexDataGridRow[] |
getSelectedRows() |
ITestData |
getTestData(java.lang.String type)
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.
|
java.lang.String |
getTestObjectClassName()
Returns a valid class name specification.
|
void |
headerClick(Subitem index) |
void |
headerShift(Subitem newIndex,
Subitem oldIndex) |
void |
inputKeys(java.lang.String keyCode) |
void |
inputKeys(java.lang.String keyCode,
Subitem cell) |
boolean |
isEditable() |
void |
resizeColumns(Subitem index,
Subitem position) |
getModifiers, getSelectedIndex, getSelectedIndices, isEventTriggerPresent, isKeyModifierPresent, isMultiSelectAllowed, isTriggerKeyBoardscroll, scrolladdAdditionalRecognitionProperties, addRecognitionProperty, changeFocus, changeFocus, changeFocus, changeFocus, click, doubleClick, doubleClick, drag, drag, drag, drag, dragToScreenPoint, dragToScreenPoint, dragToScreenPoint, ensureObjectIsVisible, getAddedRecognitionProperty, getAddedRecognitionPropertyValue, getAddedRecognitionPropertyWeight, getAutomationChildAt, getChildren, getClientRectangle, getClippedScreenRectangle, getDataDrivableCommand, getDescriptiveName, getIndexer, getIndexers, getLabel, getMappableParent, getMethods, getMethodSpecForPoint, getNonValueProperties, getObjectClassName, getOwnedObjects, getOwner, getParent, getPlayerId, getPropertiesList, getRecognitionProperties, getRecognitionPropertyWeight, getScreenPoint, getScreenPoint, getScreenRectangle, getScriptCommandFlags, getStandardProperties, getTestDomain, getTopMappableParent, getTopParent, getTransactionId, getUniqueId, getValue, getVisualTopParent, hasAddedRecognitionProperties, hasFocus, hover, hover, hover, hover, isEnabled, isOpaque, isPointInObject, isShowing, mouseMove, mouseMove, nClick, nClickDrag, nClickDragToScreenPoint, performAction, performAction, performAction, performAction, performAction, performAction, processMouseEvent, setIndexer, setProperty, setTransactionId, shouldBeMapped, suppressKeyActionaddDataDrivableCommands, baseClassMatch, canTakeVP, equals, findChildrenWithProperties, findChildrenWithPropertiesAndInvoke, getChannel, getChildren, getDataDrivableCommands, getElementWithFocus, getField, getIgnorableProperties, getMappableChildren, getMappableParent, getObjectCustomClassName, getOwnedObjects, getParent, getProxy, getScriptCommandAnchor, getVisualClippableParent, getVisualClippedRectangle, getVisualMappableChildren, getVOMSpecificProperty, hasSpecialFrameState, isClassIndexConsidered, isSameObject, isValidObject, ping, updateTestDataprotected static final java.lang.String TESTDATA_CONTENTS
protected static final java.lang.String TESTDATA_SELECTED
protected static final java.lang.String TESTDATA_VISIBLECONTENTS
public FlexDataGridProxy(FlexTestDomainImplementation theDomain, IChannel channel, java.lang.String theAutomationID)
public FlexDataGridProxy(FlexTestDomainImplementation theDomain, java.lang.String theAutomationID)
public java.lang.String getTestObjectClassName()
FlexObjectProxyTestObject class. The testObject
performs a cross-process (and cross-JVM) call to the
same method against an associated proxy, which is this proxy.
This method should never return null, even if shouldBeMapped()
returns false. User may still access objects such as this through
scripting method calls and can return references to them.
If a null were returned, the marshalling code would be confused and would not
be able to construct a test object.
This method may be called from any thread.
getTestObjectClassName in interface IProxyBasegetTestObjectClassName in class FlexListBaseProxytestObject class full name.public java.lang.String getRole()
FlexObjectProxyjava.awt.Button might return button.
There are suggested role constants in the TestObjectRole
class. However, proxies are not limited to these constants.
The role is used for several purposes by the test infrastructure. First, the
role can be used in the construction of object names in scripts, augmenting
the name returned by getDescriptiveName().
The role is also used in the UI to decorate nodes in the map with icons that
help users quickly associate the nodes with the roles they play in the system
under test.
getRole in class FlexObjectProxypublic java.util.Hashtable getProperties()
FlexObjectProxy
This method does not return properties whose values are references
to objects. The method FlexObjectProxy.getNonValueProperties() returns
information about such properties.
getProperties in class FlexListBaseProxyFlexObjectProxy.getProperty(String),
FlexObjectProxy.setProperty(String,Object),
FlexObjectProxy.getStandardProperties(),
FlexObjectProxy.getNonValueProperties()public int getRowCount()
public java.lang.Object getProperty(java.lang.String propertyName)
FlexObjectProxygetProperties() or getRecognitionProperties(). If the property is not defined by either of these
methods, this method throws PropertyNotFoundException.getProperty in class FlexObjectProxypropertyName - The name of the property to fetch.FlexObjectProxy.getProperties(),
FlexObjectProxy.setProperty(String,Object),
FlexObjectProxy.getRecognitionProperties(),
FlexObjectProxy.addRecognitionProperty(String,Object,int)public int getColCount()
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 FlexObjectProxytype/description pairs
used to describe the verification data available from this
proxy.getTestData(String),
com.rational.test.ft.vp.ITestDatapublic ITestData getTestData(java.lang.String type)
ProxyTestObjecttestDataType parameter is a hashtable key
returned by getTestDataTypes().getTestData in class ProxyTestObjecttype - A test data type supplied by
getTestDataTypes().ProxyTestObject.getTestDataTypes(),
com.rational.test.ft.vp.ITestDatapublic java.lang.Object getChildAtPoint(java.awt.Point pt)
FlexObjectProxygetChildAtPoint in class FlexObjectProxypt - Screen-relative point to checknull if no child object is
foundFlexObjectProxy.getScreenRectangle()public MethodSpecification GetMethodSpec(java.lang.String eventName,
java.lang.String eventArgs)
GetMethodSpec in class FlexScrollControlBaseProxypublic void click(Subitem cell)
FlexObjectProxyTestObject.click in class FlexObjectProxypublic void doubleClick(Subitem cell)
FlexObjectProxyTestObject.doubleClick in class FlexObjectProxypublic void click(MouseModifiers modifiers,
Subitem cell)
FlexObjectProxyTestObject.click in class FlexObjectProxypublic void inputKeys(java.lang.String keyCode)
public void inputKeys(java.lang.String keyCode,
Subitem cell)
public void headerShift(Subitem newIndex,
Subitem oldIndex)
public void headerClick(Subitem index)
public void resizeColumns(Subitem index,
Subitem position)
public java.util.Vector getActionArgs(java.lang.String methodName)
public boolean isEditable()
protected java.lang.String getMethodName(java.lang.String eventName)
getMethodName in class FlexListBaseProxypublic FlexDataGridProxy.FlexDataGridRow getRow(int index)
public java.lang.String[] getColumnNames()
public FlexDataGridProxy.FlexDataGridRow[] getSelectedRows()
public FlexDataGridProxy.FlexDataGridRow[] getRows()
public ProxyTestObject[] getMappableChildren()
getMappableChildren in class FlexObjectProxyprotected ITestData getGridData(java.lang.String strGridItems)