|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.wings.SAbstractLayoutManager
org.wings.SCardLayout
public class SCardLayout
Swing-like card layout.
| Field Summary | |
|---|---|
protected HashMap |
tab
|
| Fields inherited from class org.wings.SAbstractLayoutManager |
|---|
border, cg, container, preferredSize |
| Fields inherited from interface org.wings.SConstants |
|---|
BASELINE, BLOCK_ALIGN, BOTTOM, BOTTOM_ALIGN, CENTER, CENTER_ALIGN, HORIZONTAL, JUSTIFY, LEFT, LEFT_ALIGN, NO_ALIGN, RIGHT, RIGHT_ALIGN, TOP, TOP_ALIGN, UID_DIVIDER, VERTICAL |
| Constructor Summary | |
|---|---|
SCardLayout()
Creates a new card layout |
|
| Method Summary | |
|---|---|
void |
addComponent(SComponent c,
Object constraint,
int index)
Adds a component to the layout manager |
void |
first(SContainer parent)
Flips to the first card of the container. |
SComponent |
getVisibleComponent()
|
Object |
getVisibleConstraint()
|
void |
last(SContainer parent)
Flips to the last card of the container. |
void |
next(SContainer parent)
Flips to the next card of the specified container. |
void |
previous(SContainer parent)
Flips to the previous card of the specified container. |
void |
removeComponent(SComponent c)
Removes a component from the layout manager |
void |
show(Object constraint)
Flips to the component |
void |
show(SComponent comp)
Flips to the component |
void |
show(SContainer parent,
Object name)
Flips to the component that was added to this layout with the specified name, using addLayoutComponent. |
| Methods inherited from class org.wings.SAbstractLayoutManager |
|---|
getBorder, getCG, getContainer, getPreferredSize, setBorder, setCG, setContainer, setPreferredSize, updateCG, write |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected HashMap tab
| Constructor Detail |
|---|
public SCardLayout()
| Method Detail |
|---|
public void addComponent(SComponent c,
Object constraint,
int index)
SLayoutManager
c - The new componentconstraint - A (sometimes optional) constraint objectpublic void removeComponent(SComponent c)
SLayoutManager
c - The new componentpublic void first(SContainer parent)
parent - the name of the parent container
in which to do the layout.public void next(SContainer parent)
parent - the name of the parent container
in which to do the layout.public void previous(SContainer parent)
parent - the name of the parent container
in which to do the layout.public void last(SContainer parent)
parent - the name of the parent container
in which to do the layout.public void show(SComponent comp)
public void show(Object constraint)
public void show(SContainer parent,
Object name)
name, using addLayoutComponent.
If no such component exists, then nothing happens.
parent - the name of the parent container
in which to do the layout.name - the component name.public SComponent getVisibleComponent()
public Object getVisibleConstraint()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||