All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class cynosurex.awt.TabPanel

java.lang.Object
   |
   +----java.awt.Component
           |
           +----cynosurex.awt.TabPanel

public class TabPanel
extends Component
implements MouseListener
A panel showing only tabs. This object is used by the TabbedPanel. It generates a event for its parent when one of the tab is clicked.


Variable Index

 o border_height
the height of the border (predefined).
 o border_width
the width of the border (predefined).
 o margin_height
the height of the margin is predefined.
 o margin_width
the width of the margin is predefined.

Constructor Index

 o TabPanel()
Constructs and initializes a tabbed panel.

Method Index

 o add(String)
Adds a name to the list of tabs.
 o addTabListener(TabListener)
 o getMinimumSize()
Returns the minimum size of the panel.
 o getPreferredSize()
Returns the preferred size of the panel.
 o mouseClicked(MouseEvent)
 o mouseEntered(MouseEvent)
 o mouseExited(MouseEvent)
 o mousePressed(MouseEvent)
Determine which tab the mouse clicked on.
 o mouseReleased(MouseEvent)
 o paint(Graphics)
Paint routine to fill in the panel with tabs.
 o removeTabListener(TabListener)

Variables

 o border_height
 public static int border_height
the height of the border (predefined).

 o border_width
 public static int border_width
the width of the border (predefined).

 o margin_height
 public static int margin_height
the height of the margin is predefined.

 o margin_width
 public static int margin_width
the width of the margin is predefined.

Constructors

 o TabPanel
 public TabPanel()
Constructs and initializes a tabbed panel.

Methods

 o add
 public void add(String name)
Adds a name to the list of tabs.

Parameters:
name - name to add
 o mouseClicked
 public void mouseClicked(MouseEvent e)
 o mouseEntered
 public void mouseEntered(MouseEvent e)
 o mouseExited
 public void mouseExited(MouseEvent e)
 o mousePressed
 public void mousePressed(MouseEvent e)
Determine which tab the mouse clicked on.

 o mouseReleased
 public void mouseReleased(MouseEvent e)
 o paint
 public void paint(Graphics g)
Paint routine to fill in the panel with tabs.

Parameters:
g - graphics object passed in by the Java Virtual Machine
Overrides:
paint in class Component
 o getPreferredSize
 public Dimension getPreferredSize()
Returns the preferred size of the panel.

Overrides:
getPreferredSize in class Component
 o getMinimumSize
 public Dimension getMinimumSize()
Returns the minimum size of the panel.

Overrides:
getMinimumSize in class Component
 o addTabListener
 public void addTabListener(TabListener listener)
 o removeTabListener
 public void removeTabListener(TabListener listener)

All Packages  Class Hierarchy  This Package  Previous  Next  Index