|
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.AbstractButtonProxy com.rational.test.ft.domain.java.jfc.JMenuItemProxy
public class JMenuItemProxy
Proxy for the 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. |
Nested Class Summary | |
---|---|
protected class |
JMenuItemProxy.ChildEnumerator
|
Nested classes/interfaces inherited from class com.rational.test.ft.domain.java.awt.ComponentProxy |
---|
ComponentProxy.ImmediateChildEnumerator |
Field Summary | |
---|---|
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
|
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 | |
---|---|
JMenuItemProxy(java.lang.Object theObjectInTheSUT)
This sole constructor for all proxy objects sets the SUT object as a member variable for the proxy. |
Method Summary | |
---|---|
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(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. |
void |
processSingleMouseEvent(IMouseActionInfo action)
Return a MethodSpecification for the specified mouse event. |
Methods inherited from class com.rational.test.ft.domain.java.jfc.AbstractButtonProxy |
---|
clickToState, clickToState, deselect, dragToState, dragToState, getDataDrivableCommands, getDataDrivenRecognitionProperties, getIconDescription, getProperty, getRadioButtonGroup, getState, getTestData, getTestDataTypes, getTestObjectClassName, getText, getVariableDataDrivenRecognitionProperty, hasSpecialFrameState, indeterminate, isRadioSelected, select, setState, shouldBeMapped, updateTestData |
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, childConstructed, getChildAtPoint, getChildProxy, getComponentChildren, getEmbeddedBrowsers, getImmediateChildren, getLabelText, getLeadingLabel, getLocationOnScreen, getMappableChildren, getMappableParent, getOwnedObjects, getOwner, getParent, getParent2, getScreenRectangle, getTopParent, getWindow, isDopeyDynamicName, isEnabled, isHScroll, isLabelled, isRecognitionProperty, isShowing, isVScroll, setParent |
Methods inherited from class com.rational.test.ft.domain.java.JavaGuiProxy |
---|
activateTopWindow, 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, isDrag, isPointInObject, modifiersChanged, mouseMove, mouseMove, nClick, nClickDrag, nClickDragToScreenPoint, processHoverMouseEvent, processMouseEvent, 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 |
Field Detail |
---|
protected 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
Constructor Detail |
---|
public JMenuItemProxy(java.lang.Object theObjectInTheSUT)
Method Detail |
---|
public java.lang.String getDescriptiveName()
getDescriptiveName
in class AbstractButtonProxy
public java.lang.String getRole()
TestObjectRole.ROLE_MENU_ITEM
.
getRole
in class AbstractButtonProxy
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 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(IMouseActionInfo action)
processSingleMouseEvent
in class AbstractButtonProxy
action
- 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 find
getMethodSpecForPoint
in class JavaGuiProxy
x
- The screen relative x coordinate.y
- The screen relative y coordinate.MethodSpecification
public JMenuItemProxy getMenuItemProxy(com.rational.test.ft.script.Subitem item)
protected ProxyTestObject[] getMenuChildrenArray()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |