public class MenuItemProxy extends JavaGuiProxy
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. |
| Modifier and Type | Class and Description |
|---|---|
protected class |
MenuItemProxy.ChildEnumerator |
| Modifier and Type | Field and Description |
|---|---|
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 |
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, vomClippedRectangle| Constructor and Description |
|---|
MenuItemProxy(java.lang.Object theObjectInTheSUT)
Sets the SUT object
as a member variable for the proxy.
|
| Modifier and Type | Method and Description |
|---|---|
com.rational.test.ft.domain.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() |
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
|
com.rational.test.ft.domain.ProxyTestObject |
getMappableParent()
Returns a proxy object for the mappable parent of this object.
|
MenuProxy |
getMenuProxy() |
com.rational.test.ft.domain.ProxyTestObject[] |
getOwnedObjects()
Always returns null because object relationships are not
understood at this level of abstaction.
|
com.rational.test.ft.domain.ProxyTestObject |
getOwner()
Always returns null because object relationships are not
understood at this level of abstaction.
|
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.
|
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(com.rational.test.ft.domain.IMouseActionInfo action) |
void |
setCachedMenuBar(java.lang.Object topMenu) |
activateTopWindow, click, click, click, click, doubleClick, doubleClick, doubleClick, doubleClick, drag, drag, drag, drag, dragToScreenPoint, dragToScreenPoint, dragToScreenPoint, dumpAction, ensureObjectIsVisible, getActionRect, getCachedRectX, getCachedRectY, getClippedRect, getMethodSpecForPoint, getProcessMouseEventHandler, getRegisteredTopLevelWindow, getScreenPoint, getScreenPoint, getScriptCommandFlags, getTestObjectClassName, getTopMappableWindow, getTopWindow, hover, hover, hover, hover, invokeMethodOnEDT, isDrag, isPointInObject, isPointInObject, modifiersChanged, mouseMove, mouseMove, nClick, nClickDrag, nClickDragToScreenPoint, processHoverMouseEvent, processMouseEvent, scrollRectToVisible, setProcessMouseEventHandler, setTopLevelWindow, shouldBeMappedaddMappableChildrenToVector, addRecognitionProperty, allowProperty, childConstructed, getAddedRecognitionPropertyValue, getChildren, getIndexer, getIndexers, getMappableChildren, getMethods, getNonValueProperties, getProperties, getRecognitionProperties, getRecognitionPropertyWeight, getStandardProperties, getTestDomain, getTopMappableParent, getTopParent, getUniqueId, getVisualClippableParent, hasAddedRecognitionProperties, isRecognitionProperty, setIndexer, setPropertyaddDataDrivableCommands, baseClassMatch, canTakeVP, equals, findChildrenWithProperties, findChildrenWithPropertiesAndInvoke, getChildren, getDataDrivableCommand, getDataDrivableCommands, getElementWithFocus, getField, getIgnorableProperties, getMappableChildren, getMappableParent, getObjectClassName, getObjectCustomClassName, getOwnedObjects, getParent, getProxy, getScriptCommandAnchor, getVisualMappableChildren, getVisualTopParent, getVOMSpecificProperty, hasSpecialFrameState, isClassIndexConsidered, isSameObject, isValidObject, ping, suppressKeyAction, updateTestDataprotected 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
public MenuItemProxy(java.lang.Object theObjectInTheSUT)
public java.lang.String getRole()
TestObjectRole.ROLE_MENU_ITEM.public java.lang.String getLabel()
public java.lang.String getDescriptiveName()
getDescriptiveName in class JavaGuiProxypublic int getStyle()
public com.rational.test.ft.domain.ProxyTestObject getParent()
getParent in class JavaGuiProxypublic void processSingleMouseEvent(com.rational.test.ft.domain.IMouseActionInfo action)
processSingleMouseEvent in class JavaGuiProxypublic void setCachedMenuBar(java.lang.Object topMenu)
public 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(),
ITestDatapublic MenuProxy getMenuProxy()
public java.lang.Object getParentObject()
getParentObject in class JavaGuiProxypublic boolean isEnabled()
isEnabled in interface com.rational.test.ft.object.interfaces.IGraphicalisEnabled in class JavaGuiProxypublic boolean isShowing()
isShowing in interface com.rational.test.ft.object.interfaces.IGraphicalisShowing in class JavaGuiProxypublic boolean isOpaque()
JavaGuiProxyisOpaque in interface com.rational.test.ft.object.interfaces.IGraphicalisOpaque in class JavaGuiProxypublic boolean hasFocus()
JavaGuiProxyhasFocus in interface com.rational.test.ft.object.interfaces.IGraphicalhasFocus in class JavaGuiProxypublic com.rational.test.ft.domain.ProxyTestObject getMappableParent()
JavaGuiProxygetMappableParent in class JavaGuiProxypublic java.util.Enumeration getChildrenEnumeration()
JavaGuiProxygetChildrenEnumeration in class JavaGuiProxypublic java.util.Enumeration getImmediateChildren()
JavaGuiProxygetImmediateChildren in class JavaGuiProxypublic com.rational.test.ft.domain.ProxyTestObject getOwner()
JavaProxypublic com.rational.test.ft.domain.ProxyTestObject[] getOwnedObjects()
JavaProxygetOwnedObjects in class JavaProxypublic 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.IGraphicalgetChildAtPoint in class JavaGuiProxypt - Screen relative point to check.JavaGuiProxy.getScreenRectangle()public java.awt.Rectangle getScreenRectangle()
getScreenRectangle in interface com.rational.test.ft.object.interfaces.IGraphicalgetScreenRectangle in class JavaGuiProxypublic java.awt.Rectangle getClippedScreenRectangle()
getClippedScreenRectangle in interface com.rational.test.ft.object.interfaces.IGraphicalgetClippedScreenRectangle in class JavaGuiProxypublic java.awt.Rectangle getVisualClippedRectangle()
getVisualClippedRectangle in class com.rational.test.ft.domain.ProxyTestObjectpublic java.lang.Object getProperty(java.lang.String propertyName)
getProperty in class JavaProxypublic 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 com.rational.test.ft.domain.IChannel getChannel()
getChannel in interface com.rational.test.ft.domain.IChannelObjectgetChannel in class com.rational.test.ft.domain.ProxyTestObjectprotected boolean isRadioButton()
protected boolean isCheckBox()
protected boolean isSeparator()
protected boolean getState()