|
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.MenuComponentProxy
com.rational.test.ft.domain.java.awt.MenuItemProxy
public class MenuItemProxy
Proxy for AWT MenuItem objects.
GuiTestObject
| Type | Desciption | Data Class |
|---|---|---|
| text | Visible 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. |
| label | The visible text of the menu item. |
| name | The name property, suppressed if default formatted (default form = className+count). |
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class com.rational.test.ft.domain.java.awt.MenuComponentProxy |
|---|
MenuComponentProxy.ChildEnumerator |
| Field Summary | |
|---|---|
protected static java.awt.Point |
screenPoint
|
| Fields inherited from class com.rational.test.ft.domain.java.awt.MenuComponentProxy |
|---|
CLASSINDEX, CLASSINDEXWEIGHT, MAX_NAME, NAME |
| 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 | |
|---|---|
MenuItemProxy(java.lang.Object theObjectInTheSUT)
Sets the SUT object as a member variable for the proxy. |
|
| Method Summary | |
|---|---|
ProxyTestObject |
getAssociateProxy()
Return the MenuBarProxy proxy we want to record the actions against. |
java.lang.String |
getDescriptiveName()
Returns a name that can be used to describe the associated UI object in a script. |
java.lang.String |
getLabel()
get the label on the menu item |
com.rational.test.ft.script.Subitem[] |
getPath()
Get the path to this menu item relative to the top of the menu hierarchy. |
java.lang.String |
getRole()
Returns TestObjectRole.ROLE_MENU_ITEM. |
java.awt.Rectangle |
getScreenRectangle()
Returns the rectangle that contains the component being evaluated relative to the top left corner of the screen. |
boolean |
getState()
get the label on the menu item |
com.rational.test.ft.script.Subitem |
getSubitem()
Return the Subitem describes this JMenuItem. |
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. |
boolean |
isEnabled()
Check the component under evaluation to determine if it is enabled or disabled. |
boolean |
isShowing()
Check the component under evaluation to determine if it is showing (as apposed to hidden). |
boolean |
isSubitem(com.rational.test.ft.script.Subitem subitem)
true if the specified subitem is valid for this menu item. |
void |
processSingleMouseEvent(IMouseActionInfo action)
|
protected void |
setScreenPoint(java.awt.Point pt)
|
| Methods inherited from class com.rational.test.ft.domain.java.awt.MenuComponentProxy |
|---|
getChildAtPoint, getChildrenEnumeration, getClippedRect, getImmediateChildren, getMappableParent, getMenuChildrenArray, getName, getOwnedObjects, getOwner, getParent, getParentObject, getProperty, getTopParent, hasFocus, isOpaque |
| Methods inherited from class com.rational.test.ft.domain.java.JavaProxy |
|---|
addMappableChildrenToVector, addRecognitionProperty, allowProperty, childConstructed, getAddedRecognitionPropertyValue, getChildren, getIndexer, getIndexers, getMappableChildren, getMethods, getNonValueProperties, getProperties, getRecognitionProperties, getRecognitionPropertyWeight, getStandardProperties, getTestDomain, getTopMappableParent, getUniqueId, getVisualClippableParent, hasAddedRecognitionProperties, isRecognitionProperty, 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 |
| Field Detail |
|---|
protected static java.awt.Point screenPoint
| Constructor Detail |
|---|
public MenuItemProxy(java.lang.Object theObjectInTheSUT)
| Method Detail |
|---|
public java.lang.String getRole()
TestObjectRole.ROLE_MENU_ITEM.
getRole in class MenuComponentProxypublic java.lang.String getLabel()
public boolean getState()
public java.lang.String getDescriptiveName()
getDescriptiveName in class MenuComponentProxypublic boolean isShowing()
isShowing in interface com.rational.test.ft.object.interfaces.IGraphicalisShowing in class MenuComponentProxypublic boolean isEnabled()
isEnabled in interface com.rational.test.ft.object.interfaces.IGraphicalisEnabled in class MenuComponentProxypublic java.awt.Rectangle getScreenRectangle()
getScreenRectangle in interface com.rational.test.ft.object.interfaces.IGraphicalgetScreenRectangle in class MenuComponentProxyIGraphical.isPointInObject(java.awt.Point),
IGraphical.getClippedScreenRectangle()public com.rational.test.ft.script.Subitem[] getPath()
public com.rational.test.ft.script.Subitem getSubitem()
public boolean isSubitem(com.rational.test.ft.script.Subitem subitem)
true if the specified subitem is valid for this menu item.
true if the specified subitem is valid for this menu item.public ProxyTestObject getAssociateProxy()
public void processSingleMouseEvent(IMouseActionInfo action)
processSingleMouseEvent in class JavaGuiProxypublic 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(),
ITestDataprotected void setScreenPoint(java.awt.Point pt)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||