borland Packages  Class Hierarchy  jbcl.control Package  Index 

TabsetControl component

java.lang.Object
   +----java.awt.Component
           +----java.awt.Container
                   +----com.sun.java.swing.JComponent
                           +----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, ImageObserver, MenuContainer, 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.

For examples using the TabsetControl, see


TabsetControl variables

Variables implemented in this class

Variables implemented in borland.jbcl.view.BeanPanel

Variables implemented in borland.jbcl.view.TabsetView

Variables implemented in com.sun.java.swing.JComponent

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 com.sun.java.swing.JComponent

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 com.sun.java.swing.JComponent

Methods implemented in java.awt.Component

Methods implemented in java.awt.Container

Methods implemented in java.lang.Object

TabsetControl event listeners


TabsetControl variables

textureName

  protected String textureName

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).

textureName

 public String getTextureName()
 public void setTextureName(java.lang.String path)
Determines the name of the Image file that is tiled on the background of the control to give the appearance of texture. Specify the file name and directory using the path parameter.

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)

ancestor

 public void addAncestorListener(com.sun.java.swing.event.AncestorListener )
 public void removeAncestorListener(com.sun.java.swing.event.AncestorListener )

component

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

container

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

focus

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

key

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

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 )
 public synchronized void removeMouseListener(java.awt.event.MouseListener )

mouseMotion

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

propertyChange

 public synchronized void addPropertyChangeListener(java.beans.PropertyChangeListener )
 public synchronized void removePropertyChangeListener(java.beans.PropertyChangeListener )

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)

vetoableChange

 public synchronized void addVetoableChangeListener(java.beans.VetoableChangeListener )
 public synchronized void removeVetoableChangeListener(java.beans.VetoableChangeListener )