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 Subitem[] |
thePathList |
protected Subitem |
theSubitem |
TAB_INDEX, TAB_TEXT
childrenEnumerated, CLASSINDEX, CLASSINDEXWEIGHT, MAX_NAME, NAMEPROPERTY, NAMEPROPERTYWEIGHT, PRIORLABEL, PRIORLABELWEIGHT
LEFT, preDownState, processMouseEventHandler, ROLEINDEX, ROLEINDEXWEIGHT, TESTDATA_SPECIALFRAMESTATE, TESTDATA_SPECIALFRAMESTATE_DESCRIPTION, topLevelWindow
BROWSERTABTESTOBJECT_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
INCLUDE_ALL, INCLUDE_JUSTOBJECT, INCLUDE_SIBLINGS
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 |
---|---|
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 ProxyTestObject[] |
getMenuChildrenArray()
This protected method is needed to access true menu child proxies.
|
JMenuItemProxy |
getMenuItemProxy(Subitem item) |
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.
|
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 . |
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(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, updateTestData
getBorderTitle, getClippedRect, getClippedScreenRectangle, getProperties, getStandardProperties, getText, getVisibleRectangle, getVisualClippedRectangle, hasFocus, isPointInObject, isType, scrollRectToVisible
canBeScrolled, 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, setParent
activateTopWindow, click, click, click, 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, setTopLevelWindow
addMappableChildrenToVector, addRecognitionProperty, allowProperty, getAddedRecognitionPropertyValue, getChildren, getIndexer, getIndexers, getMethods, getNonValueProperties, getRecognitionProperties, getRecognitionPropertyWeight, getTestDomain, getTopMappableParent, getUniqueId, getVisualClippableParent, hasAddedRecognitionProperties, setIndexer, setProperty
addDataDrivableCommands, 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, suppressKeyAction
protected static final int NAME_LENGTH
protected Subitem theSubitem
protected Subitem[] thePathList
protected java.awt.Rectangle initRect
public JMenuItemProxy(java.lang.Object theObjectInTheSUT)
public java.lang.String getDescriptiveName()
getDescriptiveName
in class AbstractButtonProxy
public java.lang.String getRole()
TestObjectRole.ROLE_MENU_ITEM
.getRole
in class AbstractButtonProxy
public boolean isOpaque()
JComponentProxy
isOpaque
in class JComponentProxy
public java.util.Enumeration getChildrenEnumeration()
getChildrenEnumeration
in class ComponentProxy
public java.lang.String getName()
getName
in class ComponentProxy
public java.lang.Object getParentObject()
null
if this
object has no parent.getParentObject
in class ComponentProxy
public ProxyTestObject getAssociateProxy()
public Subitem getSubitem()
public int getIndex()
public 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(IMouseActionInfo action)
processSingleMouseEvent
in class AbstractButtonProxy
action
- The event cache and other mouse state information
for this mouse action.public MethodSpecification getMethodSpecForPoint(java.awt.Point pt)
IGraphical.getScreenPoint
will be returned. However, if a proxy can findgetMethodSpecForPoint
in class JavaGuiProxy
x
- The screen relative x coordinate.y
- The screen relative y coordinate.MethodSpecification
public JMenuItemProxy getMenuItemProxy(Subitem item)
protected ProxyTestObject[] getMenuChildrenArray()