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.
-
JDPCardPanel()
- Constructs a new Card Panel.
-
add(String, Component)
- Adds the specified component to this container.
-
getCompNames()
- Show the selected panel.
-
getSelectedComp()
- Get the selected panel.
-
remove(int)
-
Removes the specified component from this container.
-
removeAll()
-
Removes all the components from this container.
-
setSelectedComp(String)
- Show the selected panel.
JDPCardPanel
public JDPCardPanel()
- Constructs a new Card Panel.
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
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
removeAll
public void removeAll()
- Removes all the components from this container.
- Overrides:
- removeAll in class Container
getCompNames
public String[] getCompNames()
- Show the selected panel.
- Parameters:
- the - index name of the requested panel.
setSelectedComp
public void setSelectedComp(String compName)
- Show the selected panel.
- Parameters:
- the - index name of the requested panel.
getSelectedComp
public String getSelectedComp()
- Get the selected panel.
- Returns:
- the index name of the requested panel.