public class FlexAdvancedDataGridProxy extends FlexListBaseProxy
Modifier and Type | Class and Description |
---|---|
class |
FlexAdvancedDataGridProxy.FlexDataGridRow |
argsArray, EVENTTRIGGER_KEYBOARD, EVENTTRIGGER_MOUSE, PROPERTY_ALLOWMULTISELECT, PROPERTY_LOCKEDCOLCOUNT, PROPERTY_LOCKEDROWCOUNT, PROPERTY_NUMCHILDREN, PROPERTY_SELECTABLE, PROPERTY_SELINDEX, PROPERTY_SELINDICES, PROPERTY_SELITEM, PROPERTY_SELITEMS, PROPERTY_SHOWDATATIPS, spacePressed
addedRecProps, 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, transactionId
BROWSERTABTESTOBJECT_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
INCLUDE_ALL, INCLUDE_JUSTOBJECT, INCLUDE_SIBLINGS
Constructor and Description |
---|
FlexAdvancedDataGridProxy(FlexTestDomainImplementation theDomain,
IChannel channel,
java.lang.String theAutomationID) |
FlexAdvancedDataGridProxy(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 |
collapse(Subitem atText) |
void |
columnShift(Subitem columnTo,
Subitem columnFrom) |
void |
expand(Subitem atText) |
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.
|
java.lang.String |
getExpandArgs(java.lang.String groupName) |
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.
|
FlexAdvancedDataGridProxy.FlexDataGridRow |
getRow(int index) |
FlexAdvancedDataGridProxy.FlexDataGridRow[] |
getRows() |
FlexAdvancedDataGridProxy.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 colHeader) |
void |
headerClick(Subitem colHeader,
java.lang.String fKeyModifier,
Subitem headerPart,
java.lang.String triggerEvent) |
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, isTriggerKeyBoard
scroll, scroll
addAdditionalRecognitionProperties, addRecognitionProperty, changeFocus, changeFocus, changeFocus, changeFocus, click, doubleClick, 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, suppressKeyAction
addDataDrivableCommands, 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, updateTestData
public FlexAdvancedDataGridProxy(FlexTestDomainImplementation theDomain, IChannel channel, java.lang.String theAutomationID)
public FlexAdvancedDataGridProxy(FlexTestDomainImplementation theDomain, java.lang.String theAutomationID)
public java.lang.String getTestObjectClassName()
FlexObjectProxy
TestObject
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 IProxyBase
getTestObjectClassName
in class FlexListBaseProxy
testObject
class full name.public java.lang.String getRole()
FlexObjectProxy
java.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 FlexObjectProxy
public 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 FlexListBaseProxy
FlexObjectProxy.getProperty(String)
,
FlexObjectProxy.setProperty(String,Object)
,
FlexObjectProxy.getStandardProperties()
,
FlexObjectProxy.getNonValueProperties()
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 FlexObjectProxy
type
/description
pairs
used to describe the verification data available from this
proxy.getTestData(String)
,
com.rational.test.ft.vp.ITestData
public ITestData getTestData(java.lang.String type)
ProxyTestObject
testDataType
parameter is a hashtable key
returned by getTestDataTypes()
.getTestData
in class ProxyTestObject
type
- A test data type supplied by
getTestDataTypes()
.ProxyTestObject.getTestDataTypes()
,
com.rational.test.ft.vp.ITestData
public java.lang.Object getChildAtPoint(java.awt.Point pt)
FlexObjectProxy
getChildAtPoint
in class FlexObjectProxy
pt
- 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 FlexScrollControlBaseProxy
public void click(Subitem cell)
FlexObjectProxy
TestObject
.click
in class FlexObjectProxy
public void click(MouseModifiers modifiers, Subitem cell)
FlexObjectProxy
TestObject
.click
in class FlexObjectProxy
public 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 colHeader)
public void headerClick(Subitem colHeader, java.lang.String fKeyModifier, Subitem headerPart, java.lang.String triggerEvent)
public void resizeColumns(Subitem index, Subitem position)
public void columnShift(Subitem columnTo, Subitem columnFrom)
public void collapse(Subitem atText)
public void expand(Subitem atText)
public java.lang.String getExpandArgs(java.lang.String groupName)
public java.util.Vector getActionArgs(java.lang.String methodName)
public boolean isEditable()
protected java.lang.String getMethodName(java.lang.String eventName)
getMethodName
in class FlexListBaseProxy
public FlexAdvancedDataGridProxy.FlexDataGridRow getRow(int index)
public FlexAdvancedDataGridProxy.FlexDataGridRow[] getSelectedRows()
public FlexAdvancedDataGridProxy.FlexDataGridRow[] getRows()
public ProxyTestObject[] getMappableChildren()
getMappableChildren
in class FlexObjectProxy
public java.lang.Object getProperty(java.lang.String propertyName)
FlexObjectProxy
getProperties()
or getRecognitionProperties()
. If the property is not defined by either of these
methods, this method throws PropertyNotFoundException
.getProperty
in class FlexObjectProxy
propertyName
- The name of the property to fetch.FlexObjectProxy.getProperties()
,
FlexObjectProxy.setProperty(String,Object)
,
FlexObjectProxy.getRecognitionProperties()
,
FlexObjectProxy.addRecognitionProperty(String,Object,int)