All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class datarep.common.TabbedCardPanel

java.lang.Object
   |
   +----java.awt.Component
           |
           +----java.awt.Container
                   |
                   +----datarep.common.TabbedCardPanel

public class TabbedCardPanel
extends Container
implements MouseListener, AdjustmentListener, ItemSelectable
The TabbedCardPanel can hold any number of parts, but only displays one of them at a time. Each part has a name. The horizontal and vertical gaps can also be set.

Version:
1.2
Author:
Data Representations, Inc.

Constructor Index

 o TabbedCardPanel()
Creates a new TabbedCardPanel with horizontal and vertical gaps of 0.
 o TabbedCardPanel(int, int)
Creates a new TabbedCardPanel with the given horizontal and verticla gaps.

Method Index

 o add(Component, String)
Adds new Component comp to a tab named name.
 o add(Component, String, int)
Inserts Component comp (with a name of String name) at position i of the TabbedCardPanel.
 o add(String, Component)
Adds new Component comp to a tab named name.
 o add(String, Component, int)
Inserts Component comp (with a name of String name) at position i of the TabbedCardPanel.
 o addItemListener(ItemListener)
 o addNotify()
 o adjustmentValueChanged(AdjustmentEvent)
 o doLayout()
 o getHgap()
 o getInsets()
 o getMinimumSize()
 o getPreferredSize()
 o getSelectedCard()
 o getSelectedIndex()
 o getSelectedObjects()
 o getSelectedTab()
 o getVgap()
 o main(String[])
A small test of the TabbedCardPanel class.
 o mouseClicked(MouseEvent)
 o mouseEntered(MouseEvent)
 o mouseExited(MouseEvent)
 o mousePressed(MouseEvent)
 o mouseReleased(MouseEvent)
 o paint(Graphics)
 o remove(Component)
Removes Component comp.
 o remove(int)
removes the ith tab.
 o remove(String)
removes the tab named name.
 o removeAll()
removes all.
 o removeItemListener(ItemListener)
 o removeNotify()
 o setHgap(int)
 o setLayout(LayoutManager)
 o setVgap(int)
 o show(Component)
 o show(int)
 o show(String)
 o toString()

Constructors

 o TabbedCardPanel
 public TabbedCardPanel()
Creates a new TabbedCardPanel with horizontal and vertical gaps of 0.

 o TabbedCardPanel
 public TabbedCardPanel(int hgap,
                        int vgap)
Creates a new TabbedCardPanel with the given horizontal and verticla gaps.

Methods

 o setLayout
 public void setLayout(LayoutManager layout)
Overrides:
setLayout in class Container
 o add
 public synchronized Component add(Component comp,
                                   String name,
                                   int i)
Inserts Component comp (with a name of String name) at position i of the TabbedCardPanel.

 o add
 public synchronized Component add(String name,
                                   Component comp,
                                   int i)
Inserts Component comp (with a name of String name) at position i of the TabbedCardPanel.

 o add
 public synchronized Component add(Component comp,
                                   String name)
Adds new Component comp to a tab named name.

 o add
 public synchronized Component add(String name,
                                   Component comp)
Adds new Component comp to a tab named name.

Overrides:
add in class Container
 o remove
 public void remove(Component comp)
Removes Component comp.

Overrides:
remove in class Container
 o remove
 public void remove(String name)
removes the tab named name.

 o remove
 public synchronized void remove(int i)
removes the ith tab.

Overrides:
remove in class Container
 o removeAll
 public synchronized void removeAll()
removes all.

Overrides:
removeAll in class Container
 o getSelectedObjects
 public Object[] getSelectedObjects()
 o getSelectedCard
 public Component getSelectedCard()
 o getSelectedTab
 public String getSelectedTab()
 o getSelectedIndex
 public int getSelectedIndex()
 o show
 public void show(String name)
 o show
 public void show(Component comp)
 o show
 public void show(int i)
 o doLayout
 public void doLayout()
Overrides:
doLayout in class Container
 o mouseEntered
 public void mouseEntered(MouseEvent e)
 o mouseExited
 public void mouseExited(MouseEvent e)
 o mouseClicked
 public void mouseClicked(MouseEvent e)
 o mouseReleased
 public void mouseReleased(MouseEvent e)
 o mousePressed
 public void mousePressed(MouseEvent e)
 o paint
 public void paint(Graphics g)
Overrides:
paint in class Container
 o getMinimumSize
 public Dimension getMinimumSize()
Overrides:
getMinimumSize in class Container
 o getPreferredSize
 public Dimension getPreferredSize()
Overrides:
getPreferredSize in class Container
 o setVgap
 public void setVgap(int vgap)
 o getVgap
 public int getVgap()
 o setHgap
 public void setHgap(int hgap)
 o getHgap
 public int getHgap()
 o getInsets
 public Insets getInsets()
Overrides:
getInsets in class Container
 o addNotify
 public void addNotify()
Overrides:
addNotify in class Container
 o removeNotify
 public void removeNotify()
Overrides:
removeNotify in class Container
 o adjustmentValueChanged
 public void adjustmentValueChanged(AdjustmentEvent e)
 o toString
 public String toString()
Overrides:
toString in class Component
 o addItemListener
 public void addItemListener(ItemListener l)
 o removeItemListener
 public void removeItemListener(ItemListener l)
 o main
 public static void main(String arg[])
A small test of the TabbedCardPanel class.


All Packages  Class Hierarchy  This Package  Previous  Next  Index