org.uispec4j
Class Window

java.lang.Object
  extended byorg.uispec4j.AbstractUIComponent
      extended byorg.uispec4j.Panel
          extended byorg.uispec4j.Window
All Implemented Interfaces:
UIComponent

public class Window
extends Panel

Wrapper for window components such as JFrame, JDialog, JInternalFrame.


Field Summary
static Class[] SWING_CLASSES
           
static String TYPE_NAME
           
 
Constructor Summary
Window(Frame frame)
           
Window(JDialog dialog)
           
Window(JFrame frame)
           
Window(JInternalFrame frame)
           
Window(Window window)
           
 
Method Summary
protected  void addAttributes(Component component, org.uispec4j.xml.XmlWriter.Tag tag)
           
 void assertTitleEquals(String expected)
           
 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, org.uispec4j.xml.XmlWriter.Tag tag)
           
 String getTitle()
           
 Assertion isModal()
           
 Assertion titleEquals(String expected)
           
 
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, foregroundEquals, getDescription, getDescription, getLabel, getName, isEnabled, isVisible
 
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 String TYPE_NAME
See Also:
Constant Field Values

SWING_CLASSES

public static final Class[] SWING_CLASSES
Constructor Detail

Window

public Window(JFrame frame)

Window

public Window(JDialog dialog)

Window

public Window(JInternalFrame frame)

Window

public Window(Frame frame)

Window

public Window(Window window)
Method Detail

getDescriptionTypeName

public 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(Component component,
                             org.uispec4j.xml.XmlWriter.Tag tag)
Overrides:
addAttributes in class AbstractUIComponent

getMenuBar

public MenuBar getMenuBar()

getTitle

public String getTitle()

titleEquals

public Assertion titleEquals(String expected)

assertTitleEquals

public void assertTitleEquals(String expected)

getSubDescription

protected void getSubDescription(Container container,
                                 org.uispec4j.xml.XmlWriter.Tag tag)
Overrides:
getSubDescription in class AbstractUIComponent

getInternalAwtContainer

public Container getInternalAwtContainer()

isModal

public Assertion isModal()


Copyright © 2004-2007 Design-up. All Rights Reserved.