borland.jbcl Packages  borland.jbcl Class Hierarchy  borland.jbcl.view 

TabsetView 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
                                           +----borland.jbcl.control.TabsetControl

About the TabsetView component

Variables  Constructors  Properties  Methods  Event Listeners

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

The TabsetView component is a view element for developing new composite components that simulate a set of mutually exclusive tabs, like tabs in a notebook, such as those commonly used in tabbed dialogs. It requires a VectorModel data model and a VectorViewManager view manager.


TabsetView variables

Variables implemented in this class

Variables implemented in borland.jbcl.view.BeanPanel

Variables implemented in java.awt.Component

TabsetView constructors

TabsetView properties

*Read-only properties **Write-only properties

Properties implemented in this class

Properties implemented in borland.jbcl.view.BeanPanel

Properties implemented in java.awt.Component

Properties implemented in java.awt.Container

Properties implemented in java.lang.Object

TabsetView methods

Methods implemented in this class

Methods implemented in borland.jbcl.view.BeanPanel

Methods implemented in java.awt.Component

Methods implemented in java.awt.Container

Methods implemented in java.awt.Panel

Methods implemented in java.lang.Object

TabsetView event listeners


TabsetView variables

defaultPainter

  protected ItemPainter defaultPainter

model

  protected transient VectorModel model

selection

  protected transient WritableVectorSelection selection

viewManager

  protected transient VectorViewManager viewManager

writeModel

  protected transient WritableVectorModel writeModel

TabsetView constructors

TabsetView()

  public TabsetView()
Creates a TabsetView object with no tabs and TOP alignment.


TabsetView properties

alignment

 public int getAlignment()
 public void setAlignment(int align)

clientBordered

 public boolean isClientBordered()
 public void setClientBordered(boolean bordered)
When true, a raised border is drawn around the (non-tab) client area. This property defaults to false.

doubleBuffer

 public boolean isDoubleBuffer()
 public void setDoubleBuffer(boolean doubleBuffer)

focusAware

 public boolean isFocusAware()
 public void setFocusAware(boolean focusAware)

itemMargins

 public Insets getItemMargins()
 public void setItemMargins(java.awt.Insets margins)

labels

 public String[] getLabels()
 public void setLabels(java.lang.String[] labels)
Stores the array of String labels that are displayed in the tabs. Duplicate label strings are not allowed.

model

 public VectorModel getModel()
 public void setModel(borland.jbcl.model.VectorModel vm)
Specifies the data model object that provides items for the component. The TabsetView component requires a vector model. This property is required and must be set.

preferredSize

 public Dimension getPreferredSize()

readOnly

 public boolean isReadOnly()
 public void setReadOnly(boolean ro)
Determines whether the user may change the data displayed in the component at runtime. The readOnly property also returns true if the model is not writable.

selectedIndex

 public int getSelectedIndex()
 public void setSelectedIndex(int index)
A single-selection property that reflects the tab number of the currently selected tab. The first tab is tab number zero. If no tab is selected, getSelectedIndex returns -1.

selectedTab

 public String getSelectedTab()
 public void setSelectedTab(java.lang.Object item)
Reflects the label of the currently selected tab. If no tab is selected, setSelectedTab() returns null.

selection

 public WritableVectorSelection getSelection()
 public void setSelection(borland.jbcl.model.WritableVectorSelection vs)
The selection object that holds a list of the items that are currently selected.

subfocus

 public int getSubfocus()
 public void setSubfocus(int subfocus)
Subfocus for tabs always corresponds directly with the single selection.

tabsOnTop

 public boolean isTabsOnTop()
 public void setTabsOnTop(boolean tabsOnTop)

thickBorder

 public boolean isThickBorder()
 public void setThickBorder(boolean thickBorder)
When true, a raised border is drawn around the (non-tab) client area.

viewManager

 public VectorViewManager getViewManager()
 public void setViewManager(borland.jbcl.model.VectorViewManager viewManager)
Determines the view manager object that handles viewer and editor selection for this component. This property is required and must be set.

writeModel

 public WritableVectorModel getWriteModel()
Read-only property that specifies the model object used for writing data. Set this property to null if readOnly is true or the model is not writable.


TabsetView methods

addTab(int, java.lang.Object)

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

addTab(java.lang.Object)

  public void addTab(java.lang.Object item)

adjustScrollbar()

  protected void adjustScrollbar()

doLayout()

  public void doLayout()

Overrides: java.awt.Container.doLayout()

getLabel(int)

  public String getLabel(int index)
Returns the label of the tab at the specified index. The first tab is tab number zero. Returns null if the specified index is out of range.

hitTest(int, int)

  public int hitTest(int x, int y)

insets()

  public Insets insets()
Returns the insets of the view, taking into account the alignment of the tabs.

Overrides: java.awt.Container.insets()

paint(java.awt.Graphics)

  public void paint(java.awt.Graphics pg)
Paints the portion of the component that has changed since the last painting was done.

Overrides: java.awt.Container.paint(Graphics)

preProcessSubfocusEvent(borland.jbcl.model.VectorSubfocusEvent)

  protected boolean preProcessSubfocusEvent(borland.jbcl.model.VectorSubfocusEvent e)

processFocusEvent(java.awt.event.FocusEvent)

  protected void processFocusEvent(java.awt.event.FocusEvent e)
The view always repaints when it gets focus.

Overrides: borland.jbcl.view.ViewPanel.processFocusEvent(FocusEvent)

processKeyPressed(java.awt.event.KeyEvent)

  protected void processKeyPressed(java.awt.event.KeyEvent e)
Handles the following keys when they are pressed:
Home Selects the first tab
Left Selects the tab to the left
Right Selects the tab to the right of the currently selected tab
End Seleects the last tab

Overrides: borland.jbcl.view.ViewPanel.processKeyPressed(KeyEvent)

processMousePressed(java.awt.event.MouseEvent)

  protected void processMousePressed(java.awt.event.MouseEvent e)
Selects a tab if the mouse clicks it.

Overrides: borland.jbcl.view.ViewPanel.processMousePressed(MouseEvent)

processSubfocusEvent(borland.jbcl.model.VectorSubfocusEvent)

  protected void processSubfocusEvent(borland.jbcl.model.VectorSubfocusEvent e)

removeTab(java.lang.Object)

  public void removeTab(java.lang.Object item)

renameTab(java.lang.String, java.lang.String)

  public void renameTab(java.lang.String oldName, java.lang.String newName)

Changes the label of the tab with the oldName to the newName.

repaintTab(int)

  public void repaintTab(int index)

scrollCheck(int, int)

  protected boolean scrollCheck(int x, int y)

scrollLeft()

  protected void scrollLeft()

scrollRight()

  protected void scrollRight()

selectTab(int)

  protected void selectTab(int index)

setBorderHeight(int)

  protected void setBorderHeight(int height)

setLabel(int, java.lang.Object)

  public void setLabel(int index, java.lang.Object item)

updateTabInfo()

  protected void updateTabInfo()

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