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.
-
TabbedCardPanel()
- Creates a new TabbedCardPanel with horizontal and vertical gaps of 0.
-
TabbedCardPanel(int, int)
- Creates a new TabbedCardPanel with the given horizontal and verticla gaps.
-
add(Component, String)
- Adds new Component comp to a tab named name.
-
add(Component, String, int)
- Inserts Component comp (with a name of String name) at position i of the TabbedCardPanel.
-
add(String, Component)
- Adds new Component comp to a tab named name.
-
add(String, Component, int)
- Inserts Component comp (with a name of String name) at position i of the TabbedCardPanel.
-
addItemListener(ItemListener)
-
-
addNotify()
-
-
adjustmentValueChanged(AdjustmentEvent)
-
-
doLayout()
-
-
getHgap()
-
-
getInsets()
-
-
getMinimumSize()
-
-
getPreferredSize()
-
-
getSelectedCard()
-
-
getSelectedIndex()
-
-
getSelectedObjects()
-
-
getSelectedTab()
-
-
getVgap()
-
-
main(String[])
- A small test of the TabbedCardPanel class.
-
mouseClicked(MouseEvent)
-
-
mouseEntered(MouseEvent)
-
-
mouseExited(MouseEvent)
-
-
mousePressed(MouseEvent)
-
-
mouseReleased(MouseEvent)
-
-
paint(Graphics)
-
-
remove(Component)
- Removes Component comp.
-
remove(int)
- removes the ith tab.
-
remove(String)
- removes the tab named name.
-
removeAll()
- removes all.
-
removeItemListener(ItemListener)
-
-
removeNotify()
-
-
setHgap(int)
-
-
setLayout(LayoutManager)
-
-
setVgap(int)
-
-
show(Component)
-
-
show(int)
-
-
show(String)
-
-
toString()
-
TabbedCardPanel
public TabbedCardPanel()
- Creates a new TabbedCardPanel with horizontal and vertical gaps of 0.
TabbedCardPanel
public TabbedCardPanel(int hgap,
int vgap)
- Creates a new TabbedCardPanel with the given horizontal and verticla gaps.
setLayout
public void setLayout(LayoutManager layout)
- Overrides:
- setLayout in class Container
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.
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.
add
public synchronized Component add(Component comp,
String name)
- Adds new Component comp to a tab named name.
add
public synchronized Component add(String name,
Component comp)
- Adds new Component comp to a tab named name.
- Overrides:
- add in class Container
remove
public void remove(Component comp)
- Removes Component comp.
- Overrides:
- remove in class Container
remove
public void remove(String name)
- removes the tab named name.
remove
public synchronized void remove(int i)
- removes the ith tab.
- Overrides:
- remove in class Container
removeAll
public synchronized void removeAll()
- removes all.
- Overrides:
- removeAll in class Container
getSelectedObjects
public Object[] getSelectedObjects()
getSelectedCard
public Component getSelectedCard()
getSelectedTab
public String getSelectedTab()
getSelectedIndex
public int getSelectedIndex()
show
public void show(String name)
show
public void show(Component comp)
show
public void show(int i)
doLayout
public void doLayout()
- Overrides:
- doLayout in class Container
mouseEntered
public void mouseEntered(MouseEvent e)
mouseExited
public void mouseExited(MouseEvent e)
mouseClicked
public void mouseClicked(MouseEvent e)
mouseReleased
public void mouseReleased(MouseEvent e)
mousePressed
public void mousePressed(MouseEvent e)
paint
public void paint(Graphics g)
- Overrides:
- paint in class Container
getMinimumSize
public Dimension getMinimumSize()
- Overrides:
- getMinimumSize in class Container
getPreferredSize
public Dimension getPreferredSize()
- Overrides:
- getPreferredSize in class Container
setVgap
public void setVgap(int vgap)
getVgap
public int getVgap()
setHgap
public void setHgap(int hgap)
getHgap
public int getHgap()
getInsets
public Insets getInsets()
- Overrides:
- getInsets in class Container
addNotify
public void addNotify()
- Overrides:
- addNotify in class Container
removeNotify
public void removeNotify()
- Overrides:
- removeNotify in class Container
adjustmentValueChanged
public void adjustmentValueChanged(AdjustmentEvent e)
toString
public String toString()
- Overrides:
- toString in class Component
addItemListener
public void addItemListener(ItemListener l)
removeItemListener
public void removeItemListener(ItemListener l)
main
public static void main(String arg[])
- A small test of the TabbedCardPanel class.
All Packages Class Hierarchy This Package Previous Next Index