All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class jclass.bwt.TabPanel

java.lang.Object
   |
   +----java.awt.Component
           |
           +----java.awt.Container
                   |
                   +----java.awt.Panel
                           |
                           +----jclass.bwt.JCContainer
                                   |
                                   +----jclass.bwt.TabPanel

public class TabPanel
extends JCContainer
A private container which manages a JCTabManager's tab buttons.

See Also:
JCTabManager, JCTabButton

Constructor Index

 o TabPanel(JCTabManager)
Creates an empty container with the specified parent.

Method Index

 o add(Component, int)
Adds the specified component to this container at the given position.
 o keyDown(Event, int)
 o keyUp(Event, int)
 o layout()
Lays out the tabs according to the tab manager's tabSpacing, tabWidth and tabStretch values.
 o locate(int, int)
Locates the component that contains the position.
 o mouseDown(Event, int, int)
 o paintInterior(Graphics)
Paints all buttons.
 o preferredSize()
Calculates the size based on the tab button's sizes.
 o processKeyEvent(KeyEvent)
Processes key events occurring on this component by dispatching them to any registered KeyListener objects.
 o remove(Component)
Removes the specified component from this container.
 o repaint()
Overrides Component.repaint(), which does not always call paint().
 o setLayout(LayoutManager)
Sets the layout manager for this container.

Constructors

 o TabPanel
  public TabPanel(JCTabManager tab_manager)
Creates an empty container with the specified parent.

Methods

 o setLayout
  public final void setLayout(LayoutManager mgr)
Sets the layout manager for this container. This method is overridden to prevent the layout mgr from being set.

Overrides:
setLayout in class Container
 o layout
  public synchronized void layout()
Lays out the tabs according to the tab manager's tabSpacing, tabWidth and tabStretch values.

Overrides:
layout in class Container
 o preferredSize
  public Dimension preferredSize()
Calculates the size based on the tab button's sizes.

Overrides:
preferredSize in class JCContainer
 o add
  public Component add(Component comp,
                       int pos)
Adds the specified component to this container at the given position.

Parameters:
pos - the position at which to insert the component. -1 means insert at the end.
Overrides:
add in class Container
 o remove
  public void remove(Component comp)
Removes the specified component from this container.

Overrides:
remove in class Container
See Also:
add
 o locate
  public Component locate(int x,
                          int y)
Locates the component that contains the position.

Returns:
null if the container does not contain the position; returns the component otherwise.
Overrides:
locate in class Container
 o repaint
  public void repaint()
Overrides Component.repaint(), which does not always call paint().

Overrides:
repaint in class JCContainer
 o paintInterior
  public void paintInterior(Graphics gc)
Paints all buttons.

Overrides:
paintInterior in class JCContainer
 o mouseDown
  public boolean mouseDown(Event ev,
                           int x,
                           int y)
Overrides:
mouseDown in class Component
 o processKeyEvent
  protected void processKeyEvent(KeyEvent key_ev)
Processes key events occurring on this component by dispatching them to any registered KeyListener objects.

Overrides:
processKeyEvent in class Component
 o keyDown
  public boolean keyDown(Event ev,
                         int key)
Overrides:
keyDown in class Component
 o keyUp
  public boolean keyUp(Event ev,
                       int key)
Overrides:
keyUp in class Component

All Packages  Class Hierarchy  This Package  Previous  Next  Index