com.rational.test.ft.domain.java.awt
Class ScrollPaneProxy
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.awt.ScrollPaneProxy
- All Implemented Interfaces:
- IChannelObject, IDataDriven, IProxyBase, IPropertyFilter, ISetParent, com.rational.test.ft.object.interfaces.IGraphical
public class ScrollPaneProxy
- extends ComponentProxy
Proxy for the AWT ScrollPane objects.
- Test Object interface:
ScrollTestObject
- Default Recognition Properties:
| 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. |
| name | The name property, suppressed if default formatted (default form = className+count). |
| viewport_size | The current dimension of the scroll pane's view port. |
| Fields inherited from class com.rational.test.ft.domain.ProxyTestObject |
BROWSERTESTOBJECT_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, 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, TOGGLEGUITESTOBJECT_CLASSNAME, TOGGLETESTOBJECT_CLASSNAME, TOPLEVELSUBITEMTESTOBJECT_CLASSNAME, TOPLEVELTESTOBJECT_CLASSNAME, TRACKBARTESTOBJECT_CLASSNAME |
| Fields inherited from class com.rational.test.ft.sys.RegisteredObject |
theTestObject |
|
Constructor Summary |
ScrollPaneProxy(java.lang.Object theObjectInTheSUT)
Sets the SUT object
as a member variable for the proxy. |
| Methods inherited from class com.rational.test.ft.domain.java.awt.ComponentProxy |
canBeScrolled, childConstructed, getChildAtPoint, getChildProxy, getChildrenEnumeration, getClippedRect, getComponentChildren, getEmbeddedBrowsers, getImmediateChildren, getLabelText, getLeadingLabel, getLocationOnScreen, getMappableChildren, getMappableParent, getName, getOwnedObjects, getOwner, getParent, getParent2, getParentObject, getScreenRectangle, getTopParent, getWindow, hasFocus, isDopeyDynamicName, isEnabled, isHScroll, isLabelled, isOpaque, 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, getClippedScreenRectangle, getMethodSpecForPoint, getProcessMouseEventHandler, getRegisteredTopLevelWindow, getScreenPoint, getScreenPoint, getScriptCommandFlags, getTopMappableWindow, getTopWindow, hover, hover, hover, hover, isDrag, isPointInObject, isPointInObject, modifiersChanged, mouseMove, mouseMove, nClick, nClickDrag, nClickDragToScreenPoint, processHoverMouseEvent, processMouseEvent, scrollRectToVisible, setProcessMouseEventHandler, setTopLevelWindow, shouldBeMapped |
| Methods inherited from class com.rational.test.ft.domain.java.JavaProxy |
addMappableChildrenToVector, addRecognitionProperty, allowProperty, getAddedRecognitionPropertyValue, getChildren, getIndexer, getIndexers, getMethods, getNonValueProperties, getProperties, getRecognitionProperties, getRecognitionPropertyWeight, getStandardProperties, getTestDataTypes, getTestDomain, getTopMappableParent, getUniqueId, hasAddedRecognitionProperties, setIndexer, setProperty |
| Methods inherited from class com.rational.test.ft.domain.ProxyTestObject |
addDataDrivableCommands, equals, findChildrenWithProperties, findChildrenWithPropertiesAndInvoke, getChannel, getDataDrivableCommand, getDataDrivableCommands, getField, getObjectClassName, getProxy, getScriptCommandAnchor, getTestData, hasSpecialFrameState, isClassIndexConsidered, isSameObject, isValidObject, ping, suppressKeyAction, updateTestData |
| 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 |
ScrollPaneProxy
public ScrollPaneProxy(java.lang.Object theObjectInTheSUT)
- Sets the SUT object
as a member variable for the proxy. All interactions with the
supplied object are performed through this class.
getTestObjectClassName
public java.lang.String getTestObjectClassName()
- Returns the ListTestObject classname, which is the default list test object.
- Specified by:
getTestObjectClassName in interface IProxyBase- Overrides:
getTestObjectClassName in class JavaGuiProxy
- Returns:
- The default list test object class full name.
getDescriptiveName
public java.lang.String getDescriptiveName()
- Returns a name that can be used to describe the associated UI
object in a script. This name may be further adjusted to become
unique to the script, but it acts as the base for the name
used in the script. Only characters used in Java identifiers
should be returned (alphabetic, numeric, or underscore characters).
Non-identifier characters cause script compilation failures.
An example of what to return is "OKButton" for a java.awt.Button
with the text "OK" on it.
- Overrides:
getDescriptiveName in class ComponentProxy
- Returns:
- A descriptive object name.
getRole
public java.lang.String getRole()
- Returns
TestObjectRole.ROLE_SCROLL_PANE.
- Overrides:
getRole in class ComponentProxy
- Returns:
- A brief type name that describes the role this object plays in the UI.
- Since:
- RFT1.0
getProperty
public java.lang.Object getProperty(java.lang.String propertyName)
- Gets the value for a specific property.
- Overrides:
getProperty in class ComponentProxy
- Parameters:
propertyName - The name of the property to fetch.
- Returns:
- The active value of the specified property for the associated
test object.
- See Also:
ProxyTestObject.getProperties(),
ProxyTestObject.setProperty(String,Object),
ProxyTestObject.getRecognitionProperties(),
ProxyTestObject.addRecognitionProperty(String,Object,int)
processSingleMouseEvent
public void processSingleMouseEvent(IMouseActionInfo action)
- Returns a method specification for the specified mouse event. This is
the primary record interface for mouse events against a particular
control.
- Overrides:
processSingleMouseEvent in class JavaGuiProxy
- Parameters:
action - The event cache and other mouse state information
for this mouse action.- See Also:
MethodSpecification
hScrollTo
public void hScrollTo(int position)
vScrollTo
public void vScrollTo(int position)
- Moves a vertical scrollbar to a specified position.
- Parameters:
position - The poition of the vertical scrollbar after
this action is completed.- See Also:
hScrollTo(int)