IBM Rational Functional Tester
Version 8.1.1000
IBM Rational Functional Tester Proxy SDK Reference

Project Version 2.3

com.rational.test.ft.domain.java
Class SelfRegisteredTestDomainImplementation

java.lang.Object   extended by com.rational.test.ft.domain.TestDomain
      extended by com.rational.test.ft.domain.TestDomainImplementation
          extended by com.rational.test.ft.domain.java.TestDomainImplementationJava
              extended by com.rational.test.ft.domain.java.SelfRegisteredTestDomainImplementation

public class SelfRegisteredTestDomainImplementation
extends TestDomainImplementationJava

This class is available for Java applications that need to manually enable themselves for testing. Manually enblement is required when the JRE is unsupported or the environment does not allow for normal enablement. This is most obviously true for SWT stand-alone applications (SWT not running enbedded in Eclipse).

Since:
RFT1.0

Field Summary
protected static com.rational.test.ft.util.FtDebug debug
           
 
Fields inherited from class com.rational.test.ft.domain.java.TestDomainImplementationJava
IGNORE_MOUSE_DOUBLECLICK_THRESHOLD, IGNORE_MOUSE_DRAG
 
Constructor Summary
SelfRegisteredTestDomainImplementation()
           
SelfRegisteredTestDomainImplementation(java.lang.String domainName)
           
 
Method Summary
 boolean addTopLevelObject(java.lang.Object topLevelObject)
          Adds a window to the top-level windows vector.
 ProxyTestObject getTopLevelObject(com.rational.test.ft.sys.graphical.Window window)
          Returns the topLevelObject that matches the specified window.
 java.util.Enumeration getTopLevelObjects()
          Returns an enumeration for the top-level objects within this domain implementation.
 void removeTopLevelObject(java.lang.Object topLevelObject)
          Removes a window to the top-level windows vector.
 
Methods inherited from class com.rational.test.ft.domain.java.TestDomainImplementationJava
getActionRecordingFlags, getDomainProxy, getImplementationName, getProxiesForWindow, getProxy, getTheDomainImplementation, IAmTheOne, registerFromSwtUIThread, registerProxies
 
Methods inherited from class com.rational.test.ft.domain.TestDomainImplementation
equals, find, getDescribedObject, getTopLevelObject, supportVOMOptimization
 
Methods inherited from class com.rational.test.ft.domain.TestDomain
getName, isGraphical, isNamed
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

debug

protected static com.rational.test.ft.util.FtDebug debug
Constructor Detail

SelfRegisteredTestDomainImplementation

public SelfRegisteredTestDomainImplementation(java.lang.String domainName)

SelfRegisteredTestDomainImplementation

public SelfRegisteredTestDomainImplementation()
Method Detail

getTopLevelObjects

public java.util.Enumeration getTopLevelObjects()
Returns an enumeration for the top-level objects within this domain implementation.

Specified by:
getTopLevelObjects in class TestDomainImplementation

getTopLevelObject

public ProxyTestObject getTopLevelObject(com.rational.test.ft.sys.graphical.Window window)
Returns the topLevelObject that matches the specified window. This method should throw an exception if the domain is not isGraphical. If the Window cannot be matched, a null value should be returned.

Specified by:
getTopLevelObject in class TestDomainImplementation
Parameters:
window - The window object to match.
Returns:
The top level object matching window in this test domain or null if not found.

addTopLevelObject

public boolean addTopLevelObject(java.lang.Object topLevelObject)
Adds a window to the top-level windows vector. The static list is then available for access.

Parameters:
c - The top level window to add.
Returns:
Returns true if the window was added to the top level windows list and false otherwise.

removeTopLevelObject

public void removeTopLevelObject(java.lang.Object topLevelObject)
Removes a window to the top-level windows vector. The static list is then available for access.

Parameters:
w - The window to locate and remove from the top level windows list.