|
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.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 JavaProxy
public java.lang.String getLabel()
public java.lang.String getDescriptiveName()
getDescriptiveName
in class JavaGuiProxy
public int getStyle()
public ProxyTestObject getParent()
getParent
in class JavaGuiProxy
public void processSingleMouseEvent(IMouseActionInfo action)
processSingleMouseEvent
in class JavaGuiProxy
public void setCachedMenuBar(java.lang.Object topMenu)
public java.util.Hashtable getTestDataTypes()
getTestDataTypes
in class JavaProxy
getTestData(String)
,
ITestData
public com.rational.test.ft.vp.ITestData getTestData(java.lang.String testDataType)
getTestDataTypes
.
getTestData
in class ProxyTestObject
testDataType
- A test data type supplied by
getTestDataTypes
.
getTestDataTypes()
,
ITestData
public MenuProxy getMenuProxy()
public java.lang.Object getParentObject()
getParentObject
in class JavaGuiProxy
public boolean isEnabled()
isEnabled
in interface com.rational.test.ft.object.interfaces.IGraphical
isEnabled
in class JavaGuiProxy
public boolean isShowing()
isShowing
in interface com.rational.test.ft.object.interfaces.IGraphical
isShowing
in class JavaGuiProxy
public boolean isOpaque()
JavaGuiProxy
isOpaque
in interface com.rational.test.ft.object.interfaces.IGraphical
isOpaque
in class JavaGuiProxy
public boolean hasFocus()
JavaGuiProxy
hasFocus
in interface com.rational.test.ft.object.interfaces.IGraphical
hasFocus
in class JavaGuiProxy
public ProxyTestObject getMappableParent()
JavaGuiProxy
getMappableParent
in class JavaGuiProxy
public java.util.Enumeration getChildrenEnumeration()
JavaGuiProxy
getChildrenEnumeration
in class JavaGuiProxy
public java.util.Enumeration getImmediateChildren()
JavaGuiProxy
getImmediateChildren
in class JavaGuiProxy
public ProxyTestObject getOwner()
JavaProxy
getOwner
in class JavaProxy
public ProxyTestObject[] getOwnedObjects()
JavaProxy
getOwnedObjects
in class JavaProxy
public 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.IGraphical
getChildAtPoint
in class JavaGuiProxy
pt
- Screen relative point to check.
JavaGuiProxy.getScreenRectangle()
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 getClippedScreenRectangle()
com.rational.test.ft.object.interfaces.IGraphical
TestObject
getClippedScreenRectangle
in interface com.rational.test.ft.object.interfaces.IGraphical
getClippedScreenRectangle
in class JavaGuiProxy
null
if the object cannot be seen
in any window on the screen.IGraphical.getScreenRectangle()
public java.awt.Rectangle getVisualClippedRectangle()
getVisualClippedRectangle
in class ProxyTestObject
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 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 IChannelObject
getChannel
in class ProxyTestObject
protected 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 |