|
SPT Core API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnextapp.echo2.app.Component
nextapp.echo2.app.ContentPane
com.sptci.epng.ContentPane
public class ContentPane
A standard ContentPane for use with
applications. Displays the Header and contains space for
a MenuBar component. This content pane may be
used to create applications that follow the standard SPT layout for
an application.
The only child of this component is a SplitPane that may be styled through a style name
com.sptci.epng.ContentPane.splitPane. A default style
is enforced through the ContentPaneSplitPane
class in StyleSheet.addSplitPaneStyles()
method.
The Header and MenuBar
components displayed in the top part of the SplitPane are contained within a Column component. The column may be styled using
a com.sptci.epng.ContentPane.top name. A default style
is enforced through the ContentPaneTopColumn
class.
© Copyright 2008 Sans Pareil Technologies, Inc.
| Field Summary | |
|---|---|
protected Component |
content
The main view component that fills the main content area of this content pane. |
protected MenuBar |
menuBar
The menu bar for the content pane (application) |
| Fields inherited from class nextapp.echo2.app.ContentPane |
|---|
PROPERTY_BACKGROUND_IMAGE, PROPERTY_HORIZONTAL_SCROLL, PROPERTY_INSETS, PROPERTY_VERTICAL_SCROLL |
| Constructor Summary | |
|---|---|
ContentPane()
|
|
| Method Summary | |
|---|---|
void |
add(Component component)
Over-ridden to replace content with the new component
specified. |
void |
add(Component component,
int index)
Over-ridden to add the specified component to content container. |
protected Component |
createTop()
Create the container component used to display the Header
and menuBar. |
Component |
getContent()
Return the main content component displayed in this pane. |
MenuBar |
getMenuBar()
Return the menu bar contained in this content pane. |
void |
init()
Life-cycle method invoked when the component is added for the first time to the component hierarchy. |
void |
removeAll()
Over-ridden to remove only the children of content from the
view. |
void |
setContent(Component content)
Set the primary content to be displayed in this pane. |
void |
setMenuBar(MenuBar menuBar)
Set the menu bar to be contained in this content pane. |
| Methods inherited from class nextapp.echo2.app.ContentPane |
|---|
getBackgroundImage, getHorizontalScroll, getInsets, getVerticalScroll, isValidChild, isValidParent, processInput, setBackgroundImage, setHorizontalScroll, setInsets, setVerticalScroll |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected MenuBar menuBar
protected Component content
SplitPane used to layout the components.
| Constructor Detail |
|---|
public ContentPane()
| Method Detail |
|---|
public void init()
super.init unless they
wish to perform all the initialisation work.
init in class Componentprotected Component createTop()
Header
and menuBar. The menuBar is contained within a
Row component, so it is possible to add
components adjacent to the menu bar if so desired (by invoking
getMenuBar().getParent()).
public MenuBar getMenuBar()
menuBar.public void setMenuBar(MenuBar menuBar)
menuBar - The component to set as the menu bar.public Component getContent()
public void setContent(Component content)
content - The content to display.public void removeAll()
content from the
view. In addition it removes any FloatingPane
components that have been added to this content pane.
removeAll in class Componentpublic void add(Component component)
content with the new component
specified. In keeping with the contract of a ContentPane, this allows only one child content.
Unlike the super-class this class does not throw an exception, just
replaces content with the new component specified.
add in class Componentcomponent - The content to add to this component.
public void add(Component component,
int index)
content container.
If the specified component is an instance of FloatingPane, then delegates to the super class
Component.add(nextapp.echo2.app.Component) method.
add in class Componentcomponent - The content to add to this component.index - The index at which this child component is to be added.
|
SPT Core API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||