All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class com.bulletproof.gui.CardLayout

java.lang.Object
   |
   +----com.bulletproof.gui.CardLayout

public class CardLayout
extends Object
implements LayoutManager
A layout manager for a container that contains several 'cards'. Only one card is visible at a time, allowing you to flip through the cards.


Constructor Index

 o CardLayout()
Creates a new card layout with gaps of size zero.
 o CardLayout(int, int)
Creates a card layout with the specified gaps.

Method Index

 o addLayoutComponent(String, Component)
Replaced by addLayoutComponent(Component, Object). Deprecated.
 o getCompNames()
Get a list of the card panel names.
 o getSelectedComp(Container)
Get the name of the selected panel.
 o getSelectedComponent(Container)
Get the handle of the selected panel.
 o getSelectedIndex(Container)
Get the handle of the selected panel.
 o layoutContainer(Container)
Performs a layout in the specified panel.
 o minimumLayoutSize(Container)
Calculates the minimum size for the specified panel.
 o removeLayoutComponent(Component)
Removes the specified component from the layout.
 o setTabName(int, String)
Show the selected panel.
 o show(Container, String)
Flips to the specified component name in the specified container.

Constructors

 o CardLayout
 public CardLayout()
Creates a new card layout with gaps of size zero.

 o CardLayout
 public CardLayout(int hgap,
                   int vgap)
Creates a card layout with the specified gaps.

Parameters:
hgap - the horizontal gap
vgap - the vertical gap

Methods

 o addLayoutComponent
 public void addLayoutComponent(String name,
                                Component comp)
Note: addLayoutComponent() is deprecated.

Replaced by addLayoutComponent(Component, Object).

 o removeLayoutComponent
 public void removeLayoutComponent(Component comp)
Removes the specified component from the layout.

Parameters:
comp - the component to be removed
 o layoutContainer
 public void layoutContainer(Container parent)
Performs a layout in the specified panel.

Parameters:
parent - the name of the parent container
 o minimumLayoutSize
 public Dimension minimumLayoutSize(Container parent)
Calculates the minimum size for the specified panel.

Parameters:
parent - the name of the parent container
Returns:
the dimensions of this panel.
 o show
 public boolean show(Container parent,
                     String name)
Flips to the specified component name in the specified container.

Parameters:
parent - the name of the parent container
name - the component name
Returns:
whether the panel was found
 o getCompNames
 public String[] getCompNames()
Get a list of the card panel names.

Returns:
a list of the card panel names.
 o setTabName
 public void setTabName(int tabNumber,
                        String newTabName)
Show the selected panel.

Parameters:
the - index name of the requested panel.
 o getSelectedComp
 public String getSelectedComp(Container parent)
Get the name of the selected panel.

Returns:
the index name of the requested panel.
 o getSelectedComponent
 public Component getSelectedComponent(Container parent)
Get the handle of the selected panel.

Returns:
the index name of the requested panel.
 o getSelectedIndex
 public int getSelectedIndex(Container parent)
Get the handle of the selected panel.

Returns:
the index name of the requested panel.

All Packages  Class Hierarchy  This Package  Previous  Next  Index