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

TabsetPanel component

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

About the TabsetPanel component

Variables  Constructors  Properties  Methods  Event Listeners

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

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

The tabs are arranged horizontally, and can be drawn as either top tabs or bottom tabs. If there is not enough space allotted to display all the tabs, a scrollbar appears next to the tabs.

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, useful for internationalization.

Components are associated with the desired tab by specifying the label of that tab when adding the component with add().


TabsetPanel variables

Variables implemented in borland.jbcl.view.BeanPanel

Variables implemented in borland.jbcl.view.TabsetView

Variables implemented in java.awt.Component

TabsetPanel constructors

TabsetPanel 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

TabsetPanel methods

Methods implemented in this class

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

TabsetPanel event listeners


TabsetPanel constructors

TabsetPanel()

  public TabsetPanel()
Construct a default TabsetPanel with no tabs and TOP alignment.

TabsetPanel properties

insets

 public Insets getInsets()

labels

 public void setLabels(java.lang.String[] labels)
Allows setting of all labels at once. If one of the pages already exists, it will be left alone.

layout

 public final void setLayout(java.awt.LayoutManager mgr)

margins

 public Insets getMargins()
 public void setMargins(java.awt.Insets margins)

preferredSize

 public Dimension getPreferredSize()

selectedPage

 public Component getSelectedPage()
 public void setSelectedPage(java.awt.Component page)
Specifies the selected page.

TabsetPanel methods

addImpl(java.awt.Component, java.lang.Object, int)

  public void addImpl(java.awt.Component page, java.lang.Object label, int index)
Used when add(Component page, Object label) is called.

Overrides: java.awt.Container.addImpl(Component, Object, int)

addTab(int, java.lang.String)

  public void addTab(int aheadOf, java.lang.String item)

addTab(java.lang.Object)

  public void addTab(java.lang.Object item)

Overrides: borland.jbcl.view.TabsetView.addTab(Object)

remove(java.awt.Component)

  public void remove(java.awt.Component page)

Overrides: java.awt.Container.remove(Component)

removeAll()

  public void removeAll()
Removes all pages.

Overrides: java.awt.Container.removeAll()

removePage(java.awt.Component)

  public void removePage(java.awt.Component page)
Removes the specified page.

removeTab(java.lang.String)

  public void removeTab(java.lang.String item)

Overrides: borland.jbcl.view.TabsetView.removeTab(java.lang.Object)

updateTabInfo()

  protected void updateTabInfo()

Overrides: borland.jbcl.view.TabsetView.updateTabInfo()


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