|
IBM Rational Functional Tester Version 8.1.1000 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.swt.MenuItemProxy
public class MenuItemProxy
Proxy for SWT MenuItem objects.
GuiTestObject
| Type | Desciption | Data Class |
|---|---|---|
| text | Visible Text | ITestDataText |
| state | Toggle Button State | ITestData |
| 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. |
| text | The visible text of the menuitem. If there is no visible text this property is omitted. |
| Nested Class Summary | |
|---|---|
protected class |
MenuItemProxy.ChildEnumerator
|
| Field Summary | |
|---|---|
protected static java.lang.String |
CLASSINDEX
|
protected static int |
CLASSINDEXWEIGHT
|
protected static int |
MAX_NAME
|
protected static java.lang.String |
TESTDATA_STATE
|
protected static java.lang.String |
TESTDATA_TEXT
|
protected static java.lang.Object |
theCacheMenu
|
| 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 | |
|---|---|
IChannel |
getChannel()
return a channel for the object. |
java.lang.Object |
getChildAtPoint(java.awt.Point pt)
Finds the child object that is at the specified point. |
java.util.Enumeration |
getChildrenEnumeration()
Return an enumeration of mappable proxies for the children of this object. |
java.awt.Rectangle |
getClippedScreenRectangle()
Returns the clipped-screen rectangle for the associated TestObject |
java.lang.String |
getDescriptiveName()
Returns a name that can be used to describe the associated UI object in a script. |
java.util.Enumeration |
getImmediateChildren()
Return an enumeration of proxies for the immediate children of this object. |
int |
getIndex()
|
java.lang.String |
getLabel()
get the label on the menu item |
ProxyTestObject |
getMappableParent()
Returns a proxy object for the mappable parent of this object. |
MenuProxy |
getMenuProxy()
|
ProxyTestObject[] |
getOwnedObjects()
Always returns null because object relationships are not understood at this level of abstaction. |
ProxyTestObject |
getOwner()
Always returns null because object relationships are not understood at this level of abstaction. |
ProxyTestObject |
getParent()
Returns a proxy object for the parent of this object. |
java.lang.Object |
getParentObject()
Returns an object for the parent of this object. |
com.rational.test.ft.script.Subitem[] |
getPath()
Get the path to this menu item relative to the top of the menu hierarchy. |
java.lang.Object |
getProperty(java.lang.String propertyName)
Get the value for a specific property. |
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. |
protected boolean |
getState()
|
int |
getStyle()
|
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. |
java.awt.Rectangle |
getVisualClippedRectangle()
The optimized way to obtain the ClippedRectangle. |
boolean |
hasFocus()
Check the component under evaluation to determine if it has keyboard focus. |
protected boolean |
isCheckBox()
|
boolean |
isEnabled()
Checks the component under evaluation to determine if it is enabled or disabled. |
boolean |
isOpaque()
Check the component under evaluation to determine if it is opaque or transparent. |
protected boolean |
isRadioButton()
|
protected boolean |
isSeparator()
|
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)
|
void |
setCachedMenuBar(java.lang.Object topMenu)
|
| 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 final java.lang.String CLASSINDEX
protected static final int CLASSINDEXWEIGHT
protected static java.lang.Object theCacheMenu
protected static final int MAX_NAME
protected static final java.lang.String TESTDATA_TEXT
protected static final java.lang.String TESTDATA_STATE
| Constructor Detail |
|---|
public MenuItemProxy(java.lang.Object theObjectInTheSUT)
| Method Detail |
|---|
public java.lang.String getRole()
TestObjectRole.ROLE_MENU_ITEM.
getRole in class JavaProxypublic java.lang.String getLabel()
public java.lang.String getDescriptiveName()
getDescriptiveName in class JavaGuiProxypublic int getStyle()
public ProxyTestObject getParent()
getParent in class JavaGuiProxypublic void processSingleMouseEvent(IMouseActionInfo action)
processSingleMouseEvent in class JavaGuiProxypublic void setCachedMenuBar(java.lang.Object topMenu)
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(),
ITestDatapublic MenuProxy getMenuProxy()
public java.lang.Object getParentObject()
getParentObject in class JavaGuiProxypublic boolean isEnabled()
isEnabled in interface com.rational.test.ft.object.interfaces.IGraphicalisEnabled in class JavaGuiProxypublic boolean isShowing()
isShowing in interface com.rational.test.ft.object.interfaces.IGraphicalisShowing in class JavaGuiProxypublic boolean isOpaque()
JavaGuiProxy
isOpaque in interface com.rational.test.ft.object.interfaces.IGraphicalisOpaque in class JavaGuiProxypublic boolean hasFocus()
JavaGuiProxy
hasFocus in interface com.rational.test.ft.object.interfaces.IGraphicalhasFocus in class JavaGuiProxypublic ProxyTestObject getMappableParent()
JavaGuiProxy
getMappableParent in class JavaGuiProxypublic java.util.Enumeration getChildrenEnumeration()
JavaGuiProxy
getChildrenEnumeration in class JavaGuiProxypublic java.util.Enumeration getImmediateChildren()
JavaGuiProxy
getImmediateChildren in class JavaGuiProxypublic ProxyTestObject getOwner()
JavaProxy
getOwner in class JavaProxypublic ProxyTestObject[] getOwnedObjects()
JavaProxy
getOwnedObjects in class JavaProxypublic java.lang.Object getChildAtPoint(java.awt.Point pt)
JavaGuiProxy If this object has no children, it should return null.
getChildAtPoint in interface com.rational.test.ft.object.interfaces.IGraphicalgetChildAtPoint in class JavaGuiProxypt - Screen relative point to check.
JavaGuiProxy.getScreenRectangle()public java.awt.Rectangle getScreenRectangle()
getScreenRectangle in interface com.rational.test.ft.object.interfaces.IGraphicalgetScreenRectangle in class JavaGuiProxyIGraphical.isPointInObject(java.awt.Point),
IGraphical.getClippedScreenRectangle()public java.awt.Rectangle getClippedScreenRectangle()
com.rational.test.ft.object.interfaces.IGraphicalTestObject
getClippedScreenRectangle in interface com.rational.test.ft.object.interfaces.IGraphicalgetClippedScreenRectangle in class JavaGuiProxynull if the object cannot be seen
in any window on the screen.IGraphical.getScreenRectangle()public java.awt.Rectangle getVisualClippedRectangle()
getVisualClippedRectangle in class ProxyTestObjectpublic java.lang.Object getProperty(java.lang.String propertyName)
getProperty in class JavaProxypropertyName - The name of the property to fetch.
ProxyTestObject.getProperties(),
ProxyTestObject.setProperty(String,Object),
ProxyTestObject.getRecognitionProperties(),
ProxyTestObject.addRecognitionProperty(String,Object,int)public com.rational.test.ft.script.Subitem[] getPath()
public int getIndex()
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 IChannel getChannel()
getChannel in interface IChannelObjectgetChannel in class ProxyTestObjectprotected boolean isRadioButton()
protected boolean isCheckBox()
protected boolean isSeparator()
protected boolean getState()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||