|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnextapp.echo.AbstractComponent
nextapp.echo.AbstractPane
public abstract class AbstractPane
A base class from which all panes (e.g. ContainerPane and ContentPane) are derived.
Field Summary | |
---|---|
static int |
PROPORTIONAL
Deprecated. |
static java.lang.String |
RESIZABLE_CHANGED_PROPERTY
|
static java.lang.String |
STYLE_RESIZABLE
A style constant for the Resizable property. |
Constructor Summary | |
---|---|
AbstractPane()
Default constructor. |
Method Summary | |
---|---|
void |
applyStyle(Style style)
Sets stylistic properties of this component based on a Style
object. |
int |
getHeight()
Returns the height of the pane, in pixels. |
Extent |
getHeightExtent()
Returns the height of the pane as an Extent . |
int |
getWidth()
Returns the width of the pane, in pixels. |
Extent |
getWidthExtent()
Returns the width of the pane as an Extent . |
boolean |
isResizable()
Returns whether the pane is resizable. |
void |
setResizable(boolean newValue)
Sets whether the pane is resizable. |
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 STYLE_RESIZABLE
public static final java.lang.String RESIZABLE_CHANGED_PROPERTY
public static final int PROPORTIONAL
Constructor Detail |
---|
public AbstractPane()
Method Detail |
---|
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 interface Component
applyStyle
in class AbstractComponent
style
- The style object from which to retrieve properties for this
Component
.Component.applyStyle(Style)
public int getHeight()
getHeightExtent().getValue()
if
getHeightExtent()
returns non-null and the extent's
getUnits()
method returns Extent.PX
.
Otherwise returns EchoConstants.UNDEFINED_SIZE
.
public Extent getHeightExtent()
Extent
.
Default implementation returns null.
Extent
.public int getWidth()
getWidthExtent().getValue()
if
getWidthExtent()
returns non-null and the extent's
getUnits()
method returns Extent.PX
.
Otherwise returns EchoConstants.UNDEFINED_SIZE
.
public Extent getWidthExtent()
Extent
.
Default implementation returns null.
Extent
.public boolean isResizable()
public void setResizable(boolean newValue)
newValue
- True if the pane should be resizable.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |