public class ComboListBoxProxy extends JavaGuiProxy
GuiTestObject
| 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. |
| Modifier and Type | Field and Description |
|---|---|
protected static FtDebug |
debug |
LEFT, preDownState, processMouseEventHandler, ROLEINDEX, ROLEINDEXWEIGHT, TESTDATA_SPECIALFRAMESTATE, TESTDATA_SPECIALFRAMESTATE_DESCRIPTIONBROWSERTABTESTOBJECT_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, vomClippedRectangleINCLUDE_ALL, INCLUDE_JUSTOBJECT, INCLUDE_SIBLINGS| Constructor and Description |
|---|
ComboListBoxProxy(ComboListBox theObjectInTheSUT,
ProxyTestObject topLevelWindow,
Window comboBox)
This sole constructor for all proxy objects sets the SUT object
as a member variable for the proxy.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
activateTopWindow()
Overload the inherited implementation to never attempt to activate the
ComboListBox popup window.
|
protected java.awt.Rectangle |
getActionRect()
Gets the screen relative rectangle and throws an invalid action
exception if the rectangle is not valid.
|
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.
|
ProxyTestObject |
getElementWithFocus()
Return the element with focus
|
java.util.Enumeration |
getImmediateChildren()
Return an enumeration of proxies for the immediate children of this object.
|
ProxyTestObject |
getInvoker()
Returns the proxy for the component that is the 'invoker' of this popup window.
|
ProxyTestObject |
getMappableParent()
Returns a proxy object for the parent of this object.
|
MethodSpecification |
getMethodSpecForPoint(java.awt.Point pt)
Return a MethodSpecification for a method that returns a java.awt.Point
for the specified coordinates.
|
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.
|
java.lang.String |
getRole()
Returns
TestObjectRole.ROLE_COMBO_LIST_BOX. |
java.awt.Point |
getScreenPoint(java.awt.Point pt)
Returns the screen relative point, given an object relative point.
|
java.awt.Rectangle |
getScreenRectangle()
Returns the rectangle that contains the component being
evaluated relative to the top left corner of the screen.
|
ScriptCommandFlags |
getScriptCommandFlags()
This method returns an active state value that reflects the state of the
test object at the time of the call.
|
java.lang.String |
getTestObjectClassName()
Set to null when the JPopupMenu is not interesting.
|
ITopWindow |
getTopMappableWindow()
All Gui Components must be inside a top-level object.
|
ITopWindow |
getTopWindow()
All Gui Components must be inside a top-level object.
|
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.
|
boolean |
isEnabled()
Check 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.
|
boolean |
isPointInObject(java.awt.Point pt)
Determines if the specified screen relative point is
contained in the component under evaluation.
|
boolean |
isShowing()
Check the component under evaluation to determine if it is
showing (as opposed to hidden).
|
protected boolean |
modifiersChanged(IMouseActionInfo action) |
void |
processSingleMouseEvent(IMouseActionInfo action)
Return a MethodSpecification for the specified mouse event.
|
boolean |
shouldBeMapped()
Returns true; by default, all test objects are mapped.
|
click, click, click, doubleClick, doubleClick, doubleClick, drag, drag, drag, drag, dragToScreenPoint, dragToScreenPoint, dragToScreenPoint, dumpAction, ensureObjectIsVisible, getCachedRectX, getCachedRectY, getClippedRect, getProcessMouseEventHandler, getRegisteredTopLevelWindow, getScreenPoint, hover, hover, hover, hover, invokeMethodOnEDT, isDrag, isPointInObject, mouseMove, mouseMove, nClick, nClickDrag, nClickDragToScreenPoint, processHoverMouseEvent, processMouseEvent, scrollRectToVisible, setProcessMouseEventHandler, setTopLevelWindowaddMappableChildrenToVector, addRecognitionProperty, allowProperty, childConstructed, getAddedRecognitionPropertyValue, getChildren, getIndexer, getIndexers, getMappableChildren, getMethods, getNonValueProperties, getOwnedObjects, getOwner, getProperties, getProperty, getRecognitionProperties, getRecognitionPropertyWeight, getStandardProperties, getTestDataTypes, getTestDomain, getTopMappableParent, getTopParent, getUniqueId, getVisualClippableParent, hasAddedRecognitionProperties, isRecognitionProperty, 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 ComboListBoxProxy(ComboListBox theObjectInTheSUT,
ProxyTestObject topLevelWindow,
Window comboBox)
public ProxyTestObject getInvoker()
public java.lang.String getTestObjectClassName()
getTestObjectClassName in interface IProxyBasegetTestObjectClassName in class JavaGuiProxypublic ProxyTestObject getParent()
getParent in class JavaGuiProxypublic java.lang.Object getParentObject()
null if this
object has no parent.getParentObject in class JavaGuiProxypublic ProxyTestObject getMappableParent()
getMappableParent in class JavaGuiProxypublic java.lang.String getDescriptiveName()
getDescriptiveName in class JavaGuiProxypublic java.lang.String getRole()
TestObjectRole.ROLE_COMBO_LIST_BOX.public boolean shouldBeMapped()
shouldBeMapped in class JavaGuiProxypublic ITopWindow getTopWindow()
getTopWindow in class JavaGuiProxypublic ITopWindow getTopMappableWindow()
getTopMappableWindow in class JavaGuiProxypublic java.util.Enumeration getChildrenEnumeration()
getChildrenEnumeration in class JavaGuiProxypublic java.util.Enumeration getImmediateChildren()
getImmediateChildren in class JavaGuiProxypublic void processSingleMouseEvent(IMouseActionInfo action)
processSingleMouseEvent in class JavaGuiProxyaction - The event cache and other mouse state information
for this mouse action.MethodSpecificationprotected boolean modifiersChanged(IMouseActionInfo action)
modifiersChanged in class JavaGuiProxypublic MethodSpecification getMethodSpecForPoint(java.awt.Point pt)
IGraphical.getScreenPoint is returned. However, if a proxy can findgetMethodSpecForPoint in class JavaGuiProxyx - The screen relative x coordinate.y - The screen relative y coordinate.MethodSpecificationpublic boolean isShowing()
isShowing in class JavaGuiProxypublic boolean isEnabled()
isEnabled in class JavaGuiProxypublic ScriptCommandFlags getScriptCommandFlags()
getScriptCommandFlags in class JavaGuiProxypublic boolean isOpaque()
isOpaque in class JavaGuiProxypublic boolean hasFocus()
hasFocus in class JavaGuiProxypublic boolean isPointInObject(java.awt.Point pt)
This functionality is performed by the proxy due to potentially
unusual aspects associated with functionality. While typically
the getScreenRectangle is
used to resolve this query, there are situations for which this
is not accurate. For instance if the clickable region on a
button is not rectangular, just checking whether the point is in
the rectangle is not valid.
isPointInObject in class JavaGuiProxypt - Screen relative point to check.getScreenRectangle()public java.lang.Object getChildAtPoint(java.awt.Point pt)
If this object has no children, it should return null.
getChildAtPoint in class JavaGuiProxypt - Screen relative point to check.getScreenRectangle()public java.awt.Rectangle getScreenRectangle()
getScreenRectangle in class JavaGuiProxypublic java.awt.Rectangle getClippedScreenRectangle()
getClippedScreenRectangle in class JavaGuiProxypublic java.awt.Rectangle getVisualClippedRectangle()
getVisualClippedRectangle in class ProxyTestObjectpublic java.awt.Point getScreenPoint(java.awt.Point pt)
getScreenPoint in class JavaGuiProxypt - The Object relative point.protected java.awt.Rectangle getActionRect()
getActionRect in class JavaGuiProxyprotected void activateTopWindow()
activateTopWindow in class JavaGuiProxypublic ProxyTestObject getElementWithFocus()
getElementWithFocus in class ProxyTestObject