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, 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 |
---|
MenuItemProxy(java.lang.Object theObjectInTheSUT)
Sets the SUT object
as a member variable for the proxy.
|
Modifier and Type | Method and Description |
---|---|
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
|
ProxyTestObject |
getMappableParent()
Returns a proxy object for the mappable parent of this object.
|
MenuProxy |
getMenuProxy() |
ProxyTestObject[] |
getOwnedObjects()
Always returns null because object relationships are not
understood at this level of abstaction.
|
ProxyTestObject |
getOwner()
Always returns null because object relationships are not
understood at this level of abstaction.
|
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.
|
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() |
Subitem |
getSubitem()
Return the Subitem describes this JMenuItem.
|
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(Subitem subitem)
true if the specified subitem is valid for this menu item. |
void |
processSingleMouseEvent(IMouseActionInfo action) |
void |
setCachedMenuBar(java.lang.Object topMenu) |
activateTopWindow, click, click, click, 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, shouldBeMapped
addMappableChildrenToVector, addRecognitionProperty, allowProperty, childConstructed, getAddedRecognitionPropertyValue, getChildren, getIndexer, getIndexers, getMappableChildren, getMethods, getNonValueProperties, getProperties, getRecognitionProperties, getRecognitionPropertyWeight, getStandardProperties, getTestDomain, getTopMappableParent, getTopParent, getUniqueId, getVisualClippableParent, hasAddedRecognitionProperties, isRecognitionProperty, setIndexer, setProperty
addDataDrivableCommands, 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, updateTestData
protected 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 JavaGuiProxy
public int getStyle()
public ProxyTestObject getParent()
getParent
in class JavaGuiProxy
public void processSingleMouseEvent(IMouseActionInfo action)
processSingleMouseEvent
in class JavaGuiProxy
public void setCachedMenuBar(java.lang.Object topMenu)
public java.util.Hashtable getTestDataTypes()
getTestDataTypes
in class JavaProxy
getTestData(String)
,
ITestData
public ITestData getTestData(java.lang.String testDataType)
getTestDataTypes
.getTestData
in class ProxyTestObject
testDataType
- A test data type supplied by
getTestDataTypes
.getTestDataTypes()
,
ITestData
public MenuProxy getMenuProxy()
public java.lang.Object getParentObject()
getParentObject
in class JavaGuiProxy
public boolean isEnabled()
isEnabled
in class JavaGuiProxy
public boolean isShowing()
isShowing
in class JavaGuiProxy
public boolean isOpaque()
JavaGuiProxy
isOpaque
in class JavaGuiProxy
public boolean hasFocus()
JavaGuiProxy
hasFocus
in class JavaGuiProxy
public ProxyTestObject getMappableParent()
JavaGuiProxy
getMappableParent
in class JavaGuiProxy
public java.util.Enumeration getChildrenEnumeration()
JavaGuiProxy
getChildrenEnumeration
in class JavaGuiProxy
public java.util.Enumeration getImmediateChildren()
JavaGuiProxy
getImmediateChildren
in class JavaGuiProxy
public ProxyTestObject getOwner()
JavaProxy
public ProxyTestObject[] getOwnedObjects()
JavaProxy
getOwnedObjects
in class JavaProxy
public java.lang.Object getChildAtPoint(java.awt.Point pt)
JavaGuiProxy
If this object has no children, it should return null
.
getChildAtPoint
in class JavaGuiProxy
pt
- Screen relative point to check.JavaGuiProxy.getScreenRectangle()
public java.awt.Rectangle getScreenRectangle()
getScreenRectangle
in class JavaGuiProxy
public java.awt.Rectangle getClippedScreenRectangle()
getClippedScreenRectangle
in class JavaGuiProxy
public java.awt.Rectangle getVisualClippedRectangle()
getVisualClippedRectangle
in class ProxyTestObject
public java.lang.Object getProperty(java.lang.String propertyName)
getProperty
in class JavaProxy
propertyName
- The name of the property to fetch.ProxyTestObject.getProperties()
,
ProxyTestObject.setProperty(String,Object)
,
ProxyTestObject.getRecognitionProperties()
,
ProxyTestObject.addRecognitionProperty(String,Object,int)
public Subitem[] getPath()
public int getIndex()
public Subitem getSubitem()
public boolean isSubitem(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 IChannel getChannel()
getChannel
in class ProxyTestObject
protected boolean isRadioButton()
protected boolean isCheckBox()
protected boolean isSeparator()
protected boolean getState()