|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnextapp.echo.AbstractComponent
nextapp.echo.AbstractPane
nextapp.echo.ContentPane
public class ContentPane
A pane to which content components may be added.
ContentPane
s may only be added as children to
Window
s and ContainerPane
s.
Field Summary | |
---|---|
static java.lang.String |
BACKGROUND_IMAGE_PROPERTIES_CHANGED_PROPERTY
|
static Insets |
DEFAULT_INSETS
A default Insets object that provides 10-pixel margins on the top, bottom, left, and right sides of the content pane. |
static java.lang.String |
HEIGHT_CHANGED_PROPERTY
|
static java.lang.String |
HEIGHT_EXTENT_CHANGED_PROPERTY
|
static java.lang.String |
HORIZONTAL_ALIGNMENT_CHANGED_PROPERTY
|
static java.lang.String |
INSETS_CHANGED_PROPERTY
|
static int |
SCROLL_BAR_ALWAYS
A scroll bar policy that will cause scroll bars to always appear, without regard for whether they are required. |
static int |
SCROLL_BAR_AUTO
A scroll bar policy that will cause scroll bars to be visible if they are necessary, and invisible if they are not. |
static int |
SCROLL_BAR_NEVER
A scroll bar policy that will cause scroll bars never to appear, without regard for whether they are required. |
static java.lang.String |
SCROLL_BAR_POLICY_CHANGED_PROPERTY
|
static java.lang.String |
SCROLL_BAR_X_CHANGED_PROPERTY
|
static java.lang.String |
SCROLL_BAR_Y_CHANGED_PROPERTY
|
static java.lang.String |
STYLE_BACKGROUND_IMAGE
A style constant for the Background Image property. |
static java.lang.String |
STYLE_BACKGROUND_IMAGE_PROPERTIES
A style constant for the Background Image Properties property. |
static java.lang.String |
STYLE_HEIGHT
A style constant for the Height property. |
static java.lang.String |
STYLE_HEIGHT_EXTENT
A style constant for the Height Extent 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_SCROLL_BAR_POLICY
A style constant for the Scroll Bar Policy property. |
static java.lang.String |
STYLE_VERTICAL_ALIGNMENT
A style constant for the Vertical Alignment property. |
static java.lang.String |
STYLE_WIDTH
A style constant for the Width property. |
static java.lang.String |
STYLE_WIDTH_EXTENT
A style constant for the Width Extent property. |
static java.lang.String |
VERTICAL_ALIGNMENT_CHANGED_PROPERTY
|
static java.lang.String |
WIDTH_CHANGED_PROPERTY
|
static java.lang.String |
WIDTH_EXTENT_CHANGED_PROPERTY
|
Fields inherited from class nextapp.echo.AbstractPane |
---|
PROPORTIONAL, RESIZABLE_CHANGED_PROPERTY, STYLE_RESIZABLE |
Constructor Summary | |
---|---|
ContentPane()
Creates a content pane. |
Method Summary | |
---|---|
void |
addCssFile(java.lang.String file)
|
void |
applyStyle(Style style)
Sets stylistic properties of this component based on a Style
object. |
ImageReference |
getBackgroundImage()
Returns the background image. |
BackgroundImageProperties |
getBackgroundImageProperties()
Returns the background image properties for this content pane. |
java.util.List |
getCssFiles()
|
Extent |
getHeightExtent()
Returns the height of the pane. |
int |
getHorizontalAlignment()
Returns the horizontal alignment of the contents of this pane. |
Insets |
getInsets()
Returns the insets (margins) of the pane. |
int |
getScrollBarPolicy()
Returns the scroll bar policy. |
int |
getScrollBarX()
Returns the position of the horizontal scroll bar, in pixels offset from the left of the pane. |
int |
getScrollBarY()
Returns the position of the vertical scroll bar, in pixels offset from the top the pane. |
int |
getVerticalAlignment()
Returns the vertical alignment of the contents of this pane. |
Extent |
getWidthExtent()
Returns the width of the pane. |
boolean |
isCssStyled()
|
boolean |
isScrollBarPositionModified()
|
void |
setBackgroundImage(ImageReference newValue)
Sets the background image. |
void |
setBackgroundImageProperties(BackgroundImageProperties newValue)
Sets the background image properties for this content pane. |
void |
setCssStyled(boolean cssStyled)
|
void |
setHeight(int newValue)
Sets the height of the pane in pixels. |
void |
setHeightExtent(Extent newValue)
Sets the height of the pane. |
void |
setHorizontalAlignment(int newValue)
Sets the horizontal alignment of the contents of this pane. |
void |
setInsets(Insets newValue)
Sets the insets (margins) of the pane. |
void |
setScrollBarPolicy(int newValue)
Sets the scroll bar policy. |
void |
setScrollBarPositionModified(boolean scrollBarModifiedByApplication)
|
void |
setScrollBarX(int newValue)
Sets the position of the horizontal scroll bar, in pixels offset from the left of the pane. |
void |
setScrollBarY(int newValue)
Sets the position of the vertical scroll bar, in pixels offset from the top of the pane. |
void |
setVerticalAlignment(int newValue)
Sets the vertical alignment of the contents of this pane. |
void |
setWidth(int newValue)
Sets the width of the pane in pixels. |
void |
setWidthExtent(Extent newValue)
Sets the width of the pane. |
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 STYLE_BACKGROUND_IMAGE
public static final java.lang.String STYLE_BACKGROUND_IMAGE_PROPERTIES
public static final java.lang.String STYLE_HEIGHT
public static final java.lang.String STYLE_HEIGHT_EXTENT
public static final java.lang.String STYLE_HORIZONTAL_ALIGNMENT
public static final java.lang.String STYLE_INSETS
public static final java.lang.String STYLE_SCROLL_BAR_POLICY
public static final java.lang.String STYLE_VERTICAL_ALIGNMENT
public static final java.lang.String STYLE_WIDTH
public static final java.lang.String STYLE_WIDTH_EXTENT
public static final java.lang.String BACKGROUND_IMAGE_PROPERTIES_CHANGED_PROPERTY
public static final java.lang.String HEIGHT_CHANGED_PROPERTY
public static final java.lang.String HEIGHT_EXTENT_CHANGED_PROPERTY
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 SCROLL_BAR_POLICY_CHANGED_PROPERTY
public static final java.lang.String SCROLL_BAR_X_CHANGED_PROPERTY
public static final java.lang.String SCROLL_BAR_Y_CHANGED_PROPERTY
public static final java.lang.String VERTICAL_ALIGNMENT_CHANGED_PROPERTY
public static final java.lang.String WIDTH_CHANGED_PROPERTY
public static final java.lang.String WIDTH_EXTENT_CHANGED_PROPERTY
public static final int SCROLL_BAR_AUTO
public static final int SCROLL_BAR_ALWAYS
public static final int SCROLL_BAR_NEVER
public static final Insets DEFAULT_INSETS
Constructor Detail |
---|
public ContentPane()
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 AbstractPane
style
- The style object from which to retrieve properties for this
Component
.Component.applyStyle(Style)
public ImageReference getBackgroundImage()
public BackgroundImageProperties getBackgroundImageProperties()
public int getHorizontalAlignment()
public Extent getHeightExtent()
getHeightExtent
in class AbstractPane
public Insets getInsets()
public Extent getWidthExtent()
getWidthExtent
in class AbstractPane
public int getScrollBarPolicy()
public int getScrollBarX()
public int getScrollBarY()
public int getVerticalAlignment()
public void setBackgroundImage(ImageReference newValue)
newValue
- Then new background image.public void setBackgroundImageProperties(BackgroundImageProperties newValue)
newValue
- The new background image properties for this content
pane. Any previously set background image information is
overridden by calling this method.public void setHeight(int newValue)
newValue
- The new height of the pane in pixels.public void setHeightExtent(Extent newValue)
newValue
- the new height of the pane.public void setHorizontalAlignment(int newValue)
newValue
- The horizontal alignment of the contents of this pane,
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 setScrollBarPolicy(int newValue)
newValue
- The new scroll bar policy, one of the following:
public void setScrollBarX(int newValue)
newValue
- The new position of the horizontal scroll bar, in pixels.public void setScrollBarY(int newValue)
newValue
- The new position of the vertical scroll bar, in pixels.public void setVerticalAlignment(int newValue)
newValue
- The vertical alignment of the contents of this pane,
one of the following values.
public void setWidth(int newValue)
newValue
- The new width of the pane in pixels.public void setWidthExtent(Extent newValue)
newValue
- The new width of the pane.public boolean isScrollBarPositionModified()
public void setScrollBarPositionModified(boolean scrollBarModifiedByApplication)
public java.util.List getCssFiles()
public void addCssFile(java.lang.String file)
public boolean isCssStyled()
public void setCssStyled(boolean cssStyled)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |