public class Window extends Panel
| Modifier and Type | Field and Description |
|---|---|
static Class[] |
SWING_CLASSES |
static String |
TYPE_NAME |
| Constructor and Description |
|---|
Window(Frame frame) |
Window(JDialog dialog) |
Window(JFrame frame) |
Window(JInternalFrame frame) |
Window(Window window) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addAttributes(Component component,
XmlWriter.Tag tag) |
void |
assertTitleContains(String expected)
Deprecated.
|
void |
assertTitleEquals(String expected)
Deprecated.
|
Assertion |
containsMenuBar() |
void |
dispose()
Closes the window by calling its internal
dispose() method. |
String |
getDescriptionTypeName()
Returns the name of the component as it will appear in the XML representation
returned by
UIComponent.getDescription(). |
Container |
getInternalAwtContainer() |
MenuBar |
getMenuBar() |
protected void |
getSubDescription(Container container,
XmlWriter.Tag tag) |
String |
getTitle() |
Assertion |
isModal() |
Assertion |
titleContains(String expected) |
Assertion |
titleEquals(String expected) |
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, getUIComponentsbackgroundEquals, backgroundNear, foregroundEquals, foregroundNear, getContainer, getContainer, getDescription, getDescription, getLabel, getName, isEnabled, isVisible, pressKey, releaseKey, typeKeypublic static final String TYPE_NAME
public static final Class[] SWING_CLASSES
public Window(JFrame frame)
public Window(JDialog dialog)
public Window(JInternalFrame frame)
public Window(Frame frame)
public Window(Window window)
public String getDescriptionTypeName()
UIComponentUIComponent.getDescription().getDescriptionTypeName in interface UIComponentgetDescriptionTypeName in class Panelprotected void addAttributes(Component component, XmlWriter.Tag tag)
addAttributes in class AbstractUIComponentpublic Assertion containsMenuBar()
public MenuBar getMenuBar()
public String getTitle()
public void assertTitleEquals(String expected)
titleEquals(String)public void assertTitleContains(String expected)
titleContains(String)protected void getSubDescription(Container container, XmlWriter.Tag tag)
getSubDescription in class AbstractUIComponentpublic Container getInternalAwtContainer()
public Assertion isModal()
public void dispose()
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–2016. All rights reserved.