borland.jbcl Packages  borland.jbcl Class Hierarchy  borland.jbcl.control 

TabsetControl component

java.lang.Object
   +----java.awt.Component
           +----java.awt.Container
                   +----java.awt.Panel
                           +----borland.jbcl.view.BeanPanel
                                   +----borland.jbcl.view.TabsetView
                                           +----borland.jbcl.control.TabsetControl

About the TabsetControl component

Variables  Constructors  Properties  Methods  Event Listeners

Implements ItemPaintSite, VectorModelListener, VectorSelectionListener, BlackBox, VectorView, MenuContainer, ImageObserver, Serializable, EventListener

The TabsetControl component is a set of mutually exclusive tabs, such as those commonly used in tabbed dialogs. The TabsetControl component represents a set of tabs only, unlike the TabsetPanel component, which acts as a container for tabbed pages.

The tabs act like a set of radio buttons; selecting a tab causes the other tabs to become un-selected. The tabs are arranged horizontally, and can be drawn as either top tabs or bottom tabs. If there is not enough space to display all the tabs, a scrollbar appears.

A tab can be referred to by its label text, which appears in the tab and must be unique for each tab, or by its ordinal index number, for internationalization.

To detect that the user has changed tabs, listen for a mouseClicked event. In the handler, examine which tab is selected and handle any changes in the state of the component.


TabsetControl variables

Variables implemented in borland.jbcl.view.BeanPanel

Variables implemented in borland.jbcl.view.TabsetView

Variables implemented in java.awt.Component

TabsetControl constructors

TabsetControl properties

*Read-only properties **Write-only properties

Properties implemented in this class

Properties implemented in borland.jbcl.view.BeanPanel

Properties implemented in borland.jbcl.view.TabsetView

Properties implemented in java.awt.Component

Properties implemented in java.awt.Container

Properties implemented in java.lang.Object

TabsetControl methods

Methods implemented in borland.jbcl.view.BeanPanel

Methods implemented in borland.jbcl.view.TabsetView

Methods implemented in java.awt.Component

Methods implemented in java.awt.Container

Methods implemented in java.awt.Panel

Methods implemented in java.lang.Object

TabsetControl event listeners


TabsetControl constructors

TabsetControl()

  public TabsetControl()
Creates a TabsetControl component with no tabs and TOP alignment.


TabsetControl properties

preferredSize

 public Dimension getPreferredSize()
If there are more than 10 tabs, calls borland.jbcl.view.TabsetView.preferredSize() to find the preferred size. Otherwise, uses (125, 35).


TabsetControl event listeners

This component is a source for the following event sets. For information on the standard AWT event sets, see Standard Java events. For information on the JBCL event sets, see Events in JBCL.

action

 public synchronized void addActionListener(java.awt.event.ActionListener l)
 public synchronized void removeActionListener(java.awt.event.ActionListener l)

component

 public synchronized void addComponentListener(java.awt.event.ComponentListener l)
 public synchronized void removeComponentListener(java.awt.event.ComponentListener l)

container

 public synchronized void addContainerListener(java.awt.event.ContainerListener l)
 public void removeContainerListener(java.awt.event.ContainerListener l)

focus

 public synchronized void addFocusListener(java.awt.event.FocusListener l)
 public synchronized void removeFocusListener(java.awt.event.FocusListener l)

key

 public synchronized void addKeyListener(java.awt.event.KeyListener l)
 public synchronized void removeKeyListener(java.awt.event.KeyListener l)

model

 public void addModelListener(borland.jbcl.model.VectorModelListener l)
 public void removeModelListener(borland.jbcl.model.VectorModelListener l)

mouse

 public synchronized void addMouseListener(java.awt.event.MouseListener l)
 public synchronized void removeMouseListener(java.awt.event.MouseListener l)

mouseMotion

 public synchronized void addMouseMotionListener(java.awt.event.MouseMotionListener l)
 public synchronized void removeMouseMotionListener(java.awt.event.MouseMotionListener l)

selection

 public void addSelectionListener(borland.jbcl.model.VectorSelectionListener l)
 public void removeSelectionListener(borland.jbcl.model.VectorSelectionListener l)

subfocus

 public void addSubfocusListener(borland.jbcl.model.VectorSubfocusListener l)
 public void removeSubfocusListener(borland.jbcl.model.VectorSubfocusListener l)