|
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.awt.MenuComponentProxy
com.rational.test.ft.domain.java.awt.MenuBarProxy
public class MenuBarProxy
Proxy for AWT MenuBar objects.
GuiSubitemTestObject
Type | Desciption | Data Class |
---|---|---|
menu | Menu Hierarchy | ITestDataTree |
extendedMenu | Menu Hierarchy with Properties | ITestDataTree |
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). |
Subitem | Usage | |
---|---|---|
List |
Defines the path to the desired menu item. The elements in the list must be Text or Index values. | |
Text |
Defines the menubar based menu with the specified visible text. | |
Index |
Defines the menubar based menu at the specified zero-based index. |
Nested Class Summary |
---|
Nested classes/interfaces inherited from class com.rational.test.ft.domain.java.awt.MenuComponentProxy |
---|
MenuComponentProxy.ChildEnumerator |
Field Summary |
---|
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 | |
---|---|
MenuBarProxy(java.lang.Object theObjectInTheSUT)
Sets the SUT object as a member variable for the proxy. |
Method Summary | |
---|---|
void |
click(com.rational.test.ft.script.MouseModifiers modifiers, com.rational.test.ft.script.Subitem subitem)
Perform a mouse click action at the specified object relative coordinates within the associated TestObject. |
void |
click(com.rational.test.ft.script.MouseModifiers modifiers, com.rational.test.ft.script.Subitem subitem, java.awt.Point pt)
Perform a mouse click action on the specified coordinates relative to the associated TestObject. |
void |
click(com.rational.test.ft.script.Subitem subitem)
Left mouse click on the center point of the associated subitem. |
void |
click(com.rational.test.ft.script.Subitem subitem, java.awt.Point pt)
Left mouse click on the specified coordinates relative to the associated TestObject. |
void |
doubleClick(com.rational.test.ft.script.MouseModifiers modifiers, com.rational.test.ft.script.Subitem subitem)
Perform a mouse dbl-click action at the specified object relative coordinates within the associated TestObject. |
void |
doubleClick(com.rational.test.ft.script.MouseModifiers modifiers, com.rational.test.ft.script.Subitem subitem, java.awt.Point pt)
Perform a mouse dbl-click action on the specified coordinates relative to the associated TestObject. |
void |
doubleClick(com.rational.test.ft.script.Subitem subitem)
Left mouse dbl-click on the center point of the associated TestObject. |
void |
doubleClick(com.rational.test.ft.script.Subitem subitem, java.awt.Point pt)
Left mouse dbl-click on the specified coordinates relative to the associated TestObject. |
void |
drag(com.rational.test.ft.script.MouseModifiers modifiers, com.rational.test.ft.script.Subitem subitem)
Perform a drag action against the associated TestObject with the supplied set of mouse modifiers. |
void |
drag(com.rational.test.ft.script.MouseModifiers modifiers, com.rational.test.ft.script.Subitem subitem1, java.awt.Point pt1, com.rational.test.ft.script.Subitem subitem2, java.awt.Point pt2)
Perform a drag action against the associated TestObject. |
void |
drag(com.rational.test.ft.script.MouseModifiers modifiers, com.rational.test.ft.script.Subitem subitem1, com.rational.test.ft.script.Subitem subitem2)
Perform a drag action against the associated TestObject. |
void |
drag(com.rational.test.ft.script.Subitem subitem)
Perform a MOUSE_LEFT drag action against the associated TestObject. |
void |
drag(com.rational.test.ft.script.Subitem subitem1, java.awt.Point pt1, com.rational.test.ft.script.Subitem subitem2, java.awt.Point pt2)
Perform a MOUSE_LEFT drag action against the associated TestObject. |
void |
drag(com.rational.test.ft.script.Subitem subitem1, com.rational.test.ft.script.Subitem subitem2)
Perform a MOUSE_LEFT drag action against the associated TestObject. |
void |
dragToScreenPoint(com.rational.test.ft.script.MouseModifiers modifiers, com.rational.test.ft.script.Subitem subitem, java.awt.Point screenPt)
Perform a drag action against the associated TestObject. |
void |
dragToScreenPoint(com.rational.test.ft.script.MouseModifiers modifiers, com.rational.test.ft.script.Subitem subitem, java.awt.Point subitemPt, java.awt.Point screenPt)
Perform a drag action against the associated TestObject. |
void |
dragToScreenPoint(com.rational.test.ft.script.Subitem subitem, java.awt.Point screenPt)
Perform a MOUSE_LEFT drag action against the associated TestObject. |
void |
dragToScreenPoint(com.rational.test.ft.script.Subitem subitem, java.awt.Point subitemPt, java.awt.Point screenPt)
Perform a MOUSE_LEFT drag action against the associated TestObject. |
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.util.Enumeration |
getImmediateChildren()
Return an enumeration of proxies for the immediate children of this object. |
java.awt.Rectangle |
getMenuScreenRectangle(java.lang.Object target)
|
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.String |
getRole()
Returns TestObjectRole.ROLE_MENU_BAR . |
java.awt.Point |
getScreenPoint(com.rational.test.ft.script.Subitem subitem)
Returns the screen relative point to the center of the supplied subitem. |
java.awt.Point |
getScreenPoint(com.rational.test.ft.script.Subitem subitem, java.awt.Point pt)
Returns the screen relative point given a subitem and a subitem relative point. |
java.awt.Rectangle |
getScreenRectangle()
Returns the rectangle that contains the component being evaluated relative to the top left corner of the screen. |
java.awt.Rectangle |
getScreenRectangle(com.rational.test.ft.script.Subitem subitem)
Returns the rectangle that contains the component being evaluated relative to the top left corner of the screen. |
java.lang.Object |
getSubitem(com.rational.test.ft.script.Subitem subitem)
Returns an object that represents the specified subitem in the associated test object. |
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.lang.String |
getTestObjectClassName()
Return the GuiSubitemTestObject classname. |
java.lang.String |
getUniqueId()
Return a unique string for the associated object. |
void |
hover(double secondDelay, com.rational.test.ft.script.Subitem subitem)
Hover the mouse over the center of the specified subitem. |
void |
hover(double secondDelay, com.rational.test.ft.script.Subitem subitem, java.awt.Point pt)
Hover the mouse over the specified coordinates relative to the specified subitem. |
void |
hover(com.rational.test.ft.script.Subitem subitem)
Hover the mouse over the center of the specified subitem. |
void |
hover(com.rational.test.ft.script.Subitem subitem, java.awt.Point pt)
Hover the mouse over the specified coordinates relative to the specified subitem. |
boolean |
isPointInObject(java.awt.Point pt)
Determines if the specified screen relative point is contained in the component under evaluation. |
boolean |
isShowing()
Check the component under evaluation to determine if it is showing (as apposed to hidden). |
void |
mouseMove(com.rational.test.ft.script.MouseModifiers modifiers, com.rational.test.ft.script.Subitem subitem)
Perform a move action against the associated TestObject. |
void |
mouseMove(com.rational.test.ft.script.MouseModifiers modifiers, com.rational.test.ft.script.Subitem subitem, java.awt.Point pt)
Perform a move action against the associated TestObject. |
void |
mouseMove(com.rational.test.ft.script.Subitem subitem)
Perform a MOUSE_LEFT move action against the associated TestObject. |
void |
mouseMove(com.rational.test.ft.script.Subitem subitem, java.awt.Point subitemPt)
Perform a MOUSE_LEFT move action against the associated TestObject. |
void |
nClick(int clickCount, com.rational.test.ft.script.MouseModifiers modifiers, com.rational.test.ft.script.Subitem subitem, java.awt.Point pt)
Perform a mouse n-click action on the specified coordinates relative to the associated TestObject. |
void |
nClickDrag(int clickCount, com.rational.test.ft.script.MouseModifiers modifiers, com.rational.test.ft.script.Subitem subitem1, java.awt.Point pt1, com.rational.test.ft.script.Subitem subitem2, java.awt.Point pt2)
Perform a mouse n-click drag action on the specified coordinates relative to the associated TestObject. |
void |
nClickDrag(int clickCount, com.rational.test.ft.script.MouseModifiers modifiers, com.rational.test.ft.script.Subitem subitem1, com.rational.test.ft.script.Subitem subitem2)
Perform a mouse n-click drag action on the specified coordinates relative to the associated TestObject. |
void |
nClickDragToScreenPoint(int clickCount, com.rational.test.ft.script.MouseModifiers modifiers, com.rational.test.ft.script.Subitem subitem, java.awt.Point screenPt)
Perform a mouse n-click drag action on the specified coordinates relative the screen relative screenPt coordinates. |
void |
nClickDragToScreenPoint(int clickCount, com.rational.test.ft.script.MouseModifiers modifiers, com.rational.test.ft.script.Subitem subitem, java.awt.Point subitemPt, java.awt.Point screenPt)
Perform a mouse n-click drag action on the specified coordinates relative the screen relative screenPt coordinates. |
void |
processMouseEvent(IMouseActionInfo action, com.rational.test.ft.sys.graphical.Window popupWindow)
Process a menu action against the specified menu popup window. |
void |
processSingleMouseEvent(IMouseActionInfo action)
Return a MethodSpecification for the specified mouse event. |
void |
setParent(ProxyTestObject parent)
For efficiency allow the parent proxy to be explicitly set. |
void |
setPopUpWindow(com.rational.test.ft.sys.graphical.Window popUp)
|
com.rational.test.ft.vp.ITestData |
updateTestData(java.lang.String testDataType, com.rational.test.ft.vp.ITestData testData)
This method updates the supplied test data object and returns it. |
Methods inherited from class com.rational.test.ft.domain.java.awt.MenuComponentProxy |
---|
getClippedRect, getDescriptiveName, getMappableParent, getMenuChildrenArray, getName, getOwnedObjects, getOwner, getProperty, getTopParent, hasFocus, isEnabled, 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, 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 |
Constructor Detail |
---|
public MenuBarProxy(java.lang.Object theObjectInTheSUT)
Method Detail |
---|
public void setPopUpWindow(com.rational.test.ft.sys.graphical.Window popUp)
public java.lang.String getTestObjectClassName()
getTestObjectClassName
in interface IProxyBase
getTestObjectClassName
in class JavaGuiProxy
public java.lang.String getRole()
TestObjectRole.ROLE_MENU_BAR
.
getRole
in class MenuComponentProxy
public java.lang.String getUniqueId()
getUniqueId
in class JavaProxy
public void setParent(ProxyTestObject parent)
setParent
in interface ISetParent
parent
- The parent proxy.public ProxyTestObject getParent()
getParent
in class MenuComponentProxy
public java.lang.Object getParentObject()
null
if this
object has no parent.
getParentObject
in class MenuComponentProxy
public boolean isShowing()
isShowing
in interface com.rational.test.ft.object.interfaces.IGraphical
isShowing
in class MenuComponentProxy
public java.util.Enumeration getChildrenEnumeration()
getChildrenEnumeration
in class MenuComponentProxy
public java.util.Enumeration getImmediateChildren()
getImmediateChildren
in class MenuComponentProxy
public boolean isPointInObject(java.awt.Point pt)
This functionality is performed by the proxy due to potentially
unusual aspects associated with functionality. While typically the getScreenRectangle
would be used to resolve this query, there are situations for which this
is not accurate. For instance if the clickable region on a
button were not rectangular just checking if the point is in
the rectangle would not be valid.
isPointInObject
in interface com.rational.test.ft.object.interfaces.IGraphical
isPointInObject
in class JavaGuiProxy
pt
- Screen relative point to check.
getScreenRectangle()
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 MenuComponentProxy
pt
- Screen relative point to check.
getScreenRectangle()
public java.awt.Rectangle getMenuScreenRectangle(java.lang.Object target)
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 com.rational.test.ft.vp.ITestData updateTestData(java.lang.String testDataType, com.rational.test.ft.vp.ITestData testData)
getTestDataTypes
.
The testData is a previously supplied ITestData
object that needs to be updated to reflect the current state of the associated test object.
updateTestData
in class ProxyTestObject
testDataType
- A test data type supplied by
getTestDataTypes
.testData
- The test data base object that requires
updating.
getTestDataTypes()
,
ITestData
public void processSingleMouseEvent(IMouseActionInfo action)
processSingleMouseEvent
in class JavaGuiProxy
action
- The event cache and other mouse state information
for this mouse action.MethodSpecification
public void processMouseEvent(IMouseActionInfo action, com.rational.test.ft.sys.graphical.Window popupWindow)
processMouseEvent
in interface IMenuManager
public java.awt.Rectangle getScreenRectangle()
getScreenRectangle
in interface com.rational.test.ft.object.interfaces.IGraphical
getScreenRectangle
in class MenuComponentProxy
IGraphical.isPointInObject(java.awt.Point)
,
IGraphical.getClippedScreenRectangle()
public java.awt.Rectangle getScreenRectangle(com.rational.test.ft.script.Subitem subitem)
public java.awt.Point getScreenPoint(com.rational.test.ft.script.Subitem subitem)
subitem
- The subitem the resultant screen point is
relative to.
public java.awt.Point getScreenPoint(com.rational.test.ft.script.Subitem subitem, java.awt.Point pt)
subitem
- The subitem the resultant screen point is
relative to.pt
- The subitem relative point.
public java.lang.Object getSubitem(com.rational.test.ft.script.Subitem subitem)
SubitemNotFoundException
will be thrown if the specified subitem is invalid relative to the associated test object. null
may be returned if the subitem does not have an object association that can be returned.
subitem
- The subitem to fetch an object for.
public void click(com.rational.test.ft.script.Subitem subitem)
public void click(com.rational.test.ft.script.MouseModifiers modifiers, com.rational.test.ft.script.Subitem subitem)
public void click(com.rational.test.ft.script.Subitem subitem, java.awt.Point pt)
public void click(com.rational.test.ft.script.MouseModifiers modifiers, com.rational.test.ft.script.Subitem subitem, java.awt.Point pt)
public void doubleClick(com.rational.test.ft.script.Subitem subitem)
public void doubleClick(com.rational.test.ft.script.MouseModifiers modifiers, com.rational.test.ft.script.Subitem subitem)
public void doubleClick(com.rational.test.ft.script.Subitem subitem, java.awt.Point pt)
public void doubleClick(com.rational.test.ft.script.MouseModifiers modifiers, com.rational.test.ft.script.Subitem subitem, java.awt.Point pt)
public void nClick(int clickCount, com.rational.test.ft.script.MouseModifiers modifiers, com.rational.test.ft.script.Subitem subitem, java.awt.Point pt)
public void drag(com.rational.test.ft.script.Subitem subitem)
public void drag(com.rational.test.ft.script.MouseModifiers modifiers, com.rational.test.ft.script.Subitem subitem)
public void drag(com.rational.test.ft.script.Subitem subitem1, com.rational.test.ft.script.Subitem subitem2)
public void drag(com.rational.test.ft.script.MouseModifiers modifiers, com.rational.test.ft.script.Subitem subitem1, com.rational.test.ft.script.Subitem subitem2)
public void drag(com.rational.test.ft.script.Subitem subitem1, java.awt.Point pt1, com.rational.test.ft.script.Subitem subitem2, java.awt.Point pt2)
public void drag(com.rational.test.ft.script.MouseModifiers modifiers, com.rational.test.ft.script.Subitem subitem1, java.awt.Point pt1, com.rational.test.ft.script.Subitem subitem2, java.awt.Point pt2)
public void nClickDrag(int clickCount, com.rational.test.ft.script.MouseModifiers modifiers, com.rational.test.ft.script.Subitem subitem1, com.rational.test.ft.script.Subitem subitem2)
public void nClickDrag(int clickCount, com.rational.test.ft.script.MouseModifiers modifiers, com.rational.test.ft.script.Subitem subitem1, java.awt.Point pt1, com.rational.test.ft.script.Subitem subitem2, java.awt.Point pt2)
public void dragToScreenPoint(com.rational.test.ft.script.Subitem subitem, java.awt.Point screenPt)
public void dragToScreenPoint(com.rational.test.ft.script.MouseModifiers modifiers, com.rational.test.ft.script.Subitem subitem, java.awt.Point screenPt)
public void dragToScreenPoint(com.rational.test.ft.script.Subitem subitem, java.awt.Point subitemPt, java.awt.Point screenPt)
public void dragToScreenPoint(com.rational.test.ft.script.MouseModifiers modifiers, com.rational.test.ft.script.Subitem subitem, java.awt.Point subitemPt, java.awt.Point screenPt)
public void nClickDragToScreenPoint(int clickCount, com.rational.test.ft.script.MouseModifiers modifiers, com.rational.test.ft.script.Subitem subitem, java.awt.Point screenPt)
public void nClickDragToScreenPoint(int clickCount, com.rational.test.ft.script.MouseModifiers modifiers, com.rational.test.ft.script.Subitem subitem, java.awt.Point subitemPt, java.awt.Point screenPt)
public void mouseMove(com.rational.test.ft.script.Subitem subitem)
public void mouseMove(com.rational.test.ft.script.Subitem subitem, java.awt.Point subitemPt)
public void mouseMove(com.rational.test.ft.script.MouseModifiers modifiers, com.rational.test.ft.script.Subitem subitem)
public void mouseMove(com.rational.test.ft.script.MouseModifiers modifiers, com.rational.test.ft.script.Subitem subitem, java.awt.Point pt)
public void hover(double secondDelay, com.rational.test.ft.script.Subitem subitem)
public void hover(double secondDelay, com.rational.test.ft.script.Subitem subitem, java.awt.Point pt)
public void hover(com.rational.test.ft.script.Subitem subitem)
public void hover(com.rational.test.ft.script.Subitem subitem, java.awt.Point pt)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |