All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class jumbo.xml.gui.TabbedPane

java.lang.Object
   |
   +----java.awt.Component
           |
           +----java.awt.Container
                   |
                   +----com.sun.java.swing.JComponent
                           |
                           +----com.sun.java.swing.JTabbedPane
                                   |
                                   +----jumbo.xml.gui.TabbedPane

public class TabbedPane
extends JTabbedPane
a simple implementation of JTabbedPane to support jumbo.xml. Components are cached in a Hashtable so cannot be added several times by mistake. Tooltips are enabled.

Author:
P.Murray-Rust, 1998

Variable Index

 o MAXTABLENGTH
the initial maximum character length of tabs

Constructor Index

 o TabbedPane()
default constructor

Method Index

 o add(Component, String, String)
add a component, supported by title (on the tab) and tooltip for that tab
 o setMaxTabLength(int)
change the maximum tab length.

Variables

 o MAXTABLENGTH
 public static final int MAXTABLENGTH
the initial maximum character length of tabs

Constructors

 o TabbedPane
 public TabbedPane()
default constructor

Methods

 o add
 public void add(Component component,
                 String title,
                 String toolTip)
add a component, supported by title (on the tab) and tooltip for that tab

Parameters:
Component - component the component
String - title the title (truncated if too long)
String - toolTip the tooltip for the tab
 o setMaxTabLength
 public void setMaxTabLength(int max)
change the maximum tab length. Will not affect existing tabs

Parameters:
int - max new maximum length of tab in characters.

All Packages  Class Hierarchy  This Package  Previous  Next  Index