|
NextApp Echo 1.1.4 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnextapp.echo.Component
nextapp.echo.AbstractPane
nextapp.echo.ContainerPane
A container used to lay out panes within a window.
Only AbstractPane
s, e.g. ContainerPane
s,
ContentPane
s, and HttpPane
s may be added as
children to a ContainerPane
. Adding components that do not
subclass AbstractPane
will result in undocumented behavior.
ContainerPane
s may only be added as children to
Window
s and other ContainerPane
s.
Field Summary | |
static java.lang.String |
CONTENT_CHANGED_PROPERTY
|
private int |
orientation
|
static java.lang.String |
ORIENTATION_CHANGED_PROPERTY
|
static int |
ORIENTATION_HORIZONTAL
Describes a horizontally oriented pane whose child panes are laid out left to right. |
static int |
ORIENTATION_VERTICAL
Describes a vertically oriented pane whose child panes are laid out top to bottom. |
static java.lang.String |
PREFERRED_HEIGHT_CHANGED_PROPERTY
|
static java.lang.String |
PREFERRED_HEIGHT_EXTENT_CHANGED_PROPERTY
|
static java.lang.String |
PREFERRED_WIDTH_CHANGED_PROPERTY
|
static java.lang.String |
PREFERRED_WIDTH_EXTENT_CHANGED_PROPERTY
|
private Extent |
preferredHeightExtent
|
private Extent |
preferredWidthExtent
|
static java.lang.String |
STYLE_ORIENTATION
A style constant for the Orientation property. |
Fields inherited from class nextapp.echo.AbstractPane |
PROPORTIONAL, RESIZABLE_CHANGED_PROPERTY, STYLE_RESIZABLE |
Constructor Summary | |
ContainerPane()
Creates an empty container pane with a horizontal orientation. |
|
ContainerPane(int orientation)
Creates an empty container pane with the specified orientation. |
Method Summary | |
void |
add(AbstractPane pane)
Adds a subpane at the end of this container pane. |
void |
add(AbstractPane pane,
int index)
Adds a subpane at a specified position. |
void |
applyStyle(Style style)
Sets stylistic properties of this component based on a Style object. |
Extent |
getHeightExtent()
Calculates the height of the pane. |
int |
getOrientation()
Returns the orientation of the pane. |
int |
getPreferredHeight()
Deprecated. Use getPreferredHeightExtent() . |
Extent |
getPreferredHeightExtent()
Returns the preferred height of the pane. |
int |
getPreferredWidth()
Deprecated. Use getPreferredWidthExtent() . |
Extent |
getPreferredWidthExtent()
Returns the preferred width of the pane. |
Extent |
getWidthExtent()
Calculates the width of the pane. |
void |
remove(AbstractPane pane)
Removes a subpane. |
void |
setOrientation(int newValue)
Sets the orientation of the pane. |
void |
setPreferredHeight(int newValue)
Deprecated. Use setPreferredHeightExtent() . |
void |
setPreferredHeightExtent(Extent newValue)
Sets the preferred height of the container. |
void |
setPreferredWidth(int newValue)
Deprecated. Use setPreferredWidthExtent() . |
void |
setPreferredWidthExtent(Extent newValue)
Sets the preferred width of the container. |
Methods inherited from class nextapp.echo.AbstractPane |
getHeight, getWidth, isResizable, setResizable |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final java.lang.String CONTENT_CHANGED_PROPERTY
public static final java.lang.String ORIENTATION_CHANGED_PROPERTY
public static final java.lang.String PREFERRED_HEIGHT_CHANGED_PROPERTY
public static final java.lang.String PREFERRED_HEIGHT_EXTENT_CHANGED_PROPERTY
public static final java.lang.String PREFERRED_WIDTH_CHANGED_PROPERTY
public static final java.lang.String PREFERRED_WIDTH_EXTENT_CHANGED_PROPERTY
public static final java.lang.String STYLE_ORIENTATION
public static final int ORIENTATION_HORIZONTAL
public static final int ORIENTATION_VERTICAL
private int orientation
private Extent preferredHeightExtent
private Extent preferredWidthExtent
Constructor Detail |
public ContainerPane()
public ContainerPane(int orientation)
orientation
- The initial orientation of the container pane, one
of the following values:
Method Detail |
public void add(AbstractPane pane)
pane
- The subpane to add.public void add(AbstractPane pane, int index)
pane
- The subpane to add.index
- The position of the subpane.public void applyStyle(Style style)
Component
Style
object. The version of this method in
Component
will set foreground and background colors
and the font from the style if they are present. Components
should override this method if they allow more properties to be
set from a style object, and should call super.applyStyle() if
necessary.
applyStyle
in class AbstractPane
Component.applyStyle(Style)
public Extent getHeightExtent()
getHeightExtent
in class AbstractPane
AbstractPane.getHeightExtent()
public int getOrientation()
public int getPreferredHeight()
getPreferredHeightExtent()
.
EchoConstants.UNDEFINED_SIZE
if the width of the
pane is not in pixels.public Extent getPreferredHeightExtent()
public int getPreferredWidth()
getPreferredWidthExtent()
.
EchoConstants.UNDEFINED_SIZE
if the width of the
pane is not in pixels.public Extent getPreferredWidthExtent()
public Extent getWidthExtent()
getWidthExtent
in class AbstractPane
AbstractPane.getWidthExtent()
public void remove(AbstractPane pane)
pane
- The pane to remove.public void setPreferredHeight(int newValue)
setPreferredHeightExtent()
.
newValue
- The preferred height of the container. If the preferred
height is set to EchoConstants.UNDEFINED_SIZE
, the
height will be determined based on the heights of the container's
contents.public void setPreferredHeightExtent(Extent newValue)
newValue
- The new preferred height of the container.public void setOrientation(int newValue)
newValue
- The orientation of the pane, one of the following values:
public void setPreferredWidth(int newValue)
setPreferredWidthExtent()
.
newValue
- The preferred width of the container. If the preferred
width is set to PROPORTIONAL
, the width will be
determined based on the widths of the container's contents.public void setPreferredWidthExtent(Extent newValue)
newValue
- The preferred width of the container.
|
NextApp Echo 1.1.4 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |