uic.plugins
Class QTabWidget

java.lang.Object
  |
  +--uic.plugins.AbstractWidget
        |
        +--uic.plugins.QTabWidget
All Implemented Interfaces:
MultiPanelInterface

public class QTabWidget
extends AbstractWidget
implements MultiPanelInterface


Field Summary
 
Fields inherited from class uic.plugins.AbstractWidget
BACKGROUNDCOLOR, debug, debugGrid, file, FOREGROUNDCOLOR, horizontalAlign, MAXIMUMSIZE, MINIMUMSIZE, name, properties, sourceVersion, tab, translator, variableManager, verticalAlign, widgetElement
 
Constructor Summary
QTabWidget(FileWriter file, Element e)
           
 
Method Summary
 String addPanel(int index)
          On panels which can have multiple panels we add each 'child' seperately, this method is called and the plugin is expected to create a new container for that child.
 String writeConstruct()
          Print the construction of the java widget.
 
Methods inherited from class uic.plugins.AbstractWidget
getHorizontalAlign, getSourceVersion, getVerticalAlign, name, setDebug, setDebugGrid, setSourceVersion, setTranslator, setVariableManager, writeDefaultProperties, writeDefaultProperties, writeGlobalMethods, writePostConstruct
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

QTabWidget

public QTabWidget(FileWriter file,
                  Element e)
Method Detail

writeConstruct

public String writeConstruct()
                      throws IOException
Description copied from class: AbstractWidget
Print the construction of the java widget. The base construction is done here, this is the first method invoced.

Specified by:
writeConstruct in class AbstractWidget
Returns:
name The name of the constructed class that should be added to a container.
IOException

addPanel

public String addPanel(int index)
                throws IOException
Description copied from interface: MultiPanelInterface
On panels which can have multiple panels we add each 'child' seperately, this method is called and the plugin is expected to create a new container for that child. For a QTabWidget each call will add a new tab, and return the (generated) name on which the widgets can be placed.

Specified by:
addPanel in interface MultiPanelInterface
Parameters:
index - A zero based index on which child will be added.
Returns:
name of the (empty) child container.
IOException


Copyright © 2002,2003 Thomas Zander