public class PopupMenuProxy extends JavaGuiProxy
GuiSubitemTestObject
| 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. |
| Modifier and Type | Field and Description |
|---|---|
protected static FtDebug |
debug |
LEFT, preDownState, processMouseEventHandler, ROLEINDEX, ROLEINDEXWEIGHT, TESTDATA_SPECIALFRAMESTATE, TESTDATA_SPECIALFRAMESTATE_DESCRIPTION, topLevelWindowBROWSERTABTESTOBJECT_CLASSNAME, BROWSERTESTOBJECT_CLASSNAME, COLORDIALOGTESTOBJECT_CLASSNAME, CROSSDOMAINCONTAINER_CLASSNAME, DOCUMENTTESTOBJECT_CLASSNAME, DOMAINTESTOBJECT_CLASSNAME, ECLIPSETOPLEVELTESTOBJECT_CLASSNAME, EMBEDDEDBROWSERTESTOBJECT_CLASSNAME, FILEDIALOGTESTOBJECT_CLASSNAME, FRAMESUBITEMTESTOBJECT_CLASSNAME, FRAMETESTOBJECT_CLASSNAME, GEFEDITPARTTESTOBJECT_CLASSNAME, GUISUBITEMTESTOBJECT_CLASSNAME, GUITESTOBJECT_CLASSNAME, INTERNALFRAMETESTOBJECT_CLASSNAME, MESSAGEBOXTESTOBJECT_CLASSNAME, PALETTEGUISUBITEMTESTOBJECT_CLASSNAME, PROCESSTESTOBJECT_CLASSNAME, SCROLLSUBITEMTESTOBJECT_CLASSNAME, SCROLLTESTOBJECT_CLASSNAME, SELECTGUISUBITEMTESTOBJECT_CLASSNAME, SELECTSCROLLGUISUBITEMTESTOBJECT_CLASSNAME, SHELLTESTOBJECT_CLASSNAME, STATELESSGUISUBITEMTESTOBJECT_CLASSNAME, SUBITEMTESTOBJECT_CLASSNAME, TABITEMTESTOBJECT_CLASSNAME, TESTOBJECT_CLASSNAME, TEXTGUISUBITEMTESTOBJECT_CLASSNAME, TEXTGUITESTOBJECT_CLASSNAME, TEXTSCROLLTESTOBJECT_CLASSNAME, TEXTSELECTGUISUBITEMTESTOBJECT_CLASSNAME, TIMEOUTTESTOBJECT_CLASSNAME, TOGGLEGUITESTOBJECT_CLASSNAME, TOGGLETESTOBJECT_CLASSNAME, TOPLEVELSUBITEMTESTOBJECT_CLASSNAME, TOPLEVELTESTOBJECT_CLASSNAME, TRACKBARTESTOBJECT_CLASSNAME, vomClippedRectangleINCLUDE_ALL, INCLUDE_JUSTOBJECT, INCLUDE_SIBLINGS| Constructor and Description |
|---|
PopupMenuProxy(Window popup)
This sole constructor for all proxy objects sets the SUT object
as a member variable for the proxy.
|
PopupMenuProxy(Window popup,
Window parent,
ProxyTestObject parentProxy)
This constructor defines the SUT object as a member variable for the proxy.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
activateTopWindow()
Overlocad the inherited implementation to NEVER attempt to activate the
menu popup window (it just goes away when activated).
|
void |
click(MouseModifiers modifiers,
Subitem subitem)
Perform a mouse click action at the specified object relative
coordinates within the associated TestObject.
|
void |
click(MouseModifiers modifiers,
Subitem subitem,
java.awt.Point pt)
Perform a mouse click action on the specified coordinates relative
to the associated TestObject.
|
void |
click(Subitem subitem)
Left mouse click on the center point of the associated subitem.
|
void |
click(Subitem subitem,
java.awt.Point pt)
Left mouse click on the specified coordinates relative to the
associated TestObject.
|
void |
doubleClick(MouseModifiers modifiers,
Subitem subitem)
Perform a mouse dbl-click action at the specified object relative
coordinates within the associated TestObject.
|
void |
doubleClick(MouseModifiers modifiers,
Subitem subitem,
java.awt.Point pt)
Perform a mouse dbl-click action on the specified coordinates relative
to the associated TestObject.
|
void |
doubleClick(Subitem subitem)
Left mouse dbl-click on the center point of the associated TestObject.
|
void |
doubleClick(Subitem subitem,
java.awt.Point pt)
Left mouse dbl-click on the specified coordinates relative to the
associated TestObject.
|
void |
drag(MouseModifiers modifiers,
Subitem subitem)
Perform a drag action against the associated TestObject with the
supplied set of mouse modifiers.
|
void |
drag(MouseModifiers modifiers,
Subitem subitem1,
java.awt.Point pt1,
Subitem subitem2,
java.awt.Point pt2)
Perform a drag action against the associated TestObject.
|
void |
drag(MouseModifiers modifiers,
Subitem subitem1,
Subitem subitem2)
Perform a drag action against the associated TestObject.
|
void |
drag(Subitem subitem)
Perform a MOUSE_LEFT drag action against the associated TestObject.
|
void |
drag(Subitem subitem1,
java.awt.Point pt1,
Subitem subitem2,
java.awt.Point pt2)
Perform a MOUSE_LEFT drag action against the associated TestObject.
|
void |
drag(Subitem subitem1,
Subitem subitem2)
Perform a MOUSE_LEFT drag action against the associated TestObject.
|
void |
dragToScreenPoint(MouseModifiers modifiers,
Subitem subitem,
java.awt.Point screenPt)
Perform a drag action against the associated TestObject.
|
void |
dragToScreenPoint(MouseModifiers modifiers,
Subitem subitem,
java.awt.Point subitemPt,
java.awt.Point screenPt)
Perform a drag action against the associated TestObject.
|
void |
dragToScreenPoint(Subitem subitem,
java.awt.Point screenPt)
Perform a MOUSE_LEFT drag action against the associated TestObject.
|
void |
dragToScreenPoint(Subitem subitem,
java.awt.Point subitemPt,
java.awt.Point screenPt)
Perform a MOUSE_LEFT drag action against the associated TestObject.
|
protected java.awt.Rectangle |
getActionRect()
Gets the screen relative rectangle and throws an invalid action
exception if the rect is not valid.
|
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() |
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.
|
ProxyTestObject |
getMappableParent()
Returns a proxy object for the parent of this object.
|
MethodSpecification |
getMethodSpecForPoint(java.awt.Point pt)
Return a MethodSpecification for a method that returns a java.awt.Point
for the specified coordinates.
|
java.lang.String |
getObjectClassName()
Returns the class name of the associated 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.
|
Window |
getPopupWindow() |
java.util.Hashtable |
getProperties()
Returns a complete set of properties for the associated
test object.
|
java.lang.String |
getRole()
Returns
TestObjectRole.ROLE_POPUP_MENU. |
java.awt.Point |
getScreenPoint(java.awt.Point pt)
Returns the screen relative point given an object relative point.
|
java.awt.Point |
getScreenPoint(Subitem subitem)
Returns the screen relative point to the center of the supplied
subitem.
|
java.awt.Point |
getScreenPoint(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(Subitem subitem)
Returns the rectangle that contains the component being
evaluated relative to the top left corner of the screen.
|
ScriptCommandFlags |
getScriptCommandFlags()
This method returns an active state value that reflects the state of the
test object at the time of the call.
|
java.util.Hashtable |
getStandardProperties()
For Java, the definition for standard properties is the same
as
getProperties(). |
java.lang.Object |
getSubitem(Subitem subitem)
Returns an object that represents the specified subitem in the associated
test object.
|
java.lang.String |
getTestObjectClassName()
Set to null when the JPopupMenu is not interesting.
|
ITopWindow |
getTopMappableWindow()
All Gui Components must be inside of a top-level object.
|
ITopWindow |
getTopWindow()
All Gui Components must be inside of a top-level object.
|
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.
|
void |
hover(double secondDelay,
Subitem subitem)
Hover the mouse over the center of the specified subitem.
|
void |
hover(double secondDelay,
Subitem subitem,
java.awt.Point pt)
Hover the mouse over the specified coordinates relative to the
specified subitem.
|
void |
hover(Subitem subitem)
Hover the mouse over the center of the specified subitem.
|
void |
hover(Subitem subitem,
java.awt.Point pt)
Hover the mouse over the specified coordinates relative to the
specified subitem.
|
boolean |
isEnabled()
Check 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.
|
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(MouseModifiers modifiers,
Subitem subitem)
Perform a move action against the associated TestObject.
|
void |
mouseMove(MouseModifiers modifiers,
Subitem subitem,
java.awt.Point pt)
Perform a move action against the associated TestObject.
|
void |
mouseMove(Subitem subitem)
Perform a MOUSE_LEFT move action against the associated TestObject.
|
void |
mouseMove(Subitem subitem,
java.awt.Point subitemPt)
Perform a MOUSE_LEFT move action against the associated TestObject.
|
void |
nClick(int clickCount,
MouseModifiers modifiers,
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,
MouseModifiers modifiers,
Subitem subitem1,
java.awt.Point pt1,
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,
MouseModifiers modifiers,
Subitem subitem1,
Subitem subitem2)
Perform a mouse n-click drag action on the specified coordinates relative
to the associated TestObject.
|
void |
nClickDragToScreenPoint(int clickCount,
MouseModifiers modifiers,
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,
MouseModifiers modifiers,
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 |
processSingleMouseEvent(IMouseActionInfo action)
Return a MethodSpecification for the specified mouse event.
|
boolean |
shouldBeMapped()
Returns true, by default all test objects are mapped.
|
click, doubleClick, drag, dragToScreenPoint, dumpAction, ensureObjectIsVisible, getCachedRectX, getCachedRectY, getClippedRect, getProcessMouseEventHandler, getRegisteredTopLevelWindow, getScreenPoint, hover, invokeMethodOnEDT, isDrag, isPointInObject, modifiersChanged, nClick, processHoverMouseEvent, processMouseEvent, scrollRectToVisible, setProcessMouseEventHandler, setTopLevelWindowaddMappableChildrenToVector, addRecognitionProperty, allowProperty, childConstructed, getAddedRecognitionPropertyValue, getChildren, getIndexer, getIndexers, getMappableChildren, getMethods, getNonValueProperties, getOwnedObjects, getOwner, getProperty, getRecognitionProperties, getRecognitionPropertyWeight, getTestDataTypes, getTestDomain, getTopMappableParent, getTopParent, getUniqueId, getVisualClippableParent, hasAddedRecognitionProperties, isRecognitionProperty, setIndexer, setPropertyaddDataDrivableCommands, baseClassMatch, canTakeVP, equals, findChildrenWithProperties, findChildrenWithPropertiesAndInvoke, getChannel, getChildren, getDataDrivableCommand, getDataDrivableCommands, getElementWithFocus, getField, getIgnorableProperties, getMappableChildren, getMappableParent, getObjectCustomClassName, getOwnedObjects, getParent, getProxy, getScriptCommandAnchor, getTestData, getVisualMappableChildren, getVisualTopParent, getVOMSpecificProperty, hasSpecialFrameState, isClassIndexConsidered, isSameObject, isValidObject, ping, suppressKeyAction, updateTestDatapublic PopupMenuProxy(Window popup,
Window parent,
ProxyTestObject parentProxy)
public PopupMenuProxy(Window popup)
public java.util.Hashtable getProperties()
ProxyTestObject
This method does not return properties whose values are references
to objects. The method ProxyTestObject.getNonValueProperties() returns
information about such properties.
getProperties in class JavaProxyProxyTestObject.getProperty(String),
ProxyTestObject.setProperty(String,Object),
ProxyTestObject.getStandardProperties(),
ProxyTestObject.getNonValueProperties()public java.util.Hashtable getStandardProperties()
getProperties().getStandardProperties in class JavaProxygetProperties()public Window getPopupWindow()
public java.lang.String getTestObjectClassName()
getTestObjectClassName in interface IProxyBasegetTestObjectClassName in class JavaGuiProxypublic ProxyTestObject getParent()
getParent in class JavaGuiProxypublic java.lang.Object getParentObject()
null if this
object has no parent.getParentObject in class JavaGuiProxypublic ProxyTestObject getMappableParent()
getMappableParent in class JavaGuiProxypublic java.lang.String getDescriptiveName()
getDescriptiveName in class JavaGuiProxypublic java.lang.String getObjectClassName()
getObjectClassName in class ProxyTestObjectpublic java.lang.String getRole()
TestObjectRole.ROLE_POPUP_MENU.public boolean shouldBeMapped()
shouldBeMapped in class JavaGuiProxypublic ITopWindow getTopWindow()
getTopWindow in class JavaGuiProxypublic ITopWindow getTopMappableWindow()
getTopMappableWindow in class JavaGuiProxypublic java.util.Enumeration getChildrenEnumeration()
getChildrenEnumeration in class JavaGuiProxypublic java.util.Enumeration getImmediateChildren()
getImmediateChildren in class JavaGuiProxypublic MethodSpecification getMethodSpecForPoint(java.awt.Point pt)
IGraphical.getScreenPoint will be returned. However, if a proxy can findgetMethodSpecForPoint in class JavaGuiProxyx - The screen relative x coordinate.y - The screen relative y coordinate.MethodSpecificationpublic boolean isShowing()
isShowing in class JavaGuiProxypublic boolean isEnabled()
isEnabled in class JavaGuiProxypublic ScriptCommandFlags getScriptCommandFlags()
getScriptCommandFlags in class JavaGuiProxypublic boolean isOpaque()
isOpaque in class JavaGuiProxypublic boolean hasFocus()
hasFocus in class JavaGuiProxypublic 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 class JavaGuiProxypt - 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 class JavaGuiProxypt - Screen relative point to check.getScreenRectangle()public java.awt.Point getScreenPoint(java.awt.Point pt)
getScreenPoint in class JavaGuiProxypt - The Object relative point.protected java.awt.Rectangle getActionRect()
getActionRect in class JavaGuiProxyprotected void activateTopWindow()
activateTopWindow in class JavaGuiProxypublic void processSingleMouseEvent(IMouseActionInfo action)
processSingleMouseEvent in class JavaGuiProxyaction - The event cache and other mouse state information
for this mouse action.MethodSpecificationpublic java.awt.Rectangle getScreenRectangle()
getScreenRectangle in class JavaGuiProxypublic java.awt.Rectangle getClippedScreenRectangle()
getClippedScreenRectangle in class JavaGuiProxypublic java.awt.Rectangle getVisualClippedRectangle()
getVisualClippedRectangle in class ProxyTestObjectpublic java.awt.Rectangle getScreenRectangle(Subitem subitem)
public java.awt.Point getScreenPoint(Subitem subitem)
getScreenPoint in class JavaGuiProxysubitem - The subitem the resultant screen point is
relative to.public java.awt.Point getScreenPoint(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(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(Subitem subitem)
click in class JavaGuiProxypublic void click(MouseModifiers modifiers,
Subitem subitem)
click in class JavaGuiProxypublic void click(Subitem subitem,
java.awt.Point pt)
click in class JavaGuiProxypublic void click(MouseModifiers modifiers,
Subitem subitem,
java.awt.Point pt)
public void doubleClick(Subitem subitem)
doubleClick in class JavaGuiProxypublic void doubleClick(MouseModifiers modifiers,
Subitem subitem)
doubleClick in class JavaGuiProxypublic void doubleClick(Subitem subitem,
java.awt.Point pt)
doubleClick in class JavaGuiProxypublic void doubleClick(MouseModifiers modifiers,
Subitem subitem,
java.awt.Point pt)
public void nClick(int clickCount,
MouseModifiers modifiers,
Subitem subitem,
java.awt.Point pt)
public void drag(Subitem subitem)
drag in class JavaGuiProxypublic void drag(MouseModifiers modifiers,
Subitem subitem)
drag in class JavaGuiProxypublic void drag(Subitem subitem1,
Subitem subitem2)
drag in class JavaGuiProxypublic void drag(MouseModifiers modifiers,
Subitem subitem1,
Subitem subitem2)
drag in class JavaGuiProxypublic void drag(Subitem subitem1,
java.awt.Point pt1,
Subitem subitem2,
java.awt.Point pt2)
public void drag(MouseModifiers modifiers,
Subitem subitem1,
java.awt.Point pt1,
Subitem subitem2,
java.awt.Point pt2)
public void nClickDrag(int clickCount,
MouseModifiers modifiers,
Subitem subitem1,
Subitem subitem2)
nClickDrag in class JavaGuiProxypublic void nClickDrag(int clickCount,
MouseModifiers modifiers,
Subitem subitem1,
java.awt.Point pt1,
Subitem subitem2,
java.awt.Point pt2)
public void dragToScreenPoint(Subitem subitem,
java.awt.Point screenPt)
dragToScreenPoint in class JavaGuiProxypublic void dragToScreenPoint(MouseModifiers modifiers,
Subitem subitem,
java.awt.Point screenPt)
dragToScreenPoint in class JavaGuiProxypublic void dragToScreenPoint(Subitem subitem,
java.awt.Point subitemPt,
java.awt.Point screenPt)
dragToScreenPoint in class JavaGuiProxypublic void dragToScreenPoint(MouseModifiers modifiers,
Subitem subitem,
java.awt.Point subitemPt,
java.awt.Point screenPt)
public void nClickDragToScreenPoint(int clickCount,
MouseModifiers modifiers,
Subitem subitem,
java.awt.Point screenPt)
nClickDragToScreenPoint in class JavaGuiProxypublic void nClickDragToScreenPoint(int clickCount,
MouseModifiers modifiers,
Subitem subitem,
java.awt.Point subitemPt,
java.awt.Point screenPt)
public void mouseMove(Subitem subitem)
mouseMove in class JavaGuiProxypublic void mouseMove(Subitem subitem,
java.awt.Point subitemPt)
mouseMove in class JavaGuiProxypublic void mouseMove(MouseModifiers modifiers,
Subitem subitem)
mouseMove in class JavaGuiProxypublic void mouseMove(MouseModifiers modifiers,
Subitem subitem,
java.awt.Point pt)
public void hover(double secondDelay,
Subitem subitem)
hover in class JavaGuiProxypublic void hover(double secondDelay,
Subitem subitem,
java.awt.Point pt)
public void hover(Subitem subitem)
hover in class JavaGuiProxypublic void hover(Subitem subitem,
java.awt.Point pt)
hover in class JavaGuiProxy