public class JToolBarProxy extends JfcGraphicalSubitemProxy
GuiSubitemTestObject
| 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. |
| .priorLabel | The text of a preceding label. Suppressed if there is no preceding label. |
| accessibleContext.accessibleName | A programmatically defined name for the component. |
| name | The name property, suppressed if default formatted (default form = className+count). |
| toolTipText | The text from the associated tool tip, omitted if there is no associated tool tip. |
| Subitem | Usage |
|---|---|
Separator |
Defines a specific separator located on the toolbar. |
ComponentProxy.ImmediateChildEnumeratorTAB_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 |
|---|
JToolBarProxy(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 |
|---|---|
void |
childConstructed(com.rational.test.ft.domain.ProxyTestObject child)
Inform the parent when child proxies are constructed so additional recognition
properties can be added when needed.
|
void |
drag(com.rational.test.ft.script.MouseModifiers modifiers,
java.awt.Point pt1,
java.awt.Point pt2)
Perform a drag action against the associated TestObject.
|
void |
dragToScreenPoint(com.rational.test.ft.script.MouseModifiers modifiers,
java.awt.Point objectPt,
java.awt.Point screenPt)
Perform a drag action against the associated TestObject.
|
void |
dragToScreenPoint(java.awt.Point screenPt)
Performs a MOUSE_LEFT drag action against the associated
TestObject. |
void |
dragToScreenPoint(java.awt.Point objectPt,
java.awt.Point screenPt)
Perform a MOUSE_LEFT drag action against the associated TestObject.
|
java.util.Enumeration |
getChildrenEnumeration()
Return an enumeration of proxies for the children
of this object.
|
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 |
getRole()
Returns
TestObjectRole.ROLE_TOOL_BAR. |
java.awt.Rectangle |
getScreenRectangle(com.rational.test.ft.script.Subitem subitem)
Returns the rectangle that contains the component being
evaluated relative to the top left corner of the screen.
|
JSeparatorProxy |
getSeparatorProxy(com.rational.test.ft.script.Subitem item)
This method gets the proxy related to the Subitem.
|
protected com.rational.test.ft.domain.ProxyTestObject[] |
getSeparatorsArray() |
void |
nClickDrag(int clickCount,
com.rational.test.ft.script.MouseModifiers modifiers,
java.awt.Point pt1,
java.awt.Point pt2)
Perform a mouse n-click drag action on the specified coordinates relative
to the associated TestObject.
|
void |
nClickDragToScreenPoint(int clickCount,
com.rational.test.ft.script.MouseModifiers modifiers,
java.awt.Point objectPt,
java.awt.Point screenPt)
Perform a mouse n-click drag action on the specified coordinates relative
to the associated TestObject.
|
void |
processSingleMouseEvent(com.rational.test.ft.domain.IMouseActionInfo action)
Return a MethodSpecification for the specified mouse event.
|
click, click, click, click, doubleClick, doubleClick, doubleClick, doubleClick, drag, drag, drag, drag, drag, drag, dragToScreenPoint, dragToScreenPoint, dragToScreenPoint, dragToScreenPoint, getScreenPoint, getScreenPoint, getSubitem, getTestObjectClassName, hover, hover, hover, hover, mouseMove, mouseMove, mouseMove, mouseMove, nClick, nClickDrag, nClickDrag, nClickDragToScreenPoint, nClickDragToScreenPointgetBorderTitle, getClippedRect, getClippedScreenRectangle, getDescriptiveName, getProperties, getProperty, getStandardProperties, getText, getVisibleRectangle, getVisualClippedRectangle, hasFocus, isOpaque, isPointInObject, isType, scrollRectToVisiblecanBeScrolled, getChildAtPoint, getChildProxy, getComponentChildren, getElementWithFocus, getEmbeddedBrowsers, getImmediateChildren, getLabelText, getLeadingLabel, getLocationOnScreen, getMappableChildren, getMappableParent, getName, getOwnedObjects, getOwner, getParent, getParent2, getParentObject, getScreenRectangle, getTopParent, getWindow, isDopeyDynamicName, isEnabled, isHScroll, isLabelled, isRecognitionProperty, isShowing, isVScroll, setParentactivateTopWindow, click, click, click, click, doubleClick, doubleClick, doubleClick, doubleClick, drag, drag, drag, dumpAction, ensureObjectIsVisible, getActionRect, getCachedRectX, getCachedRectY, getProcessMouseEventHandler, getRegisteredTopLevelWindow, getScreenPoint, getScreenPoint, getScriptCommandFlags, getTopMappableWindow, getTopWindow, hover, hover, hover, hover, invokeMethodOnEDT, isDrag, isPointInObject, modifiersChanged, mouseMove, mouseMove, nClick, processHoverMouseEvent, processMouseEvent, setProcessMouseEventHandler, setTopLevelWindow, shouldBeMappedaddMappableChildrenToVector, addRecognitionProperty, allowProperty, getAddedRecognitionPropertyValue, getChildren, getIndexer, getIndexers, getMethods, getNonValueProperties, getRecognitionProperties, getRecognitionPropertyWeight, getTestDataTypes, getTestDomain, getTopMappableParent, getUniqueId, getVisualClippableParent, hasAddedRecognitionProperties, setIndexer, setPropertyaddDataDrivableCommands, baseClassMatch, canTakeVP, equals, findChildrenWithProperties, findChildrenWithPropertiesAndInvoke, getChannel, getChildren, getDataDrivableCommand, getDataDrivableCommands, getField, getIgnorableProperties, getMappableChildren, getMappableParent, getObjectClassName, getObjectCustomClassName, getOwnedObjects, getParent, getProxy, getScriptCommandAnchor, getTestData, getVisualMappableChildren, getVisualTopParent, getVOMSpecificProperty, hasSpecialFrameState, isClassIndexConsidered, isSameObject, isValidObject, ping, suppressKeyAction, updateTestDatapublic JToolBarProxy(java.lang.Object theObjectInTheSUT)
public java.lang.String getRole()
TestObjectRole.ROLE_TOOL_BAR.getRole in class JComponentProxypublic void childConstructed(com.rational.test.ft.domain.ProxyTestObject child)
childConstructed in class ComponentProxychild - The child proxy that was just constructed.public java.util.Enumeration getChildrenEnumeration()
getChildrenEnumeration in class ComponentProxyprotected com.rational.test.ft.domain.ProxyTestObject[] getSeparatorsArray()
public JSeparatorProxy getSeparatorProxy(com.rational.test.ft.script.Subitem item)
item - Subitem of the JToolBarProxypublic void processSingleMouseEvent(com.rational.test.ft.domain.IMouseActionInfo action)
processSingleMouseEvent in class JavaGuiProxyaction - 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 java.awt.Rectangle getScreenRectangle(com.rational.test.ft.script.Subitem subitem)
getScreenRectangle in interface com.rational.test.ft.object.interfaces.IGraphicalSubitemgetScreenRectangle in class JfcGraphicalSubitemProxypublic void drag(com.rational.test.ft.script.MouseModifiers modifiers,
java.awt.Point pt1,
java.awt.Point pt2)
drag in interface com.rational.test.ft.object.interfaces.IGraphicaldrag in class JavaGuiProxypublic void nClickDrag(int clickCount,
com.rational.test.ft.script.MouseModifiers modifiers,
java.awt.Point pt1,
java.awt.Point pt2)
nClickDrag in interface com.rational.test.ft.object.interfaces.IGraphicalnClickDrag in class JavaGuiProxypublic void dragToScreenPoint(java.awt.Point screenPt)
TestObject.
The action is performed from a valid point within this TestObject to
the screen relative screenPt coordinates.dragToScreenPoint in interface com.rational.test.ft.object.interfaces.IGraphicaldragToScreenPoint in class JavaGuiProxypublic void dragToScreenPoint(java.awt.Point objectPt,
java.awt.Point screenPt)
dragToScreenPoint in interface com.rational.test.ft.object.interfaces.IGraphicaldragToScreenPoint in class JavaGuiProxypublic void dragToScreenPoint(com.rational.test.ft.script.MouseModifiers modifiers,
java.awt.Point objectPt,
java.awt.Point screenPt)
dragToScreenPoint in interface com.rational.test.ft.object.interfaces.IGraphicaldragToScreenPoint in class JavaGuiProxypublic void nClickDragToScreenPoint(int clickCount,
com.rational.test.ft.script.MouseModifiers modifiers,
java.awt.Point objectPt,
java.awt.Point screenPt)
nClickDragToScreenPoint in interface com.rational.test.ft.object.interfaces.IGraphicalnClickDragToScreenPoint in class JavaGuiProxy