|
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.Objectcom.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.JInternalFrameProxy
public class JInternalFrameProxy
Reconfigure the parent child relationships for JDesktop controls to include all JFrames instead of just those initiated relative to the desktop. We do not have owner-owned for non-top-level controls so must use parent-child for all internal frames. Since internal frames raised from internal frames maintain that hierarchy we need to remap that hierarchy to include the indirectly referenced internal frames.
InternalFrameTestObject
| 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. |
| title | The visible text on the internal frame titlebar. |
| toolTipText | The text from the associated tool tip, omitted if there is no associated tool tip. |
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class com.rational.test.ft.domain.java.awt.ComponentProxy |
|---|
ComponentProxy.ChildEnumerator, ComponentProxy.ImmediateChildEnumerator |
| Field Summary |
|---|
| 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 | |
|---|---|
JInternalFrameProxy(java.lang.Object theObjectInTheSUT)
This sole constructor for all proxy objects sets the SUT object as a member variable for the proxy. |
|
| Method Summary | |
|---|---|
void |
addRecognitionProperty(java.lang.String property,
java.lang.Object value,
int weight)
Defines an additional recognition property that this proxy should utilize. |
boolean |
allowProperty(java.lang.String property)
Returns true if the property is allowed. |
void |
close()
This method closes the associated window. |
void |
contextHelp()
Activate the context-sensitive Help |
ProxyTestObject[] |
getMappableChildren()
Uses getChildren to implement. |
java.lang.String |
getName()
Gets the name of the object. |
java.lang.Object |
getParentObject()
Returns an object for the parent of this object. |
java.lang.Object |
getProperty(java.lang.String propertyName)
Get the value for a specific property. |
java.lang.String |
getRole()
Returns TestObjectRole.ROLE_INTERNAL_FRAME. |
java.lang.String |
getTestObjectClassName()
Return the top level GUI test object that implements ITopWindow. |
protected java.lang.String |
getTitle()
Returns the Title for the Internal frame object. |
boolean |
isIconified()
Provides access to the iconified state of the frame |
boolean |
isMaximized()
|
boolean |
isOpaque()
Check the component under evaluation to determine if it is opaque or transparent. |
void |
maximize()
This method maximizes the associated window. |
void |
minimize()
This method iconifies the associated window. |
void |
move(java.awt.Point pt)
Moves the frame to the specified location within parent. |
void |
processSingleMouseEvent(IMouseActionInfo action)
Return a MethodSpecification for the specified mouse event. |
void |
resize(int width,
int height)
Resizes the frame to the specified width and height. |
void |
restore()
This method restores the associated window. |
void |
toFront()
Causes the associated internal frame control to the front if possible. |
| Methods inherited from class com.rational.test.ft.domain.java.jfc.JComponentProxy |
|---|
getBorderTitle, getClippedRect, getClippedScreenRectangle, getDescriptiveName, getProperties, getStandardProperties, getText, getVisibleRectangle, getVisualClippedRectangle, hasFocus, isPointInObject, isType, scrollRectToVisible |
| Methods inherited from class com.rational.test.ft.domain.java.awt.ComponentProxy |
|---|
canBeScrolled, childConstructed, getChildAtPoint, getChildProxy, getChildrenEnumeration, getComponentChildren, getEmbeddedBrowsers, getImmediateChildren, getLabelText, getLeadingLabel, getLocationOnScreen, 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, getMethodSpecForPoint, getProcessMouseEventHandler, getRegisteredTopLevelWindow, getScreenPoint, getScreenPoint, getScriptCommandFlags, getTopMappableWindow, getTopWindow, hover, hover, hover, hover, isDrag, isPointInObject, modifiersChanged, mouseMove, mouseMove, nClick, nClickDrag, nClickDragToScreenPoint, processHoverMouseEvent, processMouseEvent, setProcessMouseEventHandler, setTopLevelWindow, shouldBeMapped |
| Methods inherited from class com.rational.test.ft.domain.java.JavaProxy |
|---|
addMappableChildrenToVector, getAddedRecognitionPropertyValue, getChildren, getIndexer, getIndexers, getMethods, getNonValueProperties, getRecognitionProperties, getRecognitionPropertyWeight, getTestDataTypes, 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 |
| Methods inherited from interface com.rational.test.ft.object.interfaces.IGraphical |
|---|
click, click, click, click, doubleClick, doubleClick, doubleClick, doubleClick, drag, drag, drag, drag, dragToScreenPoint, dragToScreenPoint, dragToScreenPoint, getChildAtPoint, getClippedScreenRectangle, getScreenPoint, getScreenPoint, getScreenRectangle, hasFocus, hover, hover, hover, hover, isEnabled, isPointInObject, isShowing, mouseMove, mouseMove, nClick, nClickDrag, nClickDragToScreenPoint |
| Constructor Detail |
|---|
public JInternalFrameProxy(java.lang.Object theObjectInTheSUT)
| Method Detail |
|---|
public java.lang.String getRole()
TestObjectRole.ROLE_INTERNAL_FRAME.
getRole in class JComponentProxypublic boolean allowProperty(java.lang.String property)
IPropertyFiltertrue if the property is allowed.
allowProperty in interface IPropertyFilterallowProperty in class JavaProxytrue if the property is allowed.public java.lang.Object getProperty(java.lang.String propertyName)
getProperty in class JComponentProxypropertyName - The name of the property to fetch.
ProxyTestObject.getProperties(),
ProxyTestObject.setProperty(String,Object),
ProxyTestObject.getRecognitionProperties(),
ProxyTestObject.addRecognitionProperty(String,Object,int)public java.lang.String getTestObjectClassName()
getTestObjectClassName in interface IProxyBasegetTestObjectClassName in class JavaGuiProxypublic java.lang.Object getParentObject()
null if this
object has no parent.
getParentObject in class ComponentProxypublic java.lang.String getName()
getName method will occasionally never return, it hangs!
This method always returns null to avoid this issue.
getName in class ComponentProxyprotected java.lang.String getTitle()
public boolean isOpaque()
isOpaque in interface com.rational.test.ft.object.interfaces.IGraphicalisOpaque in class JComponentProxy
public void addRecognitionProperty(java.lang.String property,
java.lang.Object value,
int weight)
getRecognitionProperties method.
addRecognitionProperty in class JavaProxyproperty - The recognition property name. Care should be taken to
avoid conflicts with existing property names.value - The value of the added recognition property.weight - The weight associated with this recognition property.
This value should be returned when the getRecognitionPropertyWeight method is called.JavaProxy.getRecognitionProperties(),
JavaProxy.getRecognitionPropertyWeight(String),
getProperty(String)public ProxyTestObject[] getMappableChildren()
getChildren to implement.
getMappableChildren in class ComponentProxypublic void processSingleMouseEvent(IMouseActionInfo action)
processSingleMouseEvent in class JavaGuiProxyaction - The event cache and other mouse state information
for this mouse action.MethodSpecificationpublic void close()
close in interface com.rational.test.ft.object.interfaces.IFramepublic void maximize()
maximize in interface com.rational.test.ft.object.interfaces.IFramepublic void minimize()
minimize in interface com.rational.test.ft.object.interfaces.IFramepublic void restore()
restore in interface com.rational.test.ft.object.interfaces.IFrame
public void resize(int width,
int height)
com.rational.test.ft.object.interfaces.IFrame
resize in interface com.rational.test.ft.object.interfaces.IFramewidth - The new width in pixels sizeheight - The new height in pixel sizepublic void move(java.awt.Point pt)
com.rational.test.ft.object.interfaces.IFrame
move in interface com.rational.test.ft.object.interfaces.IFramept - The point specified in java.awt.Point to move the applicationpublic boolean isIconified()
com.rational.test.ft.object.interfaces.IFrame
isIconified in interface com.rational.test.ft.object.interfaces.IFramepublic boolean isMaximized()
public void toFront()
com.rational.test.ft.object.interfaces.IInternalFrame
toFront in interface com.rational.test.ft.object.interfaces.IInternalFramepublic void contextHelp()
com.rational.test.ft.object.interfaces.IFrame
contextHelp in interface com.rational.test.ft.object.interfaces.IFrame
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||