IBM Rational Functional Tester
Version 6.1
IBM Rational Functional Tester API Reference

Project Version 2.0

com.rational.test.ft.object.interfaces
Interface IWindow

All Superinterfaces:
IFrame, IGraphical, ITopWindow

public interface IWindow
extends IGraphical, ITopWindow

Provides access to the native window management system; any use of this interface is likely to be platform specific.

Since:
RFT1.0

Field Summary
 
Fields inherited from interface com.rational.test.ft.object.interfaces.ITopWindow
INPUTCHARS_METHOD, INPUTKEYS_METHOD
 
Method Summary
 IWindow[] getChildren()
          Returns an array of the children of this window.
 long getHandle()
          Returns the native window handle for the object.
 int getId()
          Returns the control ID (on Microsoft Windows) for the window.
 IWindow[] getOwned()
          Returns an array of the windows owned by this window.
 IWindow getOwner()
          Returns the owner of this window.
 IWindow getParent()
          Returns the parent of this window.
 int getPid()
          Returns the process ID for the window.
 java.lang.String getText()
          Returns the text for the window.
 IWindow getTopParent()
          Returns the topmost parent of this window.
 java.lang.String getWindowClassName()
          Returns the classname of the window.
 boolean isTopLevel()
          Returns true if this window is a top window (that is, not a child of any window).
 
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, isOpaque, isPointInObject, isShowing, mouseMove, mouseMove, nClick, nClickDrag, nClickDragToScreenPoint
 
Methods inherited from interface com.rational.test.ft.object.interfaces.ITopWindow
activate, clickDisabled, inputChars, inputKeys
 
Methods inherited from interface com.rational.test.ft.object.interfaces.IFrame
close, contextHelp, isIconified, maximize, minimize, move, resize, restore
 

Method Detail

getChildren

public IWindow[] getChildren()
Returns an array of the children of this window. If this window has no children, a 0-length array is returned.

Since:
RFT1.0

getParent

public IWindow getParent()
Returns the parent of this window. If this window has no parent, null is returned.

Since:
RFT1.0

getTopParent

public IWindow getTopParent()
Returns the topmost parent of this window. If this window is a topmost window, this window is returned.

Since:
RFT1.0

getOwner

public IWindow getOwner()
Returns the owner of this window. If this window has no owner, null is returned.

Since:
RFT1.0

getOwned

public IWindow[] getOwned()
Returns an array of the windows owned by this window. If this window does not own any other windows, a 0-length array is returned.

Since:
RFT1.0

isTopLevel

public boolean isTopLevel()
Returns true if this window is a top window (that is, not a child of any window). Returns false if this window has a parent.

Since:
RFT1.0

getHandle

public long getHandle()
Returns the native window handle for the object.

Since:
RFT1.0

getText

public java.lang.String getText()
Returns the text for the window.

Since:
RFT1.0

getWindowClassName

public java.lang.String getWindowClassName()
Returns the classname of the window.

Since:
RFT1.0

getPid

public int getPid()
           throws NotSupportedOnUnixException
Returns the process ID for the window. This is not supported on UNIX platforms.

Throws:
NotSupportedOnUnixException
Since:
RFT1.0

getId

public int getId()
Returns the control ID (on Microsoft Windows) for the window. This returns 0 on UNIX platforms.

Since:
RFT1.0