uic.plugins
Class AbstractWidget

java.lang.Object
  |
  +--uic.plugins.AbstractWidget
Direct Known Subclasses:
General, KColorButton, KHSSelector, Line, QCheckBox, QComboBox, QGroupBox, QLabel, QLineEdit, QListBox, QListView, QMultiLineEdit, QProgressBar, QPushButton, QRadioButton, QSlider, QSpinBox, QTabWidget, QWizard

public abstract class AbstractWidget
extends Object


Field Summary
protected static int BACKGROUNDCOLOR
           
protected  boolean debug
           
protected  boolean debugGrid
           
protected  FileWriter file
           
protected static int FOREGROUNDCOLOR
           
protected  char horizontalAlign
           
protected static int MAXIMUMSIZE
           
protected static int MINIMUMSIZE
           
protected  String name
           
protected  Hashtable properties
           
protected  String sourceVersion
           
protected  String tab
           
protected  uic.helpers.Translator translator
           
protected  uic.helpers.VariableManager variableManager
           
protected  char verticalAlign
           
protected  Element widgetElement
           
 
Constructor Summary
AbstractWidget()
           
AbstractWidget(FileWriter file, Element e)
           
 
Method Summary
 char getHorizontalAlign()
           
 String getSourceVersion()
          The user specified sourcecode version, check when using 'newer' calls.
 char getVerticalAlign()
           
 String name()
           
 void setDebug(boolean d)
          alter the debugging settings.
 void setDebugGrid(boolean on)
          alter the debugging settings.
 void setSourceVersion(String ver)
          The user specified sourcecode version, check when using 'newer' calls.
 void setTranslator(uic.helpers.Translator t)
          Sets a translator for translation of on screen strings.
 void setVariableManager(uic.helpers.VariableManager vm)
          Sets the variableManager for unique names and global variables.
abstract  String writeConstruct()
          Print the construction of the java widget.
protected  void writeDefaultProperties(String className)
          Convenience method
protected  void writeDefaultProperties(String className, int options)
           
 void writeGlobalMethods()
          Print optional global methods (stuff outside the guiInit method).
 void writePostConstruct()
          Print initialisation code at the end of the guiInit method.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

name

protected String name

BACKGROUNDCOLOR

protected static final int BACKGROUNDCOLOR
See Also:
Constant Field Values

FOREGROUNDCOLOR

protected static final int FOREGROUNDCOLOR
See Also:
Constant Field Values

MINIMUMSIZE

protected static final int MINIMUMSIZE
See Also:
Constant Field Values

MAXIMUMSIZE

protected static final int MAXIMUMSIZE
See Also:
Constant Field Values

translator

protected uic.helpers.Translator translator

variableManager

protected uic.helpers.VariableManager variableManager

widgetElement

protected Element widgetElement

properties

protected Hashtable properties

debug

protected boolean debug

debugGrid

protected boolean debugGrid

tab

protected final String tab
See Also:
Constant Field Values

file

protected FileWriter file

sourceVersion

protected String sourceVersion

horizontalAlign

protected char horizontalAlign

verticalAlign

protected char verticalAlign
Constructor Detail

AbstractWidget

public AbstractWidget()

AbstractWidget

public AbstractWidget(FileWriter file,
                      Element e)
Method Detail

writeConstruct

public abstract String writeConstruct()
                               throws IOException
Print the construction of the java widget. The base construction is done here, this is the first method invoced.

Returns:
name The name of the constructed class that should be added to a container.
IOException

writePostConstruct

public void writePostConstruct()
                        throws IOException
Print initialisation code at the end of the guiInit method. Thinks printed here are stuff like the adding of default actions.

IOException

writeGlobalMethods

public void writeGlobalMethods()
                        throws IOException
Print optional global methods (stuff outside the guiInit method). When using own methods you can print them here to the output file. Make sure that you generate a unique name for the method!

IOException

setTranslator

public void setTranslator(uic.helpers.Translator t)
Sets a translator for translation of on screen strings.


setVariableManager

public void setVariableManager(uic.helpers.VariableManager vm)
Sets the variableManager for unique names and global variables.


setDebug

public void setDebug(boolean d)
alter the debugging settings.


setDebugGrid

public void setDebugGrid(boolean on)
alter the debugging settings.


writeDefaultProperties

protected void writeDefaultProperties(String className,
                                      int options)
                               throws IOException
IOException

writeDefaultProperties

protected void writeDefaultProperties(String className)
                               throws IOException
Convenience method

IOException

getHorizontalAlign

public char getHorizontalAlign()

getVerticalAlign

public char getVerticalAlign()

getSourceVersion

public String getSourceVersion()
The user specified sourcecode version, check when using 'newer' calls.


setSourceVersion

public void setSourceVersion(String ver)
The user specified sourcecode version, check when using 'newer' calls.


name

public String name()


Copyright © 2002,2003 Thomas Zander