|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.wings.SComponent
org.wings.SContainer
org.wings.SRootContainer
public abstract class SRootContainer
A root container. The classes derived from this class (SFrame and SInternalFrame) render in the content pane of this
RootContainer.
The RootContainer has a stack of components. Ususally, the stack contains only one element, the content pane; this is the bottom-most component. When dialogs are added to the RootContainer, then these dialogs are stacked on top of this content pane and only that dialog is visible then. This emulates the behaviour of modal dialogs in a windowing system.
| Field Summary | |
|---|---|
protected SContainer |
contentPane
The container for the contentPane. |
protected SContainer |
windowsPane
Contains all windows linked to this root container. |
| Fields inherited from class org.wings.SComponent |
|---|
DONE_RENDERING, dynamicStyles, enabled, propertyChangeSupport, SELECTOR_ALL, START_RENDERING, visible, WHEN_FOCUSED_OR_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_IN_FOCUSED_FRAME |
| Constructor Summary | |
|---|---|
SRootContainer()
default constructor initializes the stack layout system of this SRootContainer. |
|
| Method Summary | |
|---|---|
SComponent |
addComponent(SComponent c,
Object constraint,
int index)
Adds the component to the content pane of the root container. |
SContainer |
getContentPane()
returns the content pane of this RootContainer. |
int |
getWindowCount()
|
SContainer |
getWindowsPane()
Returns the container that contains the windows linked to this root container. |
protected void |
initializeContentPane()
|
protected void |
initializeWindowsPane()
|
SWindow |
popWindow()
remove the dialog, that is on top of the stack. |
void |
pushWindow(SWindow window)
Push a new window on top of the stack. |
void |
remove(SComponent c)
Removes the component from the content pane. |
void |
removeWindow(SWindow window)
|
void |
setCG(RootContainerCG cg)
|
void |
setContentPane(SContainer container)
Sets the container for the contentPane. |
protected void |
setWindowsPane(SContainer windowsPane)
Sets the container for the windowsPane. |
| Methods inherited from class org.wings.SContainer |
|---|
add, add, add, add, addComponent, addComponent, addComponent, addContainerListener, addNotify, clone, fireContainerEvent, getComponent, getComponentCount, getComponentList, getComponents, getConstraintAt, getConstraintList, getLayout, invite, inviteEachComponent, isShowingChildren, processContainerEvent, remove, removeAll, removeContainerListener, removeNotify, setCG, setLayout, setParentFrame, updateCG |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected SContainer contentPane
protected SContainer windowsPane
| Constructor Detail |
|---|
public SRootContainer()
| Method Detail |
|---|
protected void initializeContentPane()
protected void initializeWindowsPane()
public void setCG(RootContainerCG cg)
public void pushWindow(SWindow window)
window - the SDialog that is to be shown on top.public SWindow popWindow()
public void removeWindow(SWindow window)
public int getWindowCount()
public SContainer getContentPane()
public SContainer getWindowsPane()
public void setContentPane(SContainer container)
container - the container for the contentPane.protected void setWindowsPane(SContainer windowsPane)
windowsPane - The container for the windowsPane.
public SComponent addComponent(SComponent c,
Object constraint,
int index)
addComponent in class SContainerc - the component to addindex - the index of the component
public void remove(SComponent c)
remove in class SContainerc - the component to removeSContainer.remove(org.wings.SComponent)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||