|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JPanel
ucar.unidata.util.GuiUtils.CardLayoutPanel
public static class GuiUtils.CardLayoutPanel
Class CardLayoutPanel is a utility that does a card layou of its components. It keeps the CardLayout object around and allows for easy calls to show without keeping track of the String layout key. It is also used in the showComponentInTabs calls to show components in the card layout.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class javax.swing.JPanel |
|---|
JPanel.AccessibleJPanel |
| Nested classes/interfaces inherited from class javax.swing.JComponent |
|---|
JComponent.AccessibleJComponent |
| Nested classes/interfaces inherited from class java.awt.Container |
|---|
Container.AccessibleAWTContainer |
| Nested classes/interfaces inherited from class java.awt.Component |
|---|
Component.AccessibleAWTComponent, Component.BltBufferStrategy, Component.FlipBufferStrategy |
| Field Summary |
|---|
| Fields inherited from class javax.swing.JComponent |
|---|
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
| Fields inherited from class java.awt.Component |
|---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
| Fields inherited from interface java.awt.image.ImageObserver |
|---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
| Constructor Summary | |
|---|---|
GuiUtils.CardLayoutPanel()
ctor |
|
GuiUtils.CardLayoutPanel(CardLayout cardLayout)
ctor |
|
| Method Summary | |
|---|---|
Component |
add(String layoutKey,
Component comp)
add the component. |
String |
addCard(Component comp)
Add the component. |
boolean |
contains(Component comp)
_more_ |
boolean |
containsKey(Object object)
_more_ |
void |
flip()
_more_ |
CardLayout |
getCardLayout()
Get the layout |
Component |
getVisibleComponent()
Get the component that is visible |
int |
getVisibleIndex()
_more_ |
void |
remove(Component comp)
Overwrite base class method to clear the component to key map |
void |
removeAll()
Overwrite base class method to clear the component to key map |
void |
show(Component comp)
Show the component |
void |
show(int i)
_more_ |
void |
show(String key)
Show the component identified by the key |
| Methods inherited from class javax.swing.JPanel |
|---|
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public GuiUtils.CardLayoutPanel()
public GuiUtils.CardLayoutPanel(CardLayout cardLayout)
cardLayout - the layout to use| Method Detail |
|---|
public CardLayout getCardLayout()
public Component getVisibleComponent()
public String addCard(Component comp)
comp - the component
public Component add(String layoutKey,
Component comp)
add in class ContainerlayoutKey - layout keycomp - component
public void show(String key)
key - the keypublic void show(int i)
i - _more_public int getVisibleIndex()
public void flip()
public boolean contains(Component comp)
comp - _more_
public boolean containsKey(Object object)
object - _more_
public void show(Component comp)
comp - the componentpublic void removeAll()
removeAll in class Containerpublic void remove(Component comp)
remove in class Containercomp - the component
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||