org.formaria.swt
Class TabPanel

java.lang.Object
  extended by TabFolder
      extended by org.formaria.swt.TabPanel
All Implemented Interfaces:
Addable

public class TabPanel
extends TabFolder
implements Addable

A tab panel.

Copyright (c) Formaria Ltd., 2008

$Revision: 2.4 $

License: see License.txt


Constructor Summary
TabPanel(java.lang.Object parent)
          Create a new table
 
Method Summary
 Control add(Control comp)
          Add a new tab.
 void addTab(java.lang.String title, java.lang.String tooltip, Control panel)
          Add a new tab.
protected  void checkSubclass()
          Suppress the subclassing exception
 java.lang.String getToolTip()
          Get the tooltip text
 void setToolTip(java.lang.String text)
          Set the tooltip text
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TabPanel

public TabPanel(java.lang.Object parent)
Create a new table

Parameters:
parent - parent object
Method Detail

checkSubclass

protected void checkSubclass()
Suppress the subclassing exception


add

public Control add(Control comp)
Add a new tab. The add method could not be overloaded so this method adds does the equivalent.

Specified by:
add in interface Addable
Parameters:
comp - The component to add
Returns:
the new component

addTab

public void addTab(java.lang.String title,
                   java.lang.String tooltip,
                   Control panel)
Add a new tab. The add method could not be overloaded so this method adds does the equivalent.

Parameters:
name - the name/caption of the tab component
panel - the content

setToolTip

public void setToolTip(java.lang.String text)
Set the tooltip text

Parameters:
text - the new text

getToolTip

public java.lang.String getToolTip()
Get the tooltip text

Returns:
the existing text if any