|
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 com.rational.test.ft.domain.java.jfc.JComponentProxy com.rational.test.ft.domain.java.jfc.JfcGraphicalSubitemProxy com.rational.test.ft.domain.java.jfc.JPopupMenuProxy
public class JPopupMenuProxy
Proxy for the 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. |
Nested Class Summary | |
---|---|
protected class |
JPopupMenuProxy.ChildEnumerator
|
Nested classes/interfaces inherited from class com.rational.test.ft.domain.java.awt.ComponentProxy |
---|
ComponentProxy.ImmediateChildEnumerator |
Field Summary |
---|
Fields inherited from class com.rational.test.ft.domain.java.jfc.JComponentProxy |
---|
TAB_INDEX, TAB_TEXT |
Fields inherited from class com.rational.test.ft.domain.java.awt.ComponentProxy |
---|
childrenEnumerated, CLASSINDEX, CLASSINDEXWEIGHT, MAX_NAME, NAMEPROPERTY, NAMEPROPERTYWEIGHT, PRIORLABEL, 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 | |
---|---|
JPopupMenuProxy(java.lang.Object theObjectInTheSUT)
This sole constructor for all proxy objects sets the SUT object as a member variable for the proxy. |
Method Summary | |
---|---|
protected void |
activateTopWindow()
|
void |
childConstructed(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. |
ProxyTestObject[] |
getMappableChildren()
Uses getChildren to implement. |
ProxyTestObject |
getMappableParent()
Returns a proxy object for the parent of this object. |
protected ProxyTestObject[] |
getMenuChildrenArray()
|
JMenuItemProxy |
getMenuItemProxy(com.rational.test.ft.script.Subitem item)
This method gets the proxy related to the Subitem. |
ProxyTestObject |
getOwner()
Returns a proxy object for the owner of this 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. |
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. |
Methods inherited from class com.rational.test.ft.domain.java.jfc.JfcGraphicalSubitemProxy |
---|
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, nClickDragToScreenPoint |
Methods inherited from class com.rational.test.ft.domain.java.jfc.JComponentProxy |
---|
getBorderTitle, getClippedRect, getClippedScreenRectangle, getProperties, getStandardProperties, getText, getVisibleRectangle, getVisualClippedRectangle, hasFocus, isOpaque, isPointInObject, isType, scrollRectToVisible |
Methods inherited from class com.rational.test.ft.domain.java.awt.ComponentProxy |
---|
canBeScrolled, getChildAtPoint, getChildProxy, getComponentChildren, getEmbeddedBrowsers, getImmediateChildren, getLabelText, getLeadingLabel, getLocationOnScreen, getName, getOwnedObjects, getParent2, getScreenRectangle, getTopParent, getWindow, isDopeyDynamicName, isEnabled, isHScroll, isLabelled, isRecognitionProperty, isShowing, isVScroll, setParent |
Methods inherited from class com.rational.test.ft.domain.java.JavaGuiProxy |
---|
click, 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, isDrag, isPointInObject, modifiersChanged, mouseMove, mouseMove, nClick, nClickDrag, nClickDragToScreenPoint, processHoverMouseEvent, processMouseEvent, processSingleMouseEvent, setProcessMouseEventHandler, setTopLevelWindow |
Methods inherited from class com.rational.test.ft.domain.java.JavaProxy |
---|
addMappableChildrenToVector, addRecognitionProperty, allowProperty, getAddedRecognitionPropertyValue, getChildren, getIndexer, getIndexers, getMethods, getNonValueProperties, getRecognitionProperties, getRecognitionPropertyWeight, 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 |
Constructor Detail |
---|
public JPopupMenuProxy(java.lang.Object theObjectInTheSUT)
Method Detail |
---|
public java.lang.String getRole()
TestObjectRole.ROLE_POPUP_MENU
.
getRole
in class JComponentProxy
public java.awt.Component getInvoker()
public java.lang.Object getParentObject()
null
if this
object has no parent.
getParentObject
in class ComponentProxy
public ProxyTestObject getParent()
getParent
in class ComponentProxy
public ProxyTestObject getOwner()
getOwner
in class ComponentProxy
public void childConstructed(ProxyTestObject child)
childConstructed
in class ComponentProxy
child
- The child proxy that was just constructed.public ProxyTestObject[] getMappableChildren()
getChildren
to implement.
getMappableChildren
in class ComponentProxy
public java.util.Enumeration getChildrenEnumeration()
getChildrenEnumeration
in class ComponentProxy
public ProxyTestObject getMappableParent()
getMappableParent
in class ComponentProxy
public boolean shouldBeMapped()
JavaGuiProxy
shouldBeMapped
in class JavaGuiProxy
public java.lang.Object getProperty(java.lang.String propertyName)
getProperty
in class JComponentProxy
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 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.IGraphicalSubitem
getSubitem
in class JfcGraphicalSubitemProxy
subitem
- The subitem to fetch an object for.
public java.lang.String getDescriptiveName()
getDescriptiveName
in class JComponentProxy
public JMenuItemProxy getMenuItemProxy(com.rational.test.ft.script.Subitem item)
item
- Subitem of the JPopupMenuProxy public java.awt.Rectangle getScreenRectangle(com.rational.test.ft.script.Subitem subitem)
getScreenRectangle
in interface com.rational.test.ft.object.interfaces.IGraphicalSubitem
getScreenRectangle
in class JfcGraphicalSubitemProxy
protected void activateTopWindow()
activateTopWindow
in class JavaGuiProxy
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
protected 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 ProxyTestObject
testDataType
- A test data type supplied by
getTestDataTypes
.testData
- The test data base object that requires
updating.
getTestDataTypes()
,
ITestData
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |