public class JPopupMenuProxy extends JfcGraphicalSubitemProxy
javax.swing.JPopupMenu class.
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. |
| accessibleContext.accessibleName | A programmatically defined name for the component. |
| name | The name property, suppressed if default formatted (default form = className+count). |
| Subitem | Usage |
|---|---|
List |
The ordered set of
Text and
Index
subitems that define a path to a child menu item.
Most commonly appears in scripts as atPath specifications.
|
Text |
Defines the menu with the specified visible text. |
Index |
Defines the menu at the specified zero-based index. |
| Modifier and Type | Class and Description |
|---|---|
protected class |
JPopupMenuProxy.ChildEnumerator |
ComponentProxy.ImmediateChildEnumeratorTAB_INDEX, TAB_TEXTchildrenEnumerated, CLASSINDEX, CLASSINDEXWEIGHT, MAX_NAME, NAMEPROPERTY, NAMEPROPERTYWEIGHT, PRIORLABEL, PRIORLABELWEIGHTLEFT, 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, vomClippedRectangle| Constructor and Description |
|---|
JPopupMenuProxy(java.lang.Object theObjectInTheSUT)
This sole constructor for all proxy objects sets the SUT object
as a member variable for the proxy.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
activateTopWindow() |
void |
childConstructed(com.rational.test.ft.domain.ProxyTestObject child)
Inform the parent when child proxies are constructed so additional recognition
properties can be added when needed.
|
java.util.Enumeration |
getChildrenEnumeration()
Return an enumeration of proxies for the children
of this object.
|
java.lang.String |
getDescriptiveName()
Returns a name that can be used to describe the associated UI
object in a script.
|
java.awt.Component |
getInvoker()
Returns the component which is the 'invoker' of this popup menu.
|
com.rational.test.ft.domain.ProxyTestObject[] |
getMappableChildren()
Uses
getChildren to implement. |
com.rational.test.ft.domain.ProxyTestObject |
getMappableParent()
Returns a proxy object for the parent of this object.
|
protected com.rational.test.ft.domain.ProxyTestObject[] |
getMenuChildrenArray() |
JMenuItemProxy |
getMenuItemProxy(com.rational.test.ft.script.Subitem item)
This method gets the proxy related to the Subitem.
|
com.rational.test.ft.domain.ProxyTestObject |
getOwner()
Returns a proxy object for the owner of this object.
|
com.rational.test.ft.domain.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)
Get the value for a specific property.
|
java.lang.String |
getRole()
Returns
TestObjectRole.ROLE_POPUP_MENU. |
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.
|
com.rational.test.ft.script.Subitem |
getSubitem()
Return the Subitem describes this JPopupMenu.
|
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.
|
boolean |
shouldBeMapped()
Returns true; by default all test objects are mapped.
|
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.
|
click, click, click, click, doubleClick, doubleClick, doubleClick, doubleClick, drag, drag, drag, drag, drag, drag, dragToScreenPoint, dragToScreenPoint, dragToScreenPoint, dragToScreenPoint, getScreenPoint, getScreenPoint, getTestObjectClassName, hover, hover, hover, hover, mouseMove, mouseMove, mouseMove, mouseMove, nClick, nClickDrag, nClickDrag, nClickDragToScreenPoint, nClickDragToScreenPointgetBorderTitle, getClippedRect, getClippedScreenRectangle, getProperties, getStandardProperties, getText, getVisibleRectangle, getVisualClippedRectangle, hasFocus, isOpaque, isPointInObject, isType, scrollRectToVisiblecanBeScrolled, getChildAtPoint, getChildProxy, getComponentChildren, getElementWithFocus, getEmbeddedBrowsers, getImmediateChildren, getLabelText, getLeadingLabel, getLocationOnScreen, getName, getOwnedObjects, getParent2, getScreenRectangle, getTopParent, getWindow, isDopeyDynamicName, isEnabled, isHScroll, isLabelled, isRecognitionProperty, isShowing, isVScroll, setParentclick, click, click, click, doubleClick, doubleClick, doubleClick, doubleClick, drag, drag, drag, drag, dragToScreenPoint, dragToScreenPoint, dragToScreenPoint, dumpAction, ensureObjectIsVisible, getActionRect, getCachedRectX, getCachedRectY, getMethodSpecForPoint, getProcessMouseEventHandler, getRegisteredTopLevelWindow, getScreenPoint, getScreenPoint, getScriptCommandFlags, getTopMappableWindow, getTopWindow, hover, hover, hover, hover, invokeMethodOnEDT, isDrag, isPointInObject, modifiersChanged, mouseMove, mouseMove, nClick, nClickDrag, nClickDragToScreenPoint, processHoverMouseEvent, processMouseEvent, processSingleMouseEvent, setProcessMouseEventHandler, setTopLevelWindowaddMappableChildrenToVector, addRecognitionProperty, allowProperty, getAddedRecognitionPropertyValue, getChildren, getIndexer, getIndexers, getMethods, getNonValueProperties, getRecognitionProperties, getRecognitionPropertyWeight, getTestDomain, getTopMappableParent, getUniqueId, getVisualClippableParent, hasAddedRecognitionProperties, setIndexer, setPropertyaddDataDrivableCommands, baseClassMatch, canTakeVP, equals, findChildrenWithProperties, findChildrenWithPropertiesAndInvoke, getChannel, getChildren, getDataDrivableCommand, getDataDrivableCommands, getField, getIgnorableProperties, getMappableChildren, getMappableParent, getObjectClassName, getObjectCustomClassName, getOwnedObjects, getParent, getProxy, getScriptCommandAnchor, getVisualMappableChildren, getVisualTopParent, getVOMSpecificProperty, hasSpecialFrameState, isClassIndexConsidered, isSameObject, isValidObject, ping, suppressKeyActionpublic JPopupMenuProxy(java.lang.Object theObjectInTheSUT)
public java.lang.String getRole()
TestObjectRole.ROLE_POPUP_MENU.getRole in class JComponentProxypublic java.awt.Component getInvoker()
public java.lang.Object getParentObject()
null if this
object has no parent.getParentObject in class ComponentProxypublic com.rational.test.ft.domain.ProxyTestObject getParent()
getParent in class ComponentProxypublic com.rational.test.ft.domain.ProxyTestObject getOwner()
getOwner in class ComponentProxypublic void childConstructed(com.rational.test.ft.domain.ProxyTestObject child)
childConstructed in class ComponentProxychild - The child proxy that was just constructed.public com.rational.test.ft.domain.ProxyTestObject[] getMappableChildren()
getChildren to implement.getMappableChildren in class ComponentProxypublic java.util.Enumeration getChildrenEnumeration()
getChildrenEnumeration in class ComponentProxypublic com.rational.test.ft.domain.ProxyTestObject getMappableParent()
getMappableParent in class ComponentProxypublic boolean shouldBeMapped()
JavaGuiProxyshouldBeMapped in class JavaGuiProxypublic java.lang.Object getProperty(java.lang.String propertyName)
getProperty in class JComponentProxypublic com.rational.test.ft.script.Subitem getSubitem()
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.getSubitem in interface com.rational.test.ft.object.interfaces.IGraphicalSubitemgetSubitem in class JfcGraphicalSubitemProxysubitem - The subitem to fetch an object for.public java.lang.String getDescriptiveName()
getDescriptiveName in class JComponentProxypublic JMenuItemProxy getMenuItemProxy(com.rational.test.ft.script.Subitem item)
item - Subitem of the JPopupMenuProxypublic java.awt.Rectangle getScreenRectangle(com.rational.test.ft.script.Subitem subitem)
getScreenRectangle in interface com.rational.test.ft.object.interfaces.IGraphicalSubitemgetScreenRectangle in class JfcGraphicalSubitemProxyprotected void activateTopWindow()
activateTopWindow in class JavaGuiProxypublic java.util.Hashtable getTestDataTypes()
getTestDataTypes in class JavaProxygetTestData(String),
ITestDatapublic com.rational.test.ft.vp.ITestData getTestData(java.lang.String testDataType)
getTestDataTypes.getTestData in class com.rational.test.ft.domain.ProxyTestObjecttestDataType - A test data type supplied by
getTestDataTypes.getTestDataTypes(),
ITestDataprotected com.rational.test.ft.domain.ProxyTestObject[] getMenuChildrenArray()
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 com.rational.test.ft.domain.ProxyTestObjecttestDataType - A test data type supplied by
getTestDataTypes.testData - The test data base object that requires
updating.getTestDataTypes(),
ITestData