NextApp Echo3
v3.0.rc1

nextapp.echo.app
Class Panel

java.lang.Object
  extended by nextapp.echo.app.Component
      extended by nextapp.echo.app.Composite
          extended by nextapp.echo.app.Panel
All Implemented Interfaces:
java.io.Serializable, PaneContainer, RenderIdSupport

public class Panel
extends Composite
implements PaneContainer

Panel component: a single child container. Provides a configurable border, margin, background image, and dimensions. May contain at most one child. May contain Pane components, and may be used as a means to add Pane components to containers which do not allow Pane components as children. In such a case it may be necessary to manually set the height property of the Panel itself.

See Also:
Serialized Form

Field Summary
static java.lang.String PROPERTY_ALIGNMENT
           
static java.lang.String PROPERTY_BACKGROUND_IMAGE
           
static java.lang.String PROPERTY_BORDER
           
static java.lang.String PROPERTY_HEIGHT
           
static java.lang.String PROPERTY_IMAGE_BORDER
           
static java.lang.String PROPERTY_INSETS
           
static java.lang.String PROPERTY_WIDTH
           
 
Fields inherited from class nextapp.echo.app.Component
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 Summary
Panel()
           
 
Method Summary
 Alignment getAlignment()
          Returns the Alignment describing how the child component is aligned within the Panel.
 FillImage getBackgroundImage()
          Returns the background image.
 Border getBorder()
          Returns the Border that encloses the entire Panel.
 Extent getHeight()
          Returns the height of the panel.
 FillImageBorder getImageBorder()
          Returns the FillImageBorder that encloses the entire Panel.
 Insets getInsets()
          Returns the default inset between the border and cells of the Panel.
 Extent getWidth()
          Returns the width.
 void setAlignment(Alignment newValue)
          Sets the Alignment describing how the child component is aligned within the Panel.
 void setBackgroundImage(FillImage newValue)
          Sets the background image.
 void setBorder(Border newValue)
          Sets the Border that encloses the entire Panel.
 void setHeight(Extent newValue)
          Sets the height.
 void setImageBorder(FillImageBorder newValue)
          Sets the FillImageBorder that encloses the entire Panel.
 void setInsets(Insets newValue)
          Sets the inset between the border and cells of the Panel.
 void setWidth(Extent newValue)
          Sets the width.
 
Methods inherited from class nextapp.echo.app.Composite
isValidChild
 
Methods inherited from class nextapp.echo.app.Component
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, isValidParent, 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, visibleIndexOf
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PROPERTY_ALIGNMENT

public static final java.lang.String PROPERTY_ALIGNMENT
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_IMAGE_BORDER

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

PROPERTY_INSETS

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

PROPERTY_WIDTH

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

PROPERTY_HEIGHT

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

Panel

public Panel()
Method Detail

getBackgroundImage

public FillImage getBackgroundImage()
Returns the background image.

Returns:
the background image

getAlignment

public Alignment getAlignment()
Returns the Alignment describing how the child component is aligned within the Panel.

Returns:
the alignment

getBorder

public Border getBorder()
Returns the Border that encloses the entire Panel.

Returns:
the border

getImageBorder

public FillImageBorder getImageBorder()
Returns the FillImageBorder that encloses the entire Panel.

Returns:
the image border

getHeight

public Extent getHeight()
Returns the height of the panel. If unset, the Panel will be sized by the height of its content, unless it contains a Pane component of indeterminate size. This property only supports Extents with fixed (i.e., not percent) units.

Returns:
the height

getInsets

public Insets getInsets()
Returns the default inset between the border and cells of the Panel.

Returns:
the inset

getWidth

public Extent getWidth()
Returns the width. If unset, the Panel will expand to the width of its container.

Returns:
the width

setAlignment

public void setAlignment(Alignment newValue)
Sets the Alignment describing how the child component is aligned within the Panel.

Parameters:
newValue - the new alignment

setBackgroundImage

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

Parameters:
newValue - the new background image

setBorder

public void setBorder(Border newValue)
Sets the Border that encloses the entire Panel.

Parameters:
newValue - the new border

setHeight

public void setHeight(Extent newValue)
Sets the height. If unset, the Panel will be sized by the height of its content, unless it contains a Pane component of indeterminate size. This property only supports Extents with fixed (i.e., not percent) units.

Parameters:
newValue - the new height

setImageBorder

public void setImageBorder(FillImageBorder newValue)
Sets the FillImageBorder that encloses the entire Panel.

Parameters:
newValue - the new image border

setInsets

public void setInsets(Insets newValue)
Sets the inset between the border and cells of the Panel.

Parameters:
newValue - the new inset

setWidth

public void setWidth(Extent newValue)
Sets the width. If unset, the Panel will expand to the width of its container.

Parameters:
newValue - the new width

NextApp Echo3
v3.0.rc1