public class JMenuItemProxy extends AbstractButtonProxy
javax.swing.JMenuItem class.
GuiTestObject
| Type | Desciption | Data Class |
|---|---|---|
| text | Button Visible Text | ITestDataText |
| 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). |
| text | The visible text of the button. If there is no visible text this property is omitted. |
| toolTipText | The text from the associated tool tip, omitted if there is no associated tool tip. |
| Modifier and Type | Class and Description |
|---|---|
protected class |
JMenuItemProxy.ChildEnumerator |
ComponentProxy.ImmediateChildEnumerator| Modifier and Type | Field and Description |
|---|---|
protected java.awt.Rectangle |
initRect |
protected static int |
NAME_LENGTH |
protected com.rational.test.ft.script.Subitem[] |
thePathList |
protected com.rational.test.ft.script.Subitem |
theSubitem |
TAB_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 |
|---|
JMenuItemProxy(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 |
|---|---|
com.rational.test.ft.domain.ProxyTestObject |
getAssociateProxy()
Return the proxy we want to record the actions against.
|
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.
|
int |
getIndex() |
protected com.rational.test.ft.domain.ProxyTestObject[] |
getMenuChildrenArray()
This protected method is needed to access true menu child proxies.
|
JMenuItemProxy |
getMenuItemProxy(com.rational.test.ft.script.Subitem item) |
com.rational.test.ft.sys.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 |
getName()
Returns a string that can be used to describe the path of this JMenuItem.
|
java.lang.Object |
getParentObject()
Returns an object for the parent of this object.
|
com.rational.test.ft.script.Subitem[] |
getPath()
Returns an array of Subitems can be used to describe the path of this JMenuItem.
|
protected java.lang.String |
getPathText(java.lang.String separator)
This method provides a path image for debugging and for the menu item descriptive
name.
|
java.lang.String |
getRole()
Returns
TestObjectRole.ROLE_MENU_ITEM. |
com.rational.test.ft.script.Subitem |
getSubitem()
Return the Subitem describes this JMenuItem.
|
boolean |
isOpaque()
Check the component under evaluation to determine if it is
opaque or transparent.
|
void |
processSingleMouseEvent(com.rational.test.ft.domain.IMouseActionInfo action)
Return a MethodSpecification for the specified mouse event.
|
clickToState, clickToState, deselect, dragToState, dragToState, getDataDrivableCommands, getDataDrivenRecognitionProperties, getIconDescription, getProperty, getRadioButtonGroup, getState, getTestData, getTestDataTypes, getTestObjectClassName, getText, getVariableDataDrivenRecognitionProperty, hasSpecialFrameState, indeterminate, isRadioSelected, select, setState, shouldBeMapped, updateTestDatagetBorderTitle, getClippedRect, getClippedScreenRectangle, getProperties, getStandardProperties, getText, getVisibleRectangle, getVisualClippedRectangle, hasFocus, isPointInObject, isType, scrollRectToVisiblecanBeScrolled, childConstructed, getChildAtPoint, getChildProxy, getComponentChildren, getElementWithFocus, getEmbeddedBrowsers, getImmediateChildren, getLabelText, getLeadingLabel, getLocationOnScreen, getMappableChildren, getMappableParent, getOwnedObjects, getOwner, getParent, getParent2, getScreenRectangle, getTopParent, getWindow, isDopeyDynamicName, isEnabled, isHScroll, isLabelled, isRecognitionProperty, isShowing, isVScroll, setParentactivateTopWindow, click, click, click, click, doubleClick, doubleClick, doubleClick, doubleClick, drag, drag, drag, drag, dragToScreenPoint, dragToScreenPoint, dragToScreenPoint, dumpAction, ensureObjectIsVisible, getActionRect, getCachedRectX, getCachedRectY, getProcessMouseEventHandler, getRegisteredTopLevelWindow, getScreenPoint, getScreenPoint, getScriptCommandFlags, getTopMappableWindow, getTopWindow, hover, hover, hover, hover, invokeMethodOnEDT, isDrag, isPointInObject, modifiersChanged, mouseMove, mouseMove, nClick, nClickDrag, nClickDragToScreenPoint, processHoverMouseEvent, processMouseEvent, 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, getField, getIgnorableProperties, getMappableChildren, getMappableParent, getObjectClassName, getObjectCustomClassName, getOwnedObjects, getParent, getProxy, getScriptCommandAnchor, getVisualMappableChildren, getVisualTopParent, getVOMSpecificProperty, isClassIndexConsidered, isSameObject, isValidObject, ping, suppressKeyActionprotected static final int NAME_LENGTH
protected com.rational.test.ft.script.Subitem theSubitem
protected com.rational.test.ft.script.Subitem[] thePathList
protected java.awt.Rectangle initRect
public JMenuItemProxy(java.lang.Object theObjectInTheSUT)
public java.lang.String getDescriptiveName()
getDescriptiveName in class AbstractButtonProxypublic java.lang.String getRole()
TestObjectRole.ROLE_MENU_ITEM.getRole in class AbstractButtonProxypublic boolean isOpaque()
JComponentProxyisOpaque in interface com.rational.test.ft.object.interfaces.IGraphicalisOpaque in class JComponentProxypublic java.util.Enumeration getChildrenEnumeration()
getChildrenEnumeration in class ComponentProxypublic java.lang.String getName()
getName in class ComponentProxypublic java.lang.Object getParentObject()
null if this
object has no parent.getParentObject in class ComponentProxypublic com.rational.test.ft.domain.ProxyTestObject getAssociateProxy()
public com.rational.test.ft.script.Subitem getSubitem()
public int getIndex()
public com.rational.test.ft.script.Subitem[] getPath()
protected java.lang.String getPathText(java.lang.String separator)
separator - The string to be placed between the items in the path.public void processSingleMouseEvent(com.rational.test.ft.domain.IMouseActionInfo action)
processSingleMouseEvent in class AbstractButtonProxyaction - The event cache and other mouse state information
for this mouse action.public com.rational.test.ft.sys.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 JMenuItemProxy getMenuItemProxy(com.rational.test.ft.script.Subitem item)
protected com.rational.test.ft.domain.ProxyTestObject[] getMenuChildrenArray()