|
IBM Rational Functional Tester Version 8.2.1 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.Objectcom.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.JComboBoxProxy
public class JComboBoxProxy
Proxy for the javax.swing.JComboBox class.
TextSelectGuiSubitemTestObject
| Type | Desciption | Data Class |
|---|---|---|
| list | List Elements | ITestDataList |
| selected | Selected List Elements | ITestDataText |
| text | Current Text | ITestDataText |
| 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. |
| .itemCount | The number of items in the list. |
| .itemText | The text for the up to ten items from the list. |
| .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 |
|---|---|
Text |
Defines the element with the specified visible text. |
Index |
Defines the element at the specified zero-based index. |
| 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.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 | |
|---|---|
JComboBoxProxy(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 |
activateTopWindow()
|
void |
click(com.rational.test.ft.script.MouseModifiers modifiers)
Perform a mouse click action at the specified object relative coordinates within the associated TestObject. |
void |
doubleClick(com.rational.test.ft.script.MouseModifiers modifiers)
Perform a mouse dbl-click action at the specified object relative coordinates within the associated TestObject. |
void |
drag(com.rational.test.ft.script.MouseModifiers modifiers)
Perform a drag action against the associated TestObject with the supplied set of mouse modifiers. |
protected AbstractButtonProxy |
getButtonProxy()
Return the AbstractButtonProxy associated with this JComboBox. |
java.util.Enumeration |
getChildrenEnumeration()
Return an enumeration of proxies for the children of this object. |
com.rational.test.ft.sys.MethodSpecification |
getDataDrivableCommand()
This method must be implemented by any proxy that wishes to support data driving. |
protected int |
getItemCount()
|
protected int |
getItemIndex(com.rational.test.ft.script.Subitem item)
|
protected int |
getItemIndex(com.rational.test.ft.script.Text item)
|
protected java.lang.Object |
getItemObject(int nIndex)
|
protected java.lang.Object[] |
getItemObjects()
|
protected java.lang.String[] |
getItemsText(int limit)
|
java.lang.String |
getItemText(int nIndex)
This method returns the image of the value at the specified index. |
protected javax.swing.JLabel |
getLabel()
Return the AbstractButtonProxy associated with this JComboBox. |
protected JListProxy |
getListProxy()
Return the JListProxy associated with this JComboBox. |
ProxyTestObject[] |
getOwnedObjects()
Returns an array of proxies for the objects owned by this object. |
protected JPopupMenuProxy |
getPopupProxy()
Return the JPopupMenu associated with this JComboBox. |
java.lang.Object |
getProperty(java.lang.String propertyName)
Get the value for a specific property. |
java.lang.String |
getRole()
Returns TestObjectRole.ROLE_COMBO_BOX. |
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. |
int |
getSelectedIndex()
|
protected java.lang.Object |
getSelectedItemObject()
|
java.lang.String |
getSelectedText()
Allows direct access to the selected text property on the control. |
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)
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 test object that implements IGraphicalSubitem. |
java.lang.String |
getText()
Allows direct access to the text property on the control. |
protected JTextProxy |
getTextProxy()
Return the JTextProxy associated with this JComboBox. |
protected boolean |
isEditable()
Returns true if this JComboBox is editable. |
void |
processSingleMouseEvent(IMouseActionInfo action)
Return a MethodSpecification for the specified mouse event. |
void |
select(int index)
Directly modifies subitem selected in the control. |
void |
select(java.lang.String item)
Directly modifies subitem selected in the control. |
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 at a specified index. |
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. |
void |
setText(java.lang.String text)
Directly modifies the text on the control. |
com.rational.test.ft.vp.ITestData |
updateTestData(java.lang.String testDataType,
com.rational.test.ft.vp.ITestData testData)
This method updates the supplied test data object and returns it. |
| Methods inherited from class com.rational.test.ft.domain.java.jfc.JfcGraphicalSubitemProxy |
|---|
click, click, click, click, doubleClick, doubleClick, doubleClick, doubleClick, drag, drag, drag, drag, drag, drag, dragToScreenPoint, dragToScreenPoint, dragToScreenPoint, dragToScreenPoint, getScreenPoint, getScreenPoint, 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, getClippedRect, getClippedScreenRectangle, getDescriptiveName, getProperties, getStandardProperties, getText, getVisibleRectangle, getVisualClippedRectangle, hasFocus, isOpaque, isPointInObject, isType, scrollRectToVisible |
| Methods inherited from class com.rational.test.ft.domain.java.awt.ComponentProxy |
|---|
canBeScrolled, childConstructed, getChildAtPoint, getChildProxy, getComponentChildren, getEmbeddedBrowsers, getImmediateChildren, getLabelText, getLeadingLabel, getLocationOnScreen, getMappableChildren, getMappableParent, getName, 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 |
|---|
click, click, click, doubleClick, doubleClick, doubleClick, drag, drag, drag, dragToScreenPoint, dragToScreenPoint, dragToScreenPoint, dumpAction, ensureObjectIsVisible, getActionRect, getCachedRectX, getCachedRectY, getMethodSpecForPoint, getProcessMouseEventHandler, getRegisteredTopLevelWindow, getScreenPoint, getScreenPoint, getScriptCommandFlags, getTopMappableWindow, getTopWindow, hover, hover, hover, hover, isDrag, isPointInObject, modifiersChanged, mouseMove, mouseMove, nClick, nClickDrag, nClickDragToScreenPoint, processHoverMouseEvent, processMouseEvent, setProcessMouseEventHandler, setTopLevelWindow, shouldBeMapped |
| 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 JComboBoxProxy(java.lang.Object theObjectInTheSUT)
| Method Detail |
|---|
public java.lang.String getTestObjectClassName()
getTestObjectClassName in interface IProxyBasegetTestObjectClassName in class JfcGraphicalSubitemProxypublic java.lang.Object getProperty(java.lang.String propertyName)
getProperty in class JComponentProxypropertyName - The name of the property to fetch.
ProxyTestObject.getProperties(),
ProxyTestObject.setProperty(String,Object),
ProxyTestObject.getRecognitionProperties(),
ProxyTestObject.addRecognitionProperty(String,Object,int)public java.lang.String getRole()
TestObjectRole.ROLE_COMBO_BOX.
getRole in class JComponentProxypublic ProxyTestObject[] getOwnedObjects()
getOwnedObjects in class ComponentProxypublic java.util.Enumeration getChildrenEnumeration()
getChildrenEnumeration in class ComponentProxyprotected int getItemCount()
protected java.lang.Object getItemObject(int nIndex)
protected java.lang.Object[] getItemObjects()
protected java.lang.String[] getItemsText(int limit)
public java.lang.String getItemText(int nIndex)
nIndex - The item index to get the image of.
protected java.lang.Object getSelectedItemObject()
public java.lang.String getSelectedText()
com.rational.test.ft.object.interfaces.ISelect
getSelectedText in interface com.rational.test.ft.object.interfaces.ISelectpublic int getSelectedIndex()
protected int getItemIndex(com.rational.test.ft.script.Text item)
protected int getItemIndex(com.rational.test.ft.script.Subitem item)
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.IGraphicalSubitemgetSubitem in class JfcGraphicalSubitemProxysubitem - The subitem to fetch an object for.
protected boolean isEditable()
protected JListProxy getListProxy()
protected JPopupMenuProxy getPopupProxy()
protected AbstractButtonProxy getButtonProxy()
protected javax.swing.JLabel getLabel()
protected JTextProxy getTextProxy()
protected void activateTopWindow()
activateTopWindow in class JavaGuiProxypublic com.rational.test.ft.sys.MethodSpecification getDataDrivableCommand()
null value is returned.
getDataDrivableCommand in interface IDataDrivengetDataDrivableCommand in class ProxyTestObjectProxyTestObject.getDataDrivableCommands(int)public void processSingleMouseEvent(IMouseActionInfo action)
processSingleMouseEvent in class JavaGuiProxyaction - The event cache and other mouse state information
for this mouse action.public java.awt.Rectangle getScreenRectangle(com.rational.test.ft.script.Subitem subitem)
getScreenRectangle in interface com.rational.test.ft.object.interfaces.IGraphicalSubitemgetScreenRectangle in class JfcGraphicalSubitemProxypublic void click(com.rational.test.ft.script.MouseModifiers modifiers)
click in interface com.rational.test.ft.object.interfaces.IGraphicalclick in class JavaGuiProxypublic void doubleClick(com.rational.test.ft.script.MouseModifiers modifiers)
doubleClick in interface com.rational.test.ft.object.interfaces.IGraphicaldoubleClick in class JavaGuiProxypublic void drag(com.rational.test.ft.script.MouseModifiers modifiers)
drag in interface com.rational.test.ft.object.interfaces.IGraphicaldrag in class JavaGuiProxy
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)
setState in interface com.rational.test.ft.object.interfaces.ISubitemaction - 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.public java.lang.String getText()
com.rational.test.ft.object.interfaces.ISelect
getText in interface com.rational.test.ft.object.interfaces.ISelectgetText in interface com.rational.test.ft.object.interfaces.ITextpublic void setText(java.lang.String text)
com.rational.test.ft.object.interfaces.IText
setText in interface com.rational.test.ft.object.interfaces.ITexttext - The text to update the property text of the componentpublic void select(java.lang.String item)
com.rational.test.ft.object.interfaces.ISelectSubitemNotFoundException
is thrown.
select in interface com.rational.test.ft.object.interfaces.ISelectitem - the item to update the control withISelect.select(int)public void select(int index)
com.rational.test.ft.object.interfaces.ISelectSubitemNotFoundException
is thrown.
select in interface com.rational.test.ft.object.interfaces.ISelectindex - the index of the item to update the control withISelect.select(String)public java.util.Hashtable getTestDataTypes()
getTestDataTypes in class JavaProxygetTestData(String),
ITestDatapublic com.rational.test.ft.vp.ITestData getTestData(java.lang.String testDataType)
getTestDataTypes.
getTestData in class ProxyTestObjecttestDataType - A test data type supplied by
getTestDataTypes.
getTestDataTypes(),
ITestData
public com.rational.test.ft.vp.ITestData updateTestData(java.lang.String testDataType,
com.rational.test.ft.vp.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
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||