|
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.Object com.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
public class MenuComponentProxy
Base proxy for AWT Menu objects.
GuiTestObject
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. |
name | The name property, suppressed if default formatted (default form = className+count). |
Nested Class Summary | |
---|---|
protected class |
MenuComponentProxy.ChildEnumerator
|
Field Summary | |
---|---|
protected static java.lang.String |
CLASSINDEX
|
protected static int |
CLASSINDEXWEIGHT
|
protected static int |
MAX_NAME
|
protected static java.lang.String |
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 | |
---|---|
MenuComponentProxy(java.lang.Object theObjectInTheSUT)
Sets the SUT object as a member variable for the proxy. |
Method Summary | |
---|---|
java.lang.Object |
getChildAtPoint(java.awt.Point pt)
Finds the child object that is at the specified point. |
java.util.Enumeration |
getChildrenEnumeration()
Returns an enumeration of proxies for the children of this object. |
java.awt.Rectangle |
getClippedRect(java.awt.Rectangle childRect)
|
java.lang.String |
getDescriptiveName()
Returns a name that can be used to describe the associated UI object in a script. |
java.util.Enumeration |
getImmediateChildren()
Returns an enumeration of proxies for the immediate children of this object. |
ProxyTestObject |
getMappableParent()
Returns a proxy object for the parent of this object. |
protected ProxyTestObject[] |
getMenuChildrenArray()
This protected method is needed to access true menu child proxies. |
java.lang.String |
getName()
Gets the name of the object. |
ProxyTestObject[] |
getOwnedObjects()
Returns an array of proxies for the objects owned by this object. |
ProxyTestObject |
getOwner()
Returns a proxy object for the owner of this object. |
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. |
java.lang.Object |
getProperty(java.lang.String propertyName)
Gets the value for a specific property. |
java.lang.String |
getRole()
Returns TestObjectRole.ROLE_AWT . |
java.awt.Rectangle |
getScreenRectangle()
Returns the rectangle that contains the component being evaluated relative to the top left corner of the screen. |
ProxyTestObject |
getTopParent()
Returns a proxy object for the top parent of this object. |
boolean |
hasFocus()
Always returns false because there is not a direct way to determine who has the focus in the AWT world. |
boolean |
isEnabled()
Checks the component under evaluation to determine if it is enabled or disabled. |
boolean |
isOpaque()
Checks the component under evaluation to determine if it is opaque or transparent. |
boolean |
isShowing()
Checks the component under evaluation to determine if it is showing (as opposed to hidden). |
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 int MAX_NAME
protected static final java.lang.String CLASSINDEX
protected static final int CLASSINDEXWEIGHT
protected static final java.lang.String NAME
Constructor Detail |
---|
public MenuComponentProxy(java.lang.Object theObjectInTheSUT)
Method Detail |
---|
public java.lang.String getName()
public java.lang.String getDescriptiveName()
getDescriptiveName
in class JavaGuiProxy
public java.lang.String getRole()
TestObjectRole.ROLE_AWT
.
getRole
in class JavaProxy
public boolean isShowing()
isShowing
in interface com.rational.test.ft.object.interfaces.IGraphical
isShowing
in class JavaGuiProxy
public boolean isEnabled()
isEnabled
in interface com.rational.test.ft.object.interfaces.IGraphical
isEnabled
in class JavaGuiProxy
public boolean isOpaque()
isOpaque
in interface com.rational.test.ft.object.interfaces.IGraphical
isOpaque
in class JavaGuiProxy
public boolean hasFocus()
hasFocus
in interface com.rational.test.ft.object.interfaces.IGraphical
hasFocus
in class JavaGuiProxy
public java.awt.Rectangle getScreenRectangle()
getScreenRectangle
in interface com.rational.test.ft.object.interfaces.IGraphical
getScreenRectangle
in class JavaGuiProxy
IGraphical.isPointInObject(java.awt.Point)
,
IGraphical.getClippedScreenRectangle()
public java.awt.Rectangle getClippedRect(java.awt.Rectangle childRect)
getClippedRect
in class JavaGuiProxy
public ProxyTestObject getParent()
getParent
in class JavaGuiProxy
public java.lang.Object getParentObject()
getParentObject
in class JavaGuiProxy
public ProxyTestObject getMappableParent()
getMappableParent
in class JavaGuiProxy
public ProxyTestObject getTopParent()
getTopParent
in class JavaProxy
public java.util.Enumeration getChildrenEnumeration()
getChildrenEnumeration
in class JavaGuiProxy
public java.util.Enumeration getImmediateChildren()
getImmediateChildren
in class JavaGuiProxy
public ProxyTestObject getOwner()
getOwner
in class JavaProxy
public ProxyTestObject[] getOwnedObjects()
getOwnedObjects
in class JavaProxy
public java.lang.Object getChildAtPoint(java.awt.Point pt)
If this object has no children, it should return null
.
getChildAtPoint
in interface com.rational.test.ft.object.interfaces.IGraphical
getChildAtPoint
in class JavaGuiProxy
pt
- Screen relative point to check.
getScreenRectangle()
public java.lang.Object getProperty(java.lang.String propertyName)
getProperty
in class JavaProxy
propertyName
- The name of the property to fetch.
ProxyTestObject.getProperties()
,
ProxyTestObject.setProperty(String,Object)
,
ProxyTestObject.getRecognitionProperties()
,
ProxyTestObject.addRecognitionProperty(String,Object,int)
protected ProxyTestObject[] getMenuChildrenArray()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |