NextApp Echo3
v3.0.b4

nextapp.echo.app
Class WindowPane

java.lang.Object
  extended by nextapp.echo.app.Component
      extended by nextapp.echo.app.WindowPane
All Implemented Interfaces:
java.io.Serializable, FloatingPane, ModalSupport, Pane, PaneContainer, RenderIdSupport

public class WindowPane
extends Component
implements FloatingPane, ModalSupport, PaneContainer

WindowPane component: displays content in a movable and/or resizable window. May only be added to a ContentPane. May contain at most one child component. May contain Panes as children.

See Also:
Serialized Form

Field Summary
static int DISPOSE_ON_CLOSE
          A constant for the defaultCloseOperation property indicating that a window should be removed from the component hierarchy when a user attempts to close it.
static int DO_NOTHING_ON_CLOSE
          A constant for the defaultCloseOperation property indicating that nothing should be done when the user attempts to close a window.
static int HIDE_ON_CLOSE
          A constant for the defaultCloseOperation property indicating that a window should be hidden when the user attempts to close it.
static java.lang.String INPUT_CLOSE
           
static java.lang.String PROPERTY_BACKGROUND_IMAGE
           
static java.lang.String PROPERTY_BORDER
           
static java.lang.String PROPERTY_CLOSABLE
           
static java.lang.String PROPERTY_CLOSE_ICON
           
static java.lang.String PROPERTY_CLOSE_ICON_INSETS
           
static java.lang.String PROPERTY_CLOSE_ROLLOVER_ICON
           
static java.lang.String PROPERTY_CONTENT_HEIGHT
           
static java.lang.String PROPERTY_CONTENT_WIDTH
           
static java.lang.String PROPERTY_CONTROLS_INSETS
           
static java.lang.String PROPERTY_CONTROLS_SPACING
           
static java.lang.String PROPERTY_DEFAULT_CLOSE_OPERATION
           
static java.lang.String PROPERTY_HEIGHT
           
static java.lang.String PROPERTY_ICON
           
static java.lang.String PROPERTY_ICON_INSETS
           
static java.lang.String PROPERTY_INSETS
           
static java.lang.String PROPERTY_MAXIMIZE_ENABLED
           
static java.lang.String PROPERTY_MAXIMIZE_ICON
           
static java.lang.String PROPERTY_MAXIMIZE_ICON_INSETS
           
static java.lang.String PROPERTY_MAXIMIZE_ROLLOVER_ICON
           
static java.lang.String PROPERTY_MAXIMUM_HEIGHT
           
static java.lang.String PROPERTY_MAXIMUM_WIDTH
           
static java.lang.String PROPERTY_MINIMIZE_ENABLED
           
static java.lang.String PROPERTY_MINIMIZE_ICON
           
static java.lang.String PROPERTY_MINIMIZE_ICON_INSETS
           
static java.lang.String PROPERTY_MINIMIZE_ROLLOVER_ICON
           
static java.lang.String PROPERTY_MINIMUM_HEIGHT
           
static java.lang.String PROPERTY_MINIMUM_WIDTH
           
static java.lang.String PROPERTY_MOVABLE
           
static java.lang.String PROPERTY_POSITION_X
           
static java.lang.String PROPERTY_POSITION_Y
           
static java.lang.String PROPERTY_RESIZABLE
           
static java.lang.String PROPERTY_TITLE
           
static java.lang.String PROPERTY_TITLE_BACKGROUND
           
static java.lang.String PROPERTY_TITLE_BACKGROUND_IMAGE
           
static java.lang.String PROPERTY_TITLE_FONT
           
static java.lang.String PROPERTY_TITLE_FOREGROUND
           
static java.lang.String PROPERTY_TITLE_HEIGHT
           
static java.lang.String PROPERTY_TITLE_INSETS
           
static java.lang.String PROPERTY_WIDTH
           
static java.lang.String PROPERTY_Z_INDEX
           
static java.lang.String Z_INDEX_CHANGED_PROPERTY
          Deprecated. Will be removed prior to 3.0.
 
Fields inherited from class nextapp.echo.app.Component
CHILD_VISIBLE_CHANGED_PROPERTY, 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
 
Fields inherited from interface nextapp.echo.app.ModalSupport
MODAL_CHANGED_PROPERTY
 
Constructor Summary
WindowPane()
          Creates a new WindowPane.
WindowPane(java.lang.String title, Extent width, Extent height)
          Creates a new WindowPane with the specified title and dimensions.
 
Method Summary
 void addWindowPaneListener(WindowPaneListener l)
          Adds a WindowPaneListener to receive event notifications.
protected  void fireWindowClosing()
          Notifies WindowPaneListeners that the user has requested to close this WindowPane.
 FillImage getBackgroundImage()
          Returns the background image of the WindowPane.
 FillImageBorder getBorder()
          Returns the border which surrounds the entire WindowPane.
 ImageReference getCloseIcon()
          Returns the close button icon.
 Insets getCloseIconInsets()
          Returns the inset margin around the close button icon.
 ImageReference getCloseRolloverIcon()
          Returns the close button rollover icon.
 Extent getContentHeight()
          Returns the configured height of the content region of the window.
 Extent getContentWidth()
          Returns the configured width of the content region of the window.
 Insets getControlsInsets()
          Returns the inset margin around the window controls (e.g., close, minimize, and maximize buttons)
 Extent getControlsSpacing()
          Returns the spacing between the window control icons (e.g., close, minimize, and maximize buttons).
 int getDefaultCloseOperation()
          Returns the default close operation.
 Extent getHeight()
          Returns the configured height of the overall window, including its border.
 ImageReference getIcon()
          Returns the icon displayed in the title region.
 Insets getIconInsets()
          Returns the inset margin around the icon.
 Insets getInsets()
          Returns the inset of the window content.
 ImageReference getMaximizeIcon()
          Returns the maximize button icon.
 Insets getMaximizeIconInsets()
          Returns the inset margin around the maximize button icon.
 ImageReference getMaximizeRolloverIcon()
          Returns the maximize button rollover icon.
 Extent getMaximumHeight()
          Returns the maximum height of the content region of the WindowPane.
 Extent getMaximumWidth()
          Returns the maximum width of the content region of the WindowPane.
 ImageReference getMinimizeIcon()
          Returns the minimize button icon.
 Insets getMinimizeIconInsets()
          Returns the inset margin around the minimize button icon.
 ImageReference getMinimizeRolloverIcon()
          Returns the minimize button rollover icon.
 Extent getMinimumHeight()
          Returns the minimum height of the content region of the WindowPane.
 Extent getMinimumWidth()
          Returns the minimum width of the content region of the WindowPane.
 Extent getPositionX()
          Returns the horizontal (Y) position of the WindowPane with respect to its container.
 Extent getPositionY()
          Returns the vertical (Y) position of the WindowPane with respect to its container.
 java.lang.String getTitle()
          Returns the title of the WindowPane.
 Color getTitleBackground()
          Returns the background color of the title region.
 FillImage getTitleBackgroundImage()
          Returns the background image of the title region.
 Font getTitleFont()
          Returns the font of the title region.
 Color getTitleForeground()
          Returns the foreground color of the title region.
 Extent getTitleHeight()
          Returns the height of the title region.
 Insets getTitleInsets()
          Returns the insets of the title region.
 Extent getWidth()
          Returns the configured width of the overall window, including its border.
 int getZIndex()
          Returns the z-index of the window with respect to its parent ContentPane.
 boolean isClosable()
          Determines if the window is closable via a provided close button in the title bar.
 boolean isMaximizeEnabled()
          Determines if the window can be maximized via a provided close button in the title bar.
 boolean isMinimizeEnabled()
          Determines if the window can be minimized via a provided close button in the title bar.
 boolean isModal()
          Determines the modal state of this component.
 boolean isMovable()
          Determines if the window is movable.
 boolean isResizable()
          Determines if the window is resizable.
 boolean isValidChild(Component component)
          Limit content to a single child.
 boolean isValidParent(Component parent)
          Only allow ContentPanes as parents.
 void processInput(java.lang.String inputName, java.lang.Object inputValue)
          Processes client input specific to the Component received from the UpdateManager.
 void removeWindowPaneListener(WindowPaneListener l)
          Removes a WindowPaneListener from receiving event notifications.
 void setBackgroundImage(FillImage newValue)
          Sets the background image of the WindowPane.
 void setBorder(FillImageBorder newValue)
          Sets the border which surrounds the entire WindowPane.
 void setClosable(boolean newValue)
          Sets whether the window is closable via a provided close button in the title bar.
 void setCloseIcon(ImageReference newValue)
          Sets the close button icon.
 void setCloseIconInsets(Insets newValue)
          Sets the inset margin around the close button icon.
 void setCloseRolloverIcon(ImageReference newValue)
          Sets the close button rollover icon.
 void setContentHeight(Extent newValue)
          Sets the content height of the WindowPane.
 void setContentWidth(Extent newValue)
          Sets the content width of the WindowPane.
 void setControlsInsets(Extent newValue)
          Sets the inset margin around the window controls (e.g., close, minimize, and maximize buttons).
 void setControlsSpacing(Extent newValue)
          Sets the spacing between the window control icons (e.g., close, minimize, and maximize buttons).
 void setDefaultCloseOperation(int newValue)
          Sets the default close operation.
 void setHeight(Extent newValue)
          Sets the overall height of the WindowPane, including its border.
 void setIcon(ImageReference newValue)
          Sets the icon displayed in the title region.
 void setIconInsets(Insets newValue)
          Sets the inset margin around the icon.
 void setInsets(Insets newValue)
          Sets the inset of the window content.
 void setMaximizeEnabled(boolean newValue)
          Sets whether the window can be maximized via a provided button in the title bar.
 void setMaximizeIcon(ImageReference newValue)
          Sets the maximize button icon.
 void setMaximizeIconInsets(Insets newValue)
          Sets the inset margin around the maximize button icon.
 void setMaximizeRolloverIcon(ImageReference newValue)
          Sets the maximize button rollover icon.
 void setMaximumHeight(Extent newValue)
          Sets the maximum height of the content region of the WindowPane.
 void setMaximumWidth(Extent newValue)
          Sets the maximum width of the content region of the WindowPane.
 void setMinimizeEnabled(boolean newValue)
          Sets whether the window can be minimized via a provided button in the title bar.
 void setMinimizeIcon(ImageReference newValue)
          Sets the minimize button icon.
 void setMinimizeIconInsets(Insets newValue)
          Sets the inset margin around the minimize button icon.
 void setMinimizeRolloverIcon(ImageReference newValue)
          Sets the minimize button rollover icon.
 void setMinimumHeight(Extent newValue)
          Sets the minimum height of the content region of the WindowPane.
 void setMinimumWidth(Extent newValue)
          Sets the minimum width of the content region of the WindowPane.
 void setModal(boolean newValue)
          Sets the modal state of the Component.
 void setMovable(boolean newValue)
          Sets whether the window is movable.
 void setPositionX(Extent newValue)
          Sets the horizontal (X) position of the WindowPane with respect to its container.
 void setPositionY(Extent newValue)
          Sets the vertical (Y) position of the WindowPane with respect to its container.
 void setResizable(boolean newValue)
          Sets whether the window is resizable.
 void setTitle(java.lang.String newValue)
          Sets the title of the WindowPane.
 void setTitleBackground(Color newValue)
          Sets the background color of the title region.
 void setTitleBackgroundImage(FillImage newValue)
          Sets the background image of the title region.
 void setTitleFont(Font newValue)
          Sets the font of the title region.
 void setTitleForeground(Color newValue)
          Sets the foreground color of the title region.
 void setTitleHeight(Extent newValue)
          Sets the height of the title region.
 void setTitleInsets(Insets newValue)
          Sets the insets of the title region.
 void setWidth(Extent newValue)
          Sets the overall width of the WindowPane, including its border.
 void setZIndex(int newValue)
          Sets the z-index of the window with respect to its parent ContentPane.
 void userClose()
          Processes a user request to close the window (via the close button).
 
Methods inherited from class nextapp.echo.app.Component
add, add, addPropertyChangeListener, addPropertyChangeListener, dispose, firePropertyChange, get, getApplicationInstance, getBackground, getComponent, getComponent, getComponentCount, getComponents, getEventListenerList, getFocusTraversalIndex, 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, remove, remove, removeAll, removePropertyChangeListener, removePropertyChangeListener, set, setBackground, setComponents, setEnabled, setFocusTraversalIndex, setFocusTraversalParticipant, setFont, setForeground, setId, setIndex, setLayoutData, setLayoutDirection, setLocale, setRenderId, 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

INPUT_CLOSE

public static final java.lang.String INPUT_CLOSE
See Also:
Constant Field Values

PROPERTY_BACKGROUND_IMAGE

public static final java.lang.String PROPERTY_BACKGROUND_IMAGE
See Also:
Constant Field Values

PROPERTY_BORDER

public static final java.lang.String PROPERTY_BORDER
See Also:
Constant Field Values

PROPERTY_CLOSABLE

public static final java.lang.String PROPERTY_CLOSABLE
See Also:
Constant Field Values

PROPERTY_CLOSE_ICON

public static final java.lang.String PROPERTY_CLOSE_ICON
See Also:
Constant Field Values

PROPERTY_CLOSE_ICON_INSETS

public static final java.lang.String PROPERTY_CLOSE_ICON_INSETS
See Also:
Constant Field Values

PROPERTY_CLOSE_ROLLOVER_ICON

public static final java.lang.String PROPERTY_CLOSE_ROLLOVER_ICON
See Also:
Constant Field Values

PROPERTY_CONTENT_HEIGHT

public static final java.lang.String PROPERTY_CONTENT_HEIGHT
See Also:
Constant Field Values

PROPERTY_CONTENT_WIDTH

public static final java.lang.String PROPERTY_CONTENT_WIDTH
See Also:
Constant Field Values

PROPERTY_CONTROLS_INSETS

public static final java.lang.String PROPERTY_CONTROLS_INSETS
See Also:
Constant Field Values

PROPERTY_CONTROLS_SPACING

public static final java.lang.String PROPERTY_CONTROLS_SPACING
See Also:
Constant Field Values

PROPERTY_DEFAULT_CLOSE_OPERATION

public static final java.lang.String PROPERTY_DEFAULT_CLOSE_OPERATION
See Also:
Constant Field Values

PROPERTY_HEIGHT

public static final java.lang.String PROPERTY_HEIGHT
See Also:
Constant Field Values

PROPERTY_ICON

public static final java.lang.String PROPERTY_ICON
See Also:
Constant Field Values

PROPERTY_ICON_INSETS

public static final java.lang.String PROPERTY_ICON_INSETS
See Also:
Constant Field Values

PROPERTY_INSETS

public static final java.lang.String PROPERTY_INSETS
See Also:
Constant Field Values

PROPERTY_MAXIMIZE_ENABLED

public static final java.lang.String PROPERTY_MAXIMIZE_ENABLED
See Also:
Constant Field Values

PROPERTY_MAXIMIZE_ICON

public static final java.lang.String PROPERTY_MAXIMIZE_ICON
See Also:
Constant Field Values

PROPERTY_MAXIMIZE_ICON_INSETS

public static final java.lang.String PROPERTY_MAXIMIZE_ICON_INSETS
See Also:
Constant Field Values

PROPERTY_MAXIMIZE_ROLLOVER_ICON

public static final java.lang.String PROPERTY_MAXIMIZE_ROLLOVER_ICON
See Also:
Constant Field Values

PROPERTY_MAXIMUM_HEIGHT

public static final java.lang.String PROPERTY_MAXIMUM_HEIGHT
See Also:
Constant Field Values

PROPERTY_MAXIMUM_WIDTH

public static final java.lang.String PROPERTY_MAXIMUM_WIDTH
See Also:
Constant Field Values

PROPERTY_MINIMIZE_ENABLED

public static final java.lang.String PROPERTY_MINIMIZE_ENABLED
See Also:
Constant Field Values

PROPERTY_MINIMIZE_ICON

public static final java.lang.String PROPERTY_MINIMIZE_ICON
See Also:
Constant Field Values

PROPERTY_MINIMIZE_ICON_INSETS

public static final java.lang.String PROPERTY_MINIMIZE_ICON_INSETS
See Also:
Constant Field Values

PROPERTY_MINIMIZE_ROLLOVER_ICON

public static final java.lang.String PROPERTY_MINIMIZE_ROLLOVER_ICON
See Also:
Constant Field Values

PROPERTY_MINIMUM_HEIGHT

public static final java.lang.String PROPERTY_MINIMUM_HEIGHT
See Also:
Constant Field Values

PROPERTY_MINIMUM_WIDTH

public static final java.lang.String PROPERTY_MINIMUM_WIDTH
See Also:
Constant Field Values

PROPERTY_MOVABLE

public static final java.lang.String PROPERTY_MOVABLE
See Also:
Constant Field Values

PROPERTY_POSITION_X

public static final java.lang.String PROPERTY_POSITION_X
See Also:
Constant Field Values

PROPERTY_POSITION_Y

public static final java.lang.String PROPERTY_POSITION_Y
See Also:
Constant Field Values

PROPERTY_RESIZABLE

public static final java.lang.String PROPERTY_RESIZABLE
See Also:
Constant Field Values

PROPERTY_TITLE

public static final java.lang.String PROPERTY_TITLE
See Also:
Constant Field Values

PROPERTY_TITLE_BACKGROUND

public static final java.lang.String PROPERTY_TITLE_BACKGROUND
See Also:
Constant Field Values

PROPERTY_TITLE_BACKGROUND_IMAGE

public static final java.lang.String PROPERTY_TITLE_BACKGROUND_IMAGE
See Also:
Constant Field Values

PROPERTY_TITLE_FONT

public static final java.lang.String PROPERTY_TITLE_FONT
See Also:
Constant Field Values

PROPERTY_TITLE_FOREGROUND

public static final java.lang.String PROPERTY_TITLE_FOREGROUND
See Also:
Constant Field Values

PROPERTY_TITLE_HEIGHT

public static final java.lang.String PROPERTY_TITLE_HEIGHT
See Also:
Constant Field Values

PROPERTY_TITLE_INSETS

public static final java.lang.String PROPERTY_TITLE_INSETS
See Also:
Constant Field Values

PROPERTY_WIDTH

public static final java.lang.String PROPERTY_WIDTH
See Also:
Constant Field Values

PROPERTY_Z_INDEX

public static final java.lang.String PROPERTY_Z_INDEX
See Also:
Constant Field Values

Z_INDEX_CHANGED_PROPERTY

public static final java.lang.String Z_INDEX_CHANGED_PROPERTY
Deprecated. Will be removed prior to 3.0.
See Also:
PROPERTY_Z_INDEX, Constant Field Values

DO_NOTHING_ON_CLOSE

public static final int DO_NOTHING_ON_CLOSE
A constant for the defaultCloseOperation property indicating that nothing should be done when the user attempts to close a window.

See Also:
Constant Field Values

HIDE_ON_CLOSE

public static final int HIDE_ON_CLOSE
A constant for the defaultCloseOperation property indicating that a window should be hidden when the user attempts to close it.

See Also:
Constant Field Values

DISPOSE_ON_CLOSE

public static final int DISPOSE_ON_CLOSE
A constant for the defaultCloseOperation property indicating that a window should be removed from the component hierarchy when a user attempts to close it.

See Also:
Constant Field Values
Constructor Detail

WindowPane

public WindowPane()
Creates a new WindowPane.


WindowPane

public WindowPane(java.lang.String title,
                  Extent width,
                  Extent height)
Creates a new WindowPane with the specified title and dimensions.

Parameters:
title - the title
width - The width
height - The height
Method Detail

addWindowPaneListener

public void addWindowPaneListener(WindowPaneListener l)
Adds a WindowPaneListener to receive event notifications.

Parameters:
l - the WindowPaneListener to add

fireWindowClosing

protected void fireWindowClosing()
Notifies WindowPaneListeners that the user has requested to close this WindowPane.


getBackgroundImage

public FillImage getBackgroundImage()
Returns the background image of the WindowPane.

Returns:
the background image

getBorder

public FillImageBorder getBorder()
Returns the border which surrounds the entire WindowPane.

Returns:
border

getCloseIcon

public ImageReference getCloseIcon()
Returns the close button icon.

Returns:
the icon

getCloseIconInsets

public Insets getCloseIconInsets()
Returns the inset margin around the close button icon.

Returns:
the inset margin

getCloseRolloverIcon

public ImageReference getCloseRolloverIcon()
Returns the close button rollover icon.

Returns:
the icon

getContentHeight

public Extent getContentHeight()
Returns the configured height of the content region of the window.

Returns:
the height

getContentWidth

public Extent getContentWidth()
Returns the configured width of the content region of the window.

Returns:
the width

getControlsSpacing

public Extent getControlsSpacing()
Returns the spacing between the window control icons (e.g., close, minimize, and maximize buttons).

Returns:
the controls spacing

getControlsInsets

public Insets getControlsInsets()
Returns the inset margin around the window controls (e.g., close, minimize, and maximize buttons)

Returns:
the inset margin

getDefaultCloseOperation

public int getDefaultCloseOperation()
Returns the default close operation.

Returns:
the default close operation, one of the following values:
  • DO_NOTHING_ON_CLOSE
  • HIDE_ON_CLOSE
  • DISPOSE_ON_CLOSE

getHeight

public Extent getHeight()
Returns the configured height of the overall window, including its border.

Returns:
the height

getIcon

public ImageReference getIcon()
Returns the icon displayed in the title region.

Returns:
the icon

getIconInsets

public Insets getIconInsets()
Returns the inset margin around the icon.

Returns:
the inset margin

getInsets

public Insets getInsets()
Returns the inset of the window content. This property is not rendered when the content is a Pane component.

Returns:
the inset

getMaximizeIcon

public ImageReference getMaximizeIcon()
Returns the maximize button icon.

Returns:
the icon

getMaximizeIconInsets

public Insets getMaximizeIconInsets()
Returns the inset margin around the maximize button icon.

Returns:
the inset margin

getMaximizeRolloverIcon

public ImageReference getMaximizeRolloverIcon()
Returns the maximize button rollover icon.

Returns:
the icon

getMaximumHeight

public Extent getMaximumHeight()
Returns the maximum height of the content region of the WindowPane.

Returns:
the maximum height

getMaximumWidth

public Extent getMaximumWidth()
Returns the maximum width of the content region of the WindowPane.

Returns:
the maximum width

getMinimizeIcon

public ImageReference getMinimizeIcon()
Returns the minimize button icon.

Returns:
the icon

getMinimizeIconInsets

public Insets getMinimizeIconInsets()
Returns the inset margin around the minimize button icon.

Returns:
the inset margin

getMinimizeRolloverIcon

public ImageReference getMinimizeRolloverIcon()
Returns the minimize button rollover icon.

Returns:
the icon

getMinimumHeight

public Extent getMinimumHeight()
Returns the minimum height of the content region of the WindowPane.

Returns:
the minimum height

getMinimumWidth

public Extent getMinimumWidth()
Returns the minimum width of the content region of the WindowPane.

Returns:
the minimum width

getPositionX

public Extent getPositionX()
Returns the horizontal (Y) position of the WindowPane with respect to its container.

Returns:
the position

getPositionY

public Extent getPositionY()
Returns the vertical (Y) position of the WindowPane with respect to its container.

Returns:
the position

getTitle

public java.lang.String getTitle()
Returns the title of the WindowPane.

Returns:
the title

getTitleBackground

public Color getTitleBackground()
Returns the background color of the title region.

Returns:
the color

getTitleBackgroundImage

public FillImage getTitleBackgroundImage()
Returns the background image of the title region.

Returns:
the background image

getTitleFont

public Font getTitleFont()
Returns the font of the title region.

Returns:
the font

getTitleForeground

public Color getTitleForeground()
Returns the foreground color of the title region.

Returns:
the color

getTitleHeight

public Extent getTitleHeight()
Returns the height of the title region.

Returns:
the height

getTitleInsets

public Insets getTitleInsets()
Returns the insets of the title region.

Returns:
the insets

getWidth

public Extent getWidth()
Returns the configured width of the overall window, including its border.

Returns:
the width

getZIndex

public int getZIndex()
Returns the z-index of the window with respect to its parent ContentPane. Windows with higher z-indices will visually obscure windows with lower z-indices.

Returns:
the z-index

isClosable

public boolean isClosable()
Determines if the window is closable via a provided close button in the title bar.

Returns:
true if the window is closable

isMaximizeEnabled

public boolean isMaximizeEnabled()
Determines if the window can be maximized via a provided close button in the title bar.

Returns:
true if the window can be maximized

isMinimizeEnabled

public boolean isMinimizeEnabled()
Determines if the window can be minimized via a provided close button in the title bar.

Returns:
true if the window can be minimized

isModal

public boolean isModal()
Description copied from interface: ModalSupport
Determines the modal state of this component.

Specified by:
isModal in interface ModalSupport
Returns:
true if the component is modal
See Also:
ModalSupport.isModal()

isMovable

public boolean isMovable()
Determines if the window is movable.

Returns:
true if the window is movable

isResizable

public boolean isResizable()
Determines if the window is resizable.

Returns:
true if the window is resizable

isValidChild

public boolean isValidChild(Component component)
Limit content to a single child.

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.echo.app.Component)

isValidParent

public boolean isValidParent(Component parent)
Only allow ContentPanes as parents.

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.echo.app.Component)

processInput

public void processInput(java.lang.String inputName,
                         java.lang.Object inputValue)
Description copied from class: Component
Processes client input specific to the Component received from the UpdateManager. Derivative implementations should take care to invoke super.processInput(). Security note: Because input to this method is likely from a remote client, it should be treated as potentially hostile. All input to this method should be carefully verified. For example, directly invoking set() method with the provided input would constitute a security hole.

Overrides:
processInput in class Component
Parameters:
inputName - the name of the input
inputValue - the value of the input
See Also:
Component.processInput(java.lang.String, java.lang.Object)

removeWindowPaneListener

public void removeWindowPaneListener(WindowPaneListener l)
Removes a WindowPaneListener from receiving event notifications.

Parameters:
l - the WindowPaneListener to remove

setBackgroundImage

public void setBackgroundImage(FillImage newValue)
Sets the background image of the WindowPane.

Parameters:
newValue - the new background image

setBorder

public void setBorder(FillImageBorder newValue)
Sets the border which surrounds the entire WindowPane.

Parameters:
newValue - the new border

setClosable

public void setClosable(boolean newValue)
Sets whether the window is closable via a provided close button in the title bar.

Parameters:
newValue - true if the window is closable

setCloseIcon

public void setCloseIcon(ImageReference newValue)
Sets the close button icon.

Parameters:
newValue - the new icon

setCloseIconInsets

public void setCloseIconInsets(Insets newValue)
Sets the inset margin around the close button icon.

Parameters:
newValue - the new inset margin

setCloseRolloverIcon

public void setCloseRolloverIcon(ImageReference newValue)
Sets the close button rollover icon.

Parameters:
newValue - the new icon

setContentHeight

public void setContentHeight(Extent newValue)
Sets the content height of the WindowPane. This value will be overridden by the height property, if it is set.

Parameters:
newValue - the new content height

setContentWidth

public void setContentWidth(Extent newValue)
Sets the content width of the WindowPane. This value will be overridden by the width property, if it is set.

Parameters:
newValue - the new content width

setControlsSpacing

public void setControlsSpacing(Extent newValue)
Sets the spacing between the window control icons (e.g., close, minimize, and maximize buttons).

Parameters:
newValue - the new controls spacing

setControlsInsets

public void setControlsInsets(Extent newValue)
Sets the inset margin around the window controls (e.g., close, minimize, and maximize buttons).

Parameters:
newValue - the new inset margin

setDefaultCloseOperation

public void setDefaultCloseOperation(int newValue)
Sets the default close operation.

Parameters:
newValue - the new default close operation, one of the following values:
  • DO_NOTHING_ON_CLOSE
  • HIDE_ON_CLOSE
  • DISPOSE_ON_CLOSE

setHeight

public void setHeight(Extent newValue)
Sets the overall height of the WindowPane, including its border. This value will override any setting of the contentHeight property.

Parameters:
newValue - the new height

setIcon

public void setIcon(ImageReference newValue)
Sets the icon displayed in the title region.

Parameters:
newValue - the new icon

setIconInsets

public void setIconInsets(Insets newValue)
Sets the inset margin around the icon.

Parameters:
newValue - the new inset margin

setInsets

public void setInsets(Insets newValue)
Sets the inset of the window content. This property is not rendered when the content is a Pane component.

Parameters:
newValue - the new inset

setMaximizeEnabled

public void setMaximizeEnabled(boolean newValue)
Sets whether the window can be maximized via a provided button in the title bar.

Parameters:
newValue - true if the window can be maximized

setMaximizeIcon

public void setMaximizeIcon(ImageReference newValue)
Sets the maximize button icon.

Parameters:
newValue - the new icon

setMaximizeIconInsets

public void setMaximizeIconInsets(Insets newValue)
Sets the inset margin around the maximize button icon.

Parameters:
newValue - the new inset margin

setMaximizeRolloverIcon

public void setMaximizeRolloverIcon(ImageReference newValue)
Sets the maximize button rollover icon.

Parameters:
newValue - the new icon

setMaximumHeight

public void setMaximumHeight(Extent newValue)
Sets the maximum height of the content region of the WindowPane.

Parameters:
newValue - the new maximum height

setMaximumWidth

public void setMaximumWidth(Extent newValue)
Sets the maximum width of the content region of the WindowPane.

Parameters:
newValue - the new maximum width

setMinimizeEnabled

public void setMinimizeEnabled(boolean newValue)
Sets whether the window can be minimized via a provided button in the title bar.

Parameters:
newValue - true if the window can be minimized

setMinimizeIcon

public void setMinimizeIcon(ImageReference newValue)
Sets the minimize button icon.

Parameters:
newValue - the new icon

setMinimizeIconInsets

public void setMinimizeIconInsets(Insets newValue)
Sets the inset margin around the minimize button icon.

Parameters:
newValue - the new inset margin

setMinimizeRolloverIcon

public void setMinimizeRolloverIcon(ImageReference newValue)
Sets the minimize button rollover icon.

Parameters:
newValue - the new icon

setMinimumHeight

public void setMinimumHeight(Extent newValue)
Sets the minimum height of the content region of the WindowPane.

Parameters:
newValue - the new minimum height

setMinimumWidth

public void setMinimumWidth(Extent newValue)
Sets the minimum width of the content region of the WindowPane.

Parameters:
newValue - the new minimum width

setModal

public void setModal(boolean newValue)
Description copied from interface: ModalSupport
Sets the modal state of the Component.

Specified by:
setModal in interface ModalSupport
Parameters:
newValue - the new modal state
See Also:
ModalSupport.setModal(boolean)

setMovable

public void setMovable(boolean newValue)
Sets whether the window is movable.

Parameters:
newValue - true if the window may be moved by the user

setPositionX

public void setPositionX(Extent newValue)
Sets the horizontal (X) position of the WindowPane with respect to its container.

Parameters:
newValue - the new position

setPositionY

public void setPositionY(Extent newValue)
Sets the vertical (Y) position of the WindowPane with respect to its container.

Parameters:
newValue - the new position

setResizable

public void setResizable(boolean newValue)
Sets whether the window is resizable.

Parameters:
newValue - true if the window may be resized by the user

setTitle

public void setTitle(java.lang.String newValue)
Sets the title of the WindowPane.

Parameters:
newValue - the title

setTitleFont

public void setTitleFont(Font newValue)
Sets the font of the title region.

Parameters:
newValue - the new font

setTitleBackground

public void setTitleBackground(Color newValue)
Sets the background color of the title region.

Parameters:
newValue - the new color

setTitleBackgroundImage

public void setTitleBackgroundImage(FillImage newValue)
Sets the background image of the title region.

Parameters:
newValue - the new background image

setTitleForeground

public void setTitleForeground(Color newValue)
Sets the foreground color of the title region.

Parameters:
newValue - the new color

setTitleHeight

public void setTitleHeight(Extent newValue)
Sets the height of the title region.

Parameters:
newValue - the new height

setTitleInsets

public void setTitleInsets(Insets newValue)
Sets the insets of the title region.

Parameters:
newValue - the new insets

setWidth

public void setWidth(Extent newValue)
Sets the overall width of the WindowPane, including its border. This value will override any setting of the contentWidth property.

Parameters:
newValue - the new width

setZIndex

public void setZIndex(int newValue)
Sets the z-index of the window with respect to its parent ContentPane. Windows with higher z-indices will visually obscure windows with lower z-indices.

Parameters:
newValue - the new z-index

userClose

public void userClose()
Processes a user request to close the window (via the close button).


NextApp Echo3
v3.0.b4