public class Window extends Component
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
PROPERTY_TITLE |
CHILD_VISIBLE_CHANGED_PROPERTY, CHILDREN_CHANGED_PROPERTY, ENABLED_CHANGED_PROPERTY, FOCUS_NEXT_ID_CHANGED_PROPERTY, FOCUS_PREVIOUS_ID_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 and Description |
|---|
Window()
Creates a new window.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
add, add, addPropertyChangeListener, addPropertyChangeListener, dispose, firePropertyChange, get, getApplicationInstance, getBackground, getComponent, getComponent, getComponentCount, getComponents, getEventListenerList, getFocusNextId, getFocusPreviousId, getFont, getForeground, getId, getIndex, getLayoutData, getLayoutDirection, getLocale, getLocalStyle, getParent, getRenderId, getRenderIndexedProperty, getRenderIndexedProperty, getRenderLocale, getRenderProperty, getRenderProperty, getStyle, getStyleName, getVisibleComponent, getVisibleComponentCount, getVisibleComponents, hasEventListenerList, indexOf, init, isAncestorOf, isEnabled, isFocusTraversalParticipant, isRegistered, isRenderEnabled, isRenderVisible, isVisible, processInput, remove, remove, removeAll, removePropertyChangeListener, removePropertyChangeListener, set, setBackground, setComponents, setEnabled, setFocusNextId, setFocusPreviousId, setFocusTraversalParticipant, setFont, setForeground, setId, setIndex, setLayoutData, setLayoutDirection, setLocale, setRenderId, setStyle, setStyleName, setVisible, validate, verifyInput, visibleIndexOfpublic static final java.lang.String PROPERTY_TITLE
public ContentPane getContent()
public java.lang.String getTitle()
public boolean isValidChild(Component component)
ComponentComponent is valid to be added as a
child to this Component. Default implementation always
returns true, may be overridden to provide specific behavior.isValidChild in class Componentcomponent - the Component to evaluate as a childComponent is a valid childComponent.isValidChild(nextapp.echo.app.Component)public boolean isValidParent(Component parent)
Window may only be used as a
top-level component).isValidParent in class Componentparent - the Component to evaluate as a parentComponent is a valid parentComponent.isValidParent(nextapp.echo.app.Component)public void setContent(ContentPane newValue)
newValue - the new window contentpublic void setTitle(java.lang.String newValue)
newValue - the new window title