|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcharva.awt.CardLayout
public class CardLayout
Emulates @{java.awt.CardLayout}.
Field Summary | |
---|---|
protected int |
current
|
protected int |
max
|
protected java.util.HashMap |
names
|
Constructor Summary | |
---|---|
CardLayout()
|
Method Summary | |
---|---|
void |
addLayoutComponent(Component component,
java.lang.Object constraints)
|
void |
doLayout(Container container)
|
void |
first(Container container)
Flips to the first card of the container. |
void |
invalidateLayout(Container target)
Invalidates the layout, indicating that if the layout manager has cached information it should be discarded. |
void |
last(Container container)
Flips to the last card of the container. |
Dimension |
minimumSize(Container container)
Calculate the geometry for the specified list of Components, and return the size of the rectangle that encloses all the Components. |
void |
show(Container container,
int index)
Flips to the component with the given insertion index. |
void |
show(Container container,
java.lang.String name)
Flips to the component that was added to this layout with the specified name , using addLayoutComponent . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected java.util.HashMap names
protected int current
protected int max
Constructor Detail |
---|
public CardLayout()
Method Detail |
---|
public void addLayoutComponent(Component component, java.lang.Object constraints)
addLayoutComponent
in interface LayoutManager2
public void invalidateLayout(Container target)
LayoutManager2
invalidateLayout
in interface LayoutManager2
public Dimension minimumSize(Container container)
LayoutManager
minimumSize
in interface LayoutManager
public void doLayout(Container container)
doLayout
in interface LayoutManager
public void show(Container container, int index)
container
- the parent container in which to do the layoutindex
- the component indexcharva.awt.CardLayout#addLayoutComponent(java.awt.Component, java.lang.Object)
public void show(Container container, java.lang.String name)
name
, using addLayoutComponent
.
If no such component exists, then nothing happens.
container
- the parent container in which to do the layoutname
- the component namecharva.awt.CardLayout#addLayoutComponent(java.awt.Component, java.lang.Object)
public void first(Container container)
container
- the parent container in which to do the layoutlast(charva.awt.Container)
public void last(Container container)
container
- the parent container in which to do the layoutfirst(charva.awt.Container)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |