net.xoetrope.swt
Class XTabPanel

java.lang.Object
  extended by org.eclipse.swt.widgets.Widget
      extended by org.eclipse.swt.widgets.Control
          extended by org.eclipse.swt.widgets.Scrollable
              extended by org.eclipse.swt.widgets.Composite
                  extended by org.eclipse.swt.widgets.TabFolder
                      extended by net.xoetrope.swt.XTabPanel
All Implemented Interfaces:
Addable, XAttributedComponent, org.eclipse.swt.graphics.Drawable

public class XTabPanel
extends org.eclipse.swt.widgets.TabFolder
implements Addable, XAttributedComponent

A tab panel.

Copyright (c) Xoetrope Ltd., 2002-2004

$Revision: 2.4 $

License: see License.txt


Field Summary
 
Fields inherited from class org.eclipse.swt.widgets.Control
handle
 
Constructor Summary
XTabPanel(java.lang.Object parent)
          Create a new table
 
Method Summary
 org.eclipse.swt.widgets.Control add(org.eclipse.swt.widgets.Control comp)
          Add a new tab.
 void addTab(java.lang.String title, java.lang.String tooltip, org.eclipse.swt.widgets.Control panel)
          Add a new tab.
protected  void checkSubclass()
          Suppress the subclassing exception
 int setAttribute(java.lang.String attribName, java.lang.Object attribValue)
          Set one or more attributes of the component.
 
Methods inherited from class org.eclipse.swt.widgets.TabFolder
addSelectionListener, computeSize, computeTrim, getClientArea, getItem, getItemCount, getItems, getSelection, getSelectionIndex, indexOf, removeSelectionListener, setFont, setSelection, setSelection, setSelection
 
Methods inherited from class org.eclipse.swt.widgets.Composite
changed, getBackgroundMode, getChildren, getLayout, getLayoutDeferred, getTabList, isLayoutDeferred, layout, layout, layout, layout, setBackgroundMode, setFocus, setLayout, setLayoutDeferred, setTabList
 
Methods inherited from class org.eclipse.swt.widgets.Scrollable
getHorizontalBar, getVerticalBar
 
Methods inherited from class org.eclipse.swt.widgets.Control
addControlListener, addFocusListener, addHelpListener, addKeyListener, addMouseListener, addMouseMoveListener, addMouseTrackListener, addPaintListener, addTraverseListener, computeSize, forceFocus, getAccessible, getBackground, getBackgroundImage, getBorderWidth, getBounds, getEnabled, getFont, getForeground, getLayoutData, getLocation, getMenu, getMonitor, getParent, getShell, getSize, getToolTipText, getVisible, internal_dispose_GC, internal_new_GC, isEnabled, isFocusControl, isReparentable, isVisible, moveAbove, moveBelow, pack, pack, redraw, redraw, removeControlListener, removeFocusListener, removeHelpListener, removeKeyListener, removeMouseListener, removeMouseMoveListener, removeMouseTrackListener, removePaintListener, removeTraverseListener, setBackground, setBackgroundImage, setBounds, setBounds, setCapture, setCursor, setEnabled, setForeground, setLayoutData, setLocation, setLocation, setMenu, setParent, setRedraw, setSize, setSize, setToolTipText, setVisible, toControl, toControl, toDisplay, toDisplay, traverse, update
 
Methods inherited from class org.eclipse.swt.widgets.Widget
addDisposeListener, addListener, checkWidget, dispose, getData, getData, getDisplay, getStyle, isDisposed, isListening, notifyListeners, removeDisposeListener, removeListener, removeListener, setData, setData, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

XTabPanel

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

Parameters:
parent - parent object
Method Detail

checkSubclass

protected void checkSubclass()
Suppress the subclassing exception

Overrides:
checkSubclass in class org.eclipse.swt.widgets.TabFolder

add

public org.eclipse.swt.widgets.Control add(org.eclipse.swt.widgets.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,
                   org.eclipse.swt.widgets.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

setAttribute

public int setAttribute(java.lang.String attribName,
                        java.lang.Object attribValue)
Set one or more attributes of the component.

Specified by:
setAttribute in interface XAttributedComponent
Parameters:
attribName - the name of the attribute
attribValue - the value of the attribute
Returns:
0 for success, non zero for failure or to require some further action