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.TabsetPanel
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().
public TabsetPanel()Construct a default TabsetPanel with no tabs and TOP alignment.
public Insets getInsets()
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.
public final void setLayout(java.awt.LayoutManager mgr)
public Insets getMargins() public void setMargins(java.awt.Insets margins)
public Dimension getPreferredSize()
public Component getSelectedPage() public void setSelectedPage(java.awt.Component page)Specifies the selected page.
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)
public void addTab(int aheadOf, java.lang.String item)
public void addTab(java.lang.Object item)
Overrides: borland.jbcl.view.TabsetView.addTab(Object)
public void remove(java.awt.Component page)
Overrides: java.awt.Container.remove(Component)
public void removeAll()Removes all pages.
Overrides: java.awt.Container.removeAll()
public void removePage(java.awt.Component page)Removes the specified page.
public void removeTab(java.lang.String item)
Overrides: borland.jbcl.view.TabsetView.removeTab(java.lang.Object)
protected void updateTabInfo()
Overrides: borland.jbcl.view.TabsetView.updateTabInfo()
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)