org.uispec4j
Class Desktop
java.lang.Object
org.uispec4j.AbstractUIComponent
org.uispec4j.Desktop
- All Implemented Interfaces:
- UIComponent
public class Desktop
- extends AbstractUIComponent
Wrapper for Multiple Desktop Interface (MDI) widgets implemented as JDesktopPane components.
|
Constructor Summary |
Desktop(javax.swing.JDesktopPane jDesktopPane)
|
| 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 |
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
Desktop
public Desktop(javax.swing.JDesktopPane jDesktopPane)
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.