|
|||||||||
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.ContainerPane
nextapp.echo.StackedPane
public class StackedPane
A stacked pane resembles a stack of cards in concept. While panes may be added and removed from a StackedPane, only the top pane is visible. A StackedPane is useful when an application needs to offer a user interface where users can navigate down and then back up a hierarchy.
Field Summary |
---|
Fields inherited from class nextapp.echo.AbstractPane |
---|
PROPORTIONAL, RESIZABLE_CHANGED_PROPERTY, STYLE_RESIZABLE |
Constructor Summary | |
---|---|
StackedPane()
|
Method Summary | |
---|---|
void |
addChangeListener(ChangeListener l)
Adds a listener to be notified of change events. |
AbstractPane |
close()
Closes the top pane. |
void |
close(AbstractPane pane)
Closes the specified pane. |
void |
closeUntilVisible(AbstractPane pane)
Closes panes until the specified pane is again visible. |
AbstractPane |
getPane(int index)
Returns the pane at the specified index. |
AbstractPane |
getVisiblePane()
Returns the currently visible (top) pane. |
void |
insert(int index,
AbstractPane pane)
Inserts the pane into the stacked pane. |
void |
open(AbstractPane pane)
Opens a new pane. |
void |
removeChangeListener(ChangeListener l)
Removes a listener from being notified of change events. |
void |
replaceVisiblePane(AbstractPane pane)
Replaces the currently visible pane with the provided pane. |
int |
size()
Returns the number of panes in this StackedPane. |
Methods inherited from class nextapp.echo.ContainerPane |
---|
add, add, applyStyle, getHeightExtent, getOrientation, getPreferredHeight, getPreferredHeightExtent, getPreferredWidth, getPreferredWidthExtent, getWidthExtent, remove, setOrientation, setPreferredHeight, setPreferredHeightExtent, setPreferredWidth, setPreferredWidthExtent |
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 |
Constructor Detail |
---|
public StackedPane()
Method Detail |
---|
public void addChangeListener(ChangeListener l)
l
- The ChangeListener
to be added.public AbstractPane close()
java.lang.IllegalStateException
- If called when no child panes exist in
the StackedPane
.public void close(AbstractPane pane)
pane
- The pane to be closed.public void closeUntilVisible(AbstractPane pane)
pane
- The pane that should be made visible.public AbstractPane getPane(int index)
index
- The index of the pane.
public AbstractPane getVisiblePane()
public void insert(int index, AbstractPane pane)
index
- The index at which to insert the pane.pane
- The pane to be inserted.public void open(AbstractPane pane)
pane
- The pane to open.public void replaceVisiblePane(AbstractPane pane)
pane
- The new visible pane.public int size()
public void removeChangeListener(ChangeListener l)
l
- The ChangeListener
to be added.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |