java.lang.Object
|
+--java.awt.CardLayout
A
CardLayout object is a layout manager for a
container. It treats each component in the container as a card.
Only one card is visible at a time, and the container acts as
a stack of cards. The first component added to a
CardLayout object is the visible component when the
container is first displayed.
The ordering of cards is determined by the container's own internal
ordering of its component objects. CardLayout
defines a set of methods that allow an application to flip
through these cards sequentially, or to show a specified card.
The CardLayou#addLayoutComponent
method can be used to associate a string identifier with a given card
for fast random access.
Container, Serialized Form
| Constructor Summary | |
CardLayout
copy-> new CardLayout()copy-> <CardLayout var> = new CardLayout();
|
|
CardLayout
copy-> new CardLayout(, )copy-> <CardLayout var> = new CardLayout(<int hgap>, <int vgap>);
|
|
| Method Summary | |
void |
addLayoutComponent(Component comp,
Object constraints)
copy-> .addLayoutComponent(, )copy-> <CardLayout>.addLayoutComponent(<Component comp>, <Object constraints>);
|
void |
addLayoutComponent(String name,
Component comp)
copy-> .addLayoutComponent(, )copy-> <CardLayout>.addLayoutComponent(<String name>, <Component comp>);
|
void |
first(Container parent)
copy-> .first( )copy-> <CardLayout>.first(<Container parent>);
|
int |
getHgap()
copy-> .getHgap()copy-> <int var>=<CardLayout>.getHgap();
|
float |
getLayoutAlignmentX(Container parent)
copy-> .getLayoutAlignmentX( )copy-> <float var>=<CardLayout>.getLayoutAlignmentX(<Container parent>);
|
float |
getLayoutAlignmentY(Container parent)
copy-> .getLayoutAlignmentY( )copy-> <float var>=<CardLayout>.getLayoutAlignmentY(<Container parent>);
|
int |
getVgap()
copy-> .getVgap()copy-> <int var>=<CardLayout>.getVgap();
|
void |
invalidateLayout(Container target)
copy-> .invalidateLayout( )copy-> <CardLayout>.invalidateLayout(<Container target>);
|
void |
last(Container parent)
copy-> .last( )copy-> <CardLayout>.last(<Container parent>);
|
void |
layoutContainer(Container parent)
copy-> .layoutContainer( )copy-> <CardLayout>.layoutContainer(<Container parent>);
|
Dimension |
maximumLayoutSize(Container target)
copy-> .maximumLayoutSize( )copy-> <Dimension var>=<CardLayout>.maximumLayoutSize(<Container target>);
|
Dimension |
minimumLayoutSize(Container parent)
copy-> .minimumLayoutSize( )copy-> <Dimension var>=<CardLayout>.minimumLayoutSize(<Container parent>);
|
void |
next(Container parent)
copy-> .next( )copy-> <CardLayout>.next(<Container parent>);
|
Dimension |
preferredLayoutSize(Container parent)
copy-> .preferredLayoutSize( )copy-> <Dimension var>=<CardLayout>.preferredLayoutSize(<Container parent>);
|
void |
previous(Container parent)
copy-> .previous( )copy-> <CardLayout>.previous(<Container parent>);
|
void |
removeLayoutComponent(Component comp)
copy-> .removeLayoutComponent( )copy-> <CardLayout>.removeLayoutComponent(<Component comp>);
|
void |
setHgap(int hgap)
copy-> .setHgap( )copy-> <CardLayout>.setHgap(<int hgap>);
|
void |
setVgap(int vgap)
copy-> .setVgap( )copy-> <CardLayout>.setVgap(<int vgap>);
|
void |
show(Container parent,
String name)
copy-> .show(, )copy-> <CardLayout>.show(<Container parent>, <String name>);
|
String |
toString()
copy-> .toString()copy-> <String var>=<CardLayout>.toString(); |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |