|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnextapp.echo.AbstractComponent
nextapp.echo.Panel
public class Panel
A rectangular container.
Field Summary | |
---|---|
static Insets |
DEFAULT_INSETS
A default insets object used for panels, that has zero-pixel margins. |
static java.lang.String |
HORIZONTAL_ALIGNMENT_CHANGED_PROPERTY
|
static java.lang.String |
INSETS_CHANGED_PROPERTY
|
static java.lang.String |
STYLE_HORIZONTAL_ALIGNMENT
A style constant for the Horizontal Alignment property. |
static java.lang.String |
STYLE_INSETS
A style constant for the Insets property. |
static java.lang.String |
STYLE_VERTICAL_ALIGNMENT
A style constant for the Vertical Alignment property. |
static java.lang.String |
VERTICAL_ALIGNMENT_CHANGED_PROPERTY
|
Constructor Summary | |
---|---|
Panel()
Creates a new Panel. |
Method Summary | |
---|---|
void |
applyStyle(Style style)
Sets stylistic properties of this component based on a Style
object. |
int |
getHorizontalAlignment()
Returns the horizontal alignment of the contents of this panel. |
Insets |
getInsets()
Returns the insets (margins) of the panel. |
int |
getVerticalAlignment()
Returns the vertical alignment of the contents of this panel. |
void |
setHorizontalAlignment(int newValue)
Sets the horizontal alignment of the contents of this panel. |
void |
setInsets(Insets newValue)
Sets the insets (margins) of the pane. |
void |
setVerticalAlignment(int newValue)
Sets the vertical alignment of the contents of this panel. |
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_HORIZONTAL_ALIGNMENT
public static final java.lang.String STYLE_INSETS
public static final java.lang.String STYLE_VERTICAL_ALIGNMENT
public static final java.lang.String HORIZONTAL_ALIGNMENT_CHANGED_PROPERTY
public static final java.lang.String INSETS_CHANGED_PROPERTY
public static final java.lang.String VERTICAL_ALIGNMENT_CHANGED_PROPERTY
public static final Insets DEFAULT_INSETS
Constructor Detail |
---|
public Panel()
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 getHorizontalAlignment()
public Insets getInsets()
public int getVerticalAlignment()
public void setHorizontalAlignment(int newValue)
newValue
- The horizontal alignment of the contents of this panel,
one of the following values.
public void setInsets(Insets newValue)
newValue
- An insets object that specifies the size of each margin
of this pane.public void setVerticalAlignment(int newValue)
newValue
- The vertical alignment of the contents of this panel,
one of the following values.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |