org.uispec4j
Class Window
java.lang.Object
org.uispec4j.AbstractUIComponent
org.uispec4j.Panel
org.uispec4j.Window
- All Implemented Interfaces:
- UIComponent
public class Window
- extends Panel
Wrapper for window components such as JFrame, JDialog, JInternalFrame.
|
Constructor Summary |
Window(java.awt.Frame frame)
|
Window(javax.swing.JDialog dialog)
|
Window(javax.swing.JFrame frame)
|
Window(javax.swing.JInternalFrame frame)
|
Window(java.awt.Window window)
|
| Methods inherited from class org.uispec4j.Panel |
containsComponent, containsLabel, containsSwingComponent, containsSwingComponent, containsUIComponent, containsUIComponent, findSwingComponent, findSwingComponent, findSwingComponent, findUIComponent, findUIComponent, findUIComponent, getAwtComponent, getAwtContainer, getButton, getButton, getButton, getCheckBox, getCheckBox, getCheckBox, getComboBox, getComboBox, getComboBox, getDateSpinner, getDateSpinner, getDateSpinner, getDesktop, getDesktop, getDesktop, getInputTextBox, getInputTextBox, getListBox, getListBox, getListBox, getListSpinner, getListSpinner, getListSpinner, getNumberSpinner, getNumberSpinner, getNumberSpinner, getPanel, getPanel, getPanel, getPasswordField, getPasswordField, getPasswordField, getProgressBar, getProgressBar, getProgressBar, getRadioButton, getRadioButton, getRadioButton, getSlider, getSlider, getSlider, getSpinner, getSpinner, getSpinner, getSwingComponents, getSwingComponents, getSwingComponents, getTabGroup, getTabGroup, getTabGroup, getTable, getTable, getTable, getTextBox, getTextBox, getTextBox, getToggleButton, getToggleButton, getToggleButton, getTree, getTree, getTree, getUIComponents, getUIComponents, getUIComponents |
| Methods inherited from class org.uispec4j.AbstractUIComponent |
backgroundEquals, backgroundNear, foregroundEquals, foregroundNear, getContainer, getContainer, getDescription, getDescription, getLabel, getName, 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
Window
public Window(javax.swing.JFrame frame)
Window
public Window(javax.swing.JDialog dialog)
Window
public Window(javax.swing.JInternalFrame frame)
Window
public Window(java.awt.Frame frame)
Window
public Window(java.awt.Window window)
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().
- Specified by:
getDescriptionTypeName in interface UIComponent- Overrides:
getDescriptionTypeName in class Panel
addAttributes
protected void addAttributes(java.awt.Component component,
XmlWriter.Tag tag)
- Overrides:
addAttributes in class AbstractUIComponent
containsMenuBar
public Assertion containsMenuBar()
getMenuBar
public MenuBar getMenuBar()
getTitle
public java.lang.String getTitle()
titleEquals
public Assertion titleEquals(java.lang.String expected)
titleContains
public Assertion titleContains(java.lang.String expected)
assertTitleEquals
public void assertTitleEquals(java.lang.String expected)
- Deprecated.
- See Also:
titleEquals(String)
assertTitleContains
public void assertTitleContains(java.lang.String expected)
- Deprecated.
- See Also:
titleContains(String)
getSubDescription
protected void getSubDescription(java.awt.Container container,
XmlWriter.Tag tag)
- Overrides:
getSubDescription in class AbstractUIComponent
getInternalAwtContainer
public java.awt.Container getInternalAwtContainer()
isModal
public Assertion isModal()
dispose
public void dispose()
- Closes the window by calling its internal
dispose() method. This is mainly used for unit
tests, when there is no "functional" way to close the window (for instance a "Close" button)
Copyright © 2004-2010. All Rights Reserved.