borland.jbcl Packages borland.jbcl Class Hierarchy borland.jbcl.control
java.lang.Object +----java.awt.Component +----java.awt.Container +----java.awt.Panel +----borland.jbcl.view.BeanPanel +----borland.jbcl.view.TabsetView +----borland.jbcl.control.TabsetControl
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.
public TabsetControl()Creates a TabsetControl component with no tabs and TOP alignment.
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).
public synchronized void addActionListener(java.awt.event.ActionListener l) public synchronized void removeActionListener(java.awt.event.ActionListener l)
public synchronized void addComponentListener(java.awt.event.ComponentListener l) public synchronized void removeComponentListener(java.awt.event.ComponentListener l)
public synchronized void addContainerListener(java.awt.event.ContainerListener l) public void removeContainerListener(java.awt.event.ContainerListener l)
public synchronized void addFocusListener(java.awt.event.FocusListener l) public synchronized void removeFocusListener(java.awt.event.FocusListener l)
public synchronized void addKeyListener(java.awt.event.KeyListener l) public synchronized void removeKeyListener(java.awt.event.KeyListener l)
public void addModelListener(borland.jbcl.model.VectorModelListener l) public void removeModelListener(borland.jbcl.model.VectorModelListener l)
public synchronized void addMouseListener(java.awt.event.MouseListener l) public synchronized void removeMouseListener(java.awt.event.MouseListener l)
public synchronized void addMouseMotionListener(java.awt.event.MouseMotionListener l) public synchronized void removeMouseMotionListener(java.awt.event.MouseMotionListener l)
public void addSelectionListener(borland.jbcl.model.VectorSelectionListener l) public void removeSelectionListener(borland.jbcl.model.VectorSelectionListener l)
public void addSubfocusListener(borland.jbcl.model.VectorSubfocusListener l) public void removeSubfocusListener(borland.jbcl.model.VectorSubfocusListener l)