com.rational.test.ft.domain.java
Class SelfRegisteredTestDomainImplementation
java.lang.Object
com.rational.test.ft.domain.TestDomain
com.rational.test.ft.domain.TestDomainImplementation
com.rational.test.ft.domain.java.TestDomainImplementationJava
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
|
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 java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
debug
protected static com.rational.test.ft.util.FtDebug debug
SelfRegisteredTestDomainImplementation
public SelfRegisteredTestDomainImplementation(java.lang.String domainName)
SelfRegisteredTestDomainImplementation
public SelfRegisteredTestDomainImplementation()
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.