|
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.ComponentProxy
public class ComponentProxy
A proxy for java.awt.Component.
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. |
.priorLabel | The text of a preceding label. Suppressed if there is no preceding label. |
name | The name property, suppressed if default formatted (default form = className+count). |
Nested Class Summary | |
---|---|
protected class |
ComponentProxy.ChildEnumerator
|
protected class |
ComponentProxy.ImmediateChildEnumerator
|
Field Summary | |
---|---|
protected boolean |
childrenEnumerated
|
protected static java.lang.String |
CLASSINDEX
|
protected static int |
CLASSINDEXWEIGHT
|
protected static int |
MAX_NAME
|
protected static java.lang.String |
NAMEPROPERTY
|
protected static int |
NAMEPROPERTYWEIGHT
|
protected static java.lang.String |
PRIORLABEL
|
protected static int |
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 | |
---|---|
ComponentProxy(java.lang.Object theObjectInTheSUT)
Sets the SUT object as a member variable for the proxy. |
Method Summary | |
---|---|
boolean |
canBeScrolled()
Returns true if the object is associated with scrollbar(s). |
void |
childConstructed(ProxyTestObject child)
Inform the parent when child proxies are constructed so additional recognition properties can be added when needed. |
java.lang.Object |
getChildAtPoint(java.awt.Point pt)
Finds the child object that is at the specified point. |
protected ProxyTestObject |
getChildProxy(java.lang.Object childObject, ProxyTestObject parentProxy)
|
java.util.Enumeration |
getChildrenEnumeration()
Returns an enumeration of proxies for the children of this object. |
java.awt.Rectangle |
getClippedRect(java.awt.Rectangle childRect)
|
protected java.awt.Component[] |
getComponentChildren()
|
java.lang.String |
getDescriptiveName()
Returns a name that can be used to describe the associated UI object in a script. |
ProxyTestObject[] |
getEmbeddedBrowsers()
|
java.util.Enumeration |
getImmediateChildren()
Returns an enumeration of proxies for the immediate children of this object. |
protected java.lang.String |
getLabelText()
Returns the label text associated with an isLabelled
proxy. |
protected java.lang.String |
getLeadingLabel()
Used to generate an interesting descriptive name for controls without persistent text. |
java.awt.Point |
getLocationOnScreen()
Returns the screen location for this object. |
ProxyTestObject[] |
getMappableChildren()
Uses getChildren to implement. |
ProxyTestObject |
getMappableParent()
Returns a proxy object for the parent of this object. |
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. |
ProxyTestObject |
getParent2()
Gets the parent of the current object without taking JavaGuiProxy.shouldBeMapped()
into consideration. |
java.lang.Object |
getParentObject()
Returns an object for the parent of this object. |
java.lang.Object |
getProperty(java.lang.String propertyName)
Get 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. |
com.rational.test.ft.sys.graphical.Window |
getWindow()
|
boolean |
hasFocus()
Always returns false because there is not a direct way to determine who has the focus in the AWT world. |
protected static boolean |
isDopeyDynamicName(java.lang.Object theTestObject, java.lang.String name)
|
boolean |
isEnabled()
Checks the component under evaluation to determine if it is enabled or disabled. |
boolean |
isHScroll()
Returns true if the object is a horizontal scrollbar. |
protected boolean |
isLabelled()
Returns true if the particular proxy has a label that can be used as a recognition property for another test object. |
boolean |
isOpaque()
Checks the component under evaluation to determine if it is opaque or transparent. |
boolean |
isRecognitionProperty(java.lang.String propName)
Currently, at componentProxy level, we don't consider name property having values button0, button1 etc as recognition properties |
boolean |
isShowing()
Checks the component under evaluation to determine if it is showing (as opposed to hidden). |
boolean |
isVScroll()
Returns true if the object is a vertical scrollbar. |
void |
setParent(ProxyTestObject parent)
For controls that do not have direct ties to the parent object the tie needs to be explicitly defined. |
Methods inherited from class com.rational.test.ft.domain.java.JavaProxy |
---|
addMappableChildrenToVector, addRecognitionProperty, allowProperty, getAddedRecognitionPropertyValue, getChildren, getIndexer, getIndexers, getMethods, getNonValueProperties, getProperties, getRecognitionProperties, getRecognitionPropertyWeight, getStandardProperties, getTestDataTypes, 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 |
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 PRIORLABEL
protected static final int PRIORLABELWEIGHT
protected static final java.lang.String NAMEPROPERTY
protected static final int NAMEPROPERTYWEIGHT
protected boolean childrenEnumerated
Constructor Detail |
---|
public ComponentProxy(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 canBeScrolled()
public boolean isVScroll()
public boolean isHScroll()
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 java.awt.Point getLocationOnScreen()
public ProxyTestObject getParent()
getParent
in class JavaGuiProxy
public java.lang.Object getParentObject()
null
if this
object has no parent.
getParentObject
in class JavaGuiProxy
public ProxyTestObject getMappableParent()
getMappableParent
in class JavaGuiProxy
public ProxyTestObject getTopParent()
getTopParent
in class JavaProxy
public ProxyTestObject getParent2()
JavaGuiProxy.shouldBeMapped()
into consideration.
public void setParent(ProxyTestObject parent)
setParent
in interface ISetParent
parent
- The parent proxy.public void childConstructed(ProxyTestObject child)
childConstructed
in class JavaProxy
child
- The child proxy that was just constructed.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 ProxyTestObject[] getMappableChildren()
getChildren
to implement.
getMappableChildren
in class JavaProxy
public java.util.Enumeration getChildrenEnumeration()
getChildrenEnumeration
in class JavaGuiProxy
protected ProxyTestObject getChildProxy(java.lang.Object childObject, ProxyTestObject parentProxy)
protected java.awt.Component[] getComponentChildren()
protected boolean isLabelled()
true
if the particular proxy has a label that can be used as a recognition property for another test object.
true
if the particular proxy has a label that can be used
as a recognition property for another test object.getChildrenEnumeration()
,
getLabelText()
protected java.lang.String getLabelText()
isLabelled
proxy. This text is used to recognize siblings in the test object finds. This
method is only called if the proxy has reported itself as isLabelled()
.
isLabelled
proxy.getChildrenEnumeration()
,
isLabelled()
public java.util.Enumeration getImmediateChildren()
getImmediateChildren
in class JavaGuiProxy
public ProxyTestObject getOwner()
getOwner
in class JavaProxy
public ProxyTestObject[] getOwnedObjects()
getOwnedObjects
in class JavaProxy
protected static boolean isDopeyDynamicName(java.lang.Object theTestObject, java.lang.String name)
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)
public boolean isRecognitionProperty(java.lang.String propName)
isRecognitionProperty
in class JavaProxy
propName
-
protected java.lang.String getLeadingLabel()
public com.rational.test.ft.sys.graphical.Window getWindow()
public ProxyTestObject[] getEmbeddedBrowsers()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |