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.
-
CardLayout()
- Creates a new card layout with gaps of size zero.
-
CardLayout(int, int)
- Creates a card layout with the specified gaps.
-
addLayoutComponent(String, Component)
- Replaced by addLayoutComponent(Component, Object).
Deprecated.
-
getCompNames()
- Get a list of the card panel names.
-
getSelectedComp(Container)
- Get the name of the selected panel.
-
getSelectedComponent(Container)
- Get the handle of the selected panel.
-
getSelectedIndex(Container)
- Get the handle of the selected panel.
-
layoutContainer(Container)
-
Performs a layout in the specified panel.
-
minimumLayoutSize(Container)
-
Calculates the minimum size for the specified panel.
-
removeLayoutComponent(Component)
- Removes the specified component from the layout.
-
setTabName(int, String)
- Show the selected panel.
-
show(Container, String)
- Flips to the specified component name in the specified container.
CardLayout
public CardLayout()
- Creates a new card layout with gaps of size zero.
CardLayout
public CardLayout(int hgap,
int vgap)
- Creates a card layout with the specified gaps.
- Parameters:
- hgap - the horizontal gap
- vgap - the vertical gap
addLayoutComponent
public void addLayoutComponent(String name,
Component comp)
- Note: addLayoutComponent() is deprecated.
- Replaced by addLayoutComponent(Component, Object).
removeLayoutComponent
public void removeLayoutComponent(Component comp)
- Removes the specified component from the layout.
- Parameters:
- comp - the component to be removed
layoutContainer
public void layoutContainer(Container parent)
- Performs a layout in the specified panel.
- Parameters:
- parent - the name of the parent container
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.
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
getCompNames
public String[] getCompNames()
- Get a list of the card panel names.
- Returns:
- a list of the card panel names.
setTabName
public void setTabName(int tabNumber,
String newTabName)
- Show the selected panel.
- Parameters:
- the - index name of the requested panel.
getSelectedComp
public String getSelectedComp(Container parent)
- Get the name of the selected panel.
- Returns:
- the index name of the requested panel.
getSelectedComponent
public Component getSelectedComponent(Container parent)
- Get the handle of the selected panel.
- Returns:
- the index name of the requested panel.
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