All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class cynosurex.awt.TabPanel

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

public class TabPanel
extends Canvas
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 minimumSize()
Returns the minimum size of the panel.
 o mouseDown(Event, int, int)
Determine which tab the mouse clicked on.
 o paint(Graphics)
Paint routine to fill in the panel with tabs.
 o preferredSize()
Returns the preferred size of the panel.

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 mouseDown
 public boolean mouseDown(Event e,
                          int x,
                          int y)
Determine which tab the mouse clicked on.

Overrides:
mouseDown in class Component
 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 Canvas
 o preferredSize
 public Dimension preferredSize()
Returns the preferred size of the panel.

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

Overrides:
minimumSize in class Component

All Packages  Class Hierarchy  This Package  Previous  Next  Index