org.uispec4j
Class Desktop

java.lang.Object
  extended by org.uispec4j.AbstractUIComponent
      extended by org.uispec4j.Desktop
All Implemented Interfaces:
UIComponent

public class Desktop
extends AbstractUIComponent

Wrapper for Multiple Desktop Interface (MDI) widgets implemented as JDesktopPane components.


Field Summary
static java.lang.Class[] SWING_CLASSES
           
static java.lang.String TYPE_NAME
           
 
Constructor Summary
Desktop(javax.swing.JDesktopPane jDesktopPane)
           
 
Method Summary
 Assertion containsWindow(java.lang.String title)
           
 javax.swing.JDesktopPane getAwtComponent()
          Returns the Java GUI component represented by this object.
 java.lang.String getDescriptionTypeName()
          Returns the name of the component as it will appear in the XML representation returned by UIComponent.getDescription().
 Window getWindow(java.lang.String title)
          Returns a window given its title, and waits if it is not available yet.
 Window[] getWindows()
          Returs all the internal windows contained in the desktop.
 
Methods inherited from class org.uispec4j.AbstractUIComponent
addAttributes, backgroundEquals, backgroundNear, foregroundEquals, foregroundNear, getContainer, getContainer, getDescription, getDescription, getLabel, getName, getSubDescription, isEnabled, isVisible, pressKey, releaseKey, typeKey
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TYPE_NAME

public static final java.lang.String TYPE_NAME
See Also:
Constant Field Values

SWING_CLASSES

public static final java.lang.Class[] SWING_CLASSES
Constructor Detail

Desktop

public Desktop(javax.swing.JDesktopPane jDesktopPane)
Method Detail

getAwtComponent

public javax.swing.JDesktopPane getAwtComponent()
Description copied from interface: UIComponent
Returns the Java GUI component represented by this object.


getDescriptionTypeName

public java.lang.String getDescriptionTypeName()
Description copied from interface: UIComponent
Returns the name of the component as it will appear in the XML representation returned by UIComponent.getDescription().


getWindows

public Window[] getWindows()
Returs all the internal windows contained in the desktop.


containsWindow

public Assertion containsWindow(java.lang.String title)

getWindow

public Window getWindow(java.lang.String title)
                 throws ComponentAmbiguityException
Returns a window given its title, and waits if it is not available yet. This method will fail after a given timeout if the window is not found.

Throws:
ComponentAmbiguityException
See Also:
UISpec4J.setWindowInterceptionTimeLimit(long)


Copyright © 2004-2010. All Rights Reserved.