Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## nextapp.echo2.app
Class Window

    java.lang.Object
      nextapp.echo2.app.Component
          nextapp.echo2.app.Window

All Implemented Interfaces:
  java.io.Serializable, RenderIdSupport

    public class Window

extends Component

A top-level window.

See Also:
  Serialized Form

Field Summary
`static java.lang.String` | `PROPERTY_TITLE`

Fields inherited from class nextapp.echo2.app.Component
`CHILDREN_CHANGED_PROPERTY, ENABLED_CHANGED_PROPERTY, FOCUS_TRAVERSAL_INDEX_CHANGED_PROPERTY, FOCUS_TRAVERSAL_PARTICIPANT_CHANGED_PROPERTY, LAYOUT_DIRECTION_CHANGED_PROPERTY, LOCALE_CHANGED_PROPERTY, PROPERTY_BACKGROUND, PROPERTY_FONT, PROPERTY_FOREGROUND, PROPERTY_LAYOUT_DATA, STYLE_CHANGED_PROPERTY, STYLE_NAME_CHANGED_PROPERTY, VISIBLE_CHANGED_PROPERTY`

Constructor Summary
`Window()` Creates a new window.

Method Summary
`ContentPane` | `getContent()` Returns the content of the window.
`java.lang.String` | `getTitle()` Returns the window title.
`boolean` | `isValidChild(Component component)` Determines if a given `Component` is valid to be added as a child to this `Component`.
`boolean` | `isValidParent(Component parent)` Reject all parents (`Window` may only be used as a top-level component).
`void` | `setContent(ContentPane newValue)` Sets the content of the window.
`void` | `setTitle(java.lang.String newValue)` Sets the window title.

Methods inherited from class nextapp.echo2.app.Component
`add, add, addPropertyChangeListener, dispose, firePropertyChange, getApplicationInstance, getBackground, getComponent, getComponent, getComponentCount, getComponents, getEventListenerList, getFocusTraversalIndex, getFont, getForeground, getId, getIndexedProperty, getLayoutData, getLayoutDirection, getLocale, getParent, getProperty, getRenderId, getRenderIndexedProperty, getRenderIndexedProperty, getRenderLayoutDirection, getRenderLocale, getRenderProperty, getRenderProperty, getStyle, getStyleName, getVisibleComponent, getVisibleComponentCount, getVisibleComponents, hasEventListenerList, indexOf, init, isAncestorOf, isEnabled, isFocusTraversalParticipant, isRegistered, isRenderEnabled, isRenderVisible, isVisible, processInput, remove, remove, removeAll, removePropertyChangeListener, setBackground, setEnabled, setFocusTraversalIndex, setFocusTraversalParticipant, setFont, setForeground, setId, setIndexedProperty, setLayoutData, setLayoutDirection, setLocale, setProperty, setStyle, setStyleName, setVisible, validate, verifyInput, visibleIndexOf`

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Field Detail

### PROPERTY_TITLE

    public static final java.lang.String PROPERTY_TITLE

See Also:
  Constant Field Values

Constructor Detail

### Window

    public Window()

  Creates a new window.

Method Detail

### getContent

    public ContentPane getContent()

  Returns the content of the window.

  Returns:
    the content of the window

### getTitle

    public java.lang.String getTitle()

  Returns the window title.

  Returns:
    the window title

### isValidChild

    public boolean isValidChild(Component component)

  Description copied from class: `Component`
  Determines if a given `Component` is valid to be added as a child to this `Component`. Default implementation always returns true, may be overridden to provide specific behavior.

  Overrides:
    `isValidChild` in class `Component`
  Parameters:
    `component` - the `Component` to evaluate as a child
  Returns:
    true if the `Component` is a valid child
  See Also:
    `Component.isValidChild(nextapp.echo2.app.Component)`

### isValidParent

    public boolean isValidParent(Component parent)

  Reject all parents (`Window` may only be used as a top-level component).

  Overrides:
    `isValidParent` in class `Component`
  Parameters:
    `parent` - the `Component` to evaluate as a parent
  Returns:
    true if the `Component` is a valid parent
  See Also:
    `Component.isValidParent(nextapp.echo2.app.Component)`

### setContent

    public void setContent(ContentPane newValue)

  Sets the content of the window.

  Parameters:
    `newValue` - the new window content

### setTitle

    public void setTitle(java.lang.String newValue)

  Sets the window title.

  Parameters:
    `newValue` - the new window title

Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD