public class ListProxy extends ScrollableSwtGraphicalSubitemProxy
org.eclipse.swt.widgets.List.
GuiSubitemTestObject
| Type | Desciption | Data Class |
|---|---|---|
| list | List Elements | ITestDataList |
| selected | Selected List Elements | ITestDataList |
| 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. |
| .itemCount | The number of items in the list. |
| .itemText | The text for the up to ten items from the list. |
| Subitem | Usage |
|---|---|
Text |
Defines the element with the specified visible text. |
Index |
Defines the element at the specified zero-based index. |
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, vomClippedRectangleINCLUDE_ALL, INCLUDE_JUSTOBJECT, INCLUDE_SIBLINGS| Constructor and Description |
|---|
ListProxy(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 |
ensureIndexIsVisible(int index)
If this JList is being displayed within a JViewport and the specified cell
isn't completely visible, scroll the viewport to make this cell visible.
|
protected void |
extendSelect(int index)
This method extends the current selection to include
a subitem at a specified index.
|
MethodSpecification |
getDataDrivableCommand()
This method must be implemented by any proxy that wishes to support
data driving.
|
java.awt.Rectangle |
getDisplayRectangle() |
int |
getFirstSelectedIndex() |
protected int |
getFirstVisibleIndex()
Returns the index of the cell in the upper left corner of the JList
or -1 if nothing is visible or the list is empty.
|
java.lang.String |
getItem(int index)
Gets an item at an index.
|
int |
getItemCount()
Gets the number of items.
|
protected int |
getItemIndex(com.rational.test.ft.script.Text item)
Returns the index in the List of item.
|
protected int |
getItemIndex(java.lang.String item)
Returns the index in the List of item .
|
protected int |
getItemIndex(Subitem item)
Returns the index in the List of item.
|
java.lang.String[] |
getItems()
Gets the items.
|
protected java.lang.String[] |
getItems(int limit) |
protected int |
getLastVisibleIndex()
Returns the index of the cell in the lower left corner of the JList
or -1 if nothing is visible or the list is empty.
|
MethodSpecification |
getMethodSpecForPoint(java.awt.Point pt)
Return a MethodSpecification for a method that returns a java.awt.Point
for the specified coordinates.
|
java.util.Hashtable |
getProperties()
Returns a complete set of properties for the associated
test object.
|
java.lang.Object |
getProperty(java.lang.String propertyName)
Get the value for a specific property.
|
java.lang.String |
getRole()
Returns
TestObjectRole.ROLE_LIST. |
java.awt.Rectangle |
getScreenRectangle(Subitem subitem)
Returns the rectangle that contains the component being
evaluated relative to the top left corner of the screen.
|
protected Subitem |
getSubitem(int index)
Returns the Subitem at the specified index.
|
java.lang.Object |
getSubitem(Subitem subitem)
Returns an object that represents the specified subitem in the associated
test object.
|
ITestData |
getTestData(java.lang.String testDataType)
This method 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 in the SUT.
|
java.lang.String |
getTestObjectClassName()
Return the GuiSubitemTestObject classname.
|
protected int |
locationToIndex(java.awt.Point pt) |
void |
processSingleMouseEvent(IMouseActionInfo action)
Return a MethodSpecification for the specified mouse event.
|
protected void |
select(int index)
Selects an item.
|
protected void |
select(java.lang.String item)
Selects an item given the name.
|
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.
|
void |
setState(com.rational.test.ft.script.Action action,
Subitem item)
This method performs a specific action against the subitem
at a specified index.
|
void |
setState(com.rational.test.ft.script.Action action,
Subitem start,
Subitem end)
This method performs a specific action against the subitem
range defined by the specified indices.
|
ITestData |
updateTestData(java.lang.String testDataType,
ITestData testData)
This method 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, getScreenPoint, hover, hover, hover, hover, hScrollTo, mouseMove, mouseMove, mouseMove, mouseMove, nClick, nClickDrag, nClickDrag, nClickDragToScreenPoint, nClickDragToScreenPoint, scrollLineDown, scrollLineLeft, scrollLineRight, scrollLineUp, scrollPageDown, scrollPageLeft, scrollPageRight, scrollPageUp, setState, 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, getReorderedChildren, getScreenRectangle, getStyle, getToolTipText, getTopMappableParent, getTopParent, getVisualClippedRectangle, hasFocus, isEnabled, isGTK, isLabelled, isObjectMoved, isShell, isShowing, processHoverMouseEvent, processPreDownMouseEvent, processPreUpMouseEvent, setClickArgs, setDownPointArgs, setDrag, setMethodSpecification, setMultiClickAction, setRecordCacheactivateTopWindow, click, doubleClick, drag, dragToScreenPoint, dumpAction, ensureObjectIsVisible, getActionRect, getCachedRectX, getCachedRectY, getChildAtPoint, getClippedRect, getProcessMouseEventHandler, getRegisteredTopLevelWindow, getScreenPoint, getScriptCommandFlags, getTopMappableWindow, getTopWindow, hover, invokeMethodOnEDT, isDrag, isOpaque, isPointInObject, isPointInObject, modifiersChanged, nClick, processMouseEvent, setProcessMouseEventHandler, setTopLevelWindow, shouldBeMappedaddMappableChildrenToVector, addRecognitionProperty, allowProperty, getAddedRecognitionPropertyValue, getChildren, getIndexer, getIndexers, getMappableChildren, getMethods, getNonValueProperties, getRecognitionProperties, getRecognitionPropertyWeight, getStandardProperties, getTestDomain, getUniqueId, getVisualClippableParent, hasAddedRecognitionProperties, isRecognitionProperty, setIndexer, setPropertyaddDataDrivableCommands, baseClassMatch, 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 ListProxy(java.lang.Object theObjectInTheSUT)
public java.lang.String getRole()
TestObjectRole.ROLE_LIST.getRole in class ControlProxypublic java.lang.String getTestObjectClassName()
getTestObjectClassName in interface IProxyBasegetTestObjectClassName in class ScrollableSwtGraphicalSubitemProxypublic java.util.Hashtable getProperties()
ProxyTestObject
This method does not return properties whose values are references
to objects. The method ProxyTestObject.getNonValueProperties() returns
information about such properties.
getProperties in class JavaProxyProxyTestObject.getProperty(String),
ProxyTestObject.setProperty(String,Object),
ProxyTestObject.getStandardProperties(),
ProxyTestObject.getNonValueProperties()public java.lang.Object getProperty(java.lang.String propertyName)
getProperty in class ControlProxypropertyName - The name of the property to fetch.ProxyTestObject.getProperties(),
ProxyTestObject.setProperty(String,Object),
ProxyTestObject.getRecognitionProperties(),
ProxyTestObject.addRecognitionProperty(String,Object,int)public java.lang.String[] getItems()
protected java.lang.String[] getItems(int limit)
public java.lang.String getItem(int index)
index - the index of the itempublic int getItemCount()
protected Subitem getSubitem(int index)
getSubitem in class ScrollableSwtGraphicalSubitemProxyindex - the specified index.public java.lang.Object getSubitem(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 class ScrollableSwtGraphicalSubitemProxysubitem - The subitem to fetch an object for.protected int getItemIndex(java.lang.String item)
item - a Stringprotected int getItemIndex(com.rational.test.ft.script.Text item)
item - a Textprotected int getItemIndex(Subitem item)
item - a Subitemprotected void select(int index)
protected void select(java.lang.String item)
protected void extendSelect(int index)
item - The index of the item to select.public int getFirstSelectedIndex()
protected int getFirstVisibleIndex()
protected int getLastVisibleIndex()
protected int locationToIndex(java.awt.Point pt)
protected void ensureIndexIsVisible(int index)
index - the index of the cell to make visibleprotected 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.public void setState(com.rational.test.ft.script.Action action,
Subitem item)
item - The item to act upon.action - The action that should be performed.public void setState(com.rational.test.ft.script.Action action,
Subitem start,
Subitem end)
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 ScrollableProxyaction - The event cache and other mouse state information
for this mouse action.public MethodSpecification getMethodSpecForPoint(java.awt.Point pt)
IGraphical.getScreenPoint will be returned. However, if a proxy can findgetMethodSpecForPoint in class JavaGuiProxyx - The screen relative x coordinate.y - The screen relative y coordinate.MethodSpecificationpublic java.awt.Rectangle getDisplayRectangle()
public java.awt.Rectangle getScreenRectangle(Subitem subitem)
getScreenRectangle in class ScrollableSwtGraphicalSubitemProxypublic MethodSpecification getDataDrivableCommand()
null value is returned.getDataDrivableCommand in interface IDataDrivengetDataDrivableCommand in class ProxyTestObjectProxyTestObject.getDataDrivableCommands(int)public java.util.Hashtable getTestDataTypes()
getTestDataTypes in class JavaProxygetTestData(String),
ITestDatapublic ITestData getTestData(java.lang.String testDataType)
getTestDataTypes.getTestData in class ProxyTestObjecttestDataType - A test data type supplied by
getTestDataTypes.getTestDataTypes(),
ITestDatapublic ITestData updateTestData(java.lang.String testDataType,
ITestData testData)
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.getTestDataTypes(),
ITestData