Class JDPCardPanel

java.lang.Object
   |
   +----java.awt.Component
           |
           +----java.awt.Container
                   |
                   +----java.awt.Panel
                           |
                           +----JDPCardPanel

public class JDPCardPanel
extends Panel
Class JDPCardPanel represents a panel using the CardLayout layout manager.


Constructor Index

 o JDPCardPanel()
Constructs a new Card Panel.

Method Index

 o add(String, Component)
Adds the specified component to this container.
 o getCompNames()
Show the selected panel.
 o getSelectedComp()
Get the selected panel.
 o remove(int)
Removes the specified component from this container.
 o removeAll()
Removes all the components from this container.
 o setSelectedComp(String)
Show the selected panel.

Constructors

 o JDPCardPanel
 public JDPCardPanel()
Constructs a new Card Panel.

Methods

 o add
 public Component add(String name,
                      Component comp)
Adds the specified component to this container. It is strongly advised to use the 1.1 method, add(Component, Object), in place of this method.

Overrides:
add in class Container
 o remove
 public void remove(int index)
Removes the specified component from this container.

Parameters:
index - the index of the component to be removed
Overrides:
remove in class Container
 o removeAll
 public void removeAll()
Removes all the components from this container.

Overrides:
removeAll in class Container
 o getCompNames
 public String[] getCompNames()
Show the selected panel.

Parameters:
the - index name of the requested panel.
 o setSelectedComp
 public void setSelectedComp(String compName)
Show the selected panel.

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

Returns:
the index name of the requested panel.