uic
Class UIC

java.lang.Object
  |
  +--uic.UIC

public class UIC
extends Object

UserInterface Compiler (http://uic.sf.net)


Field Summary
 boolean debugGrid
           
static int GRID
           
static int HORIZONTAL
           
 boolean makeDebugVersion
           
static int VERTICAL
           
 
Constructor Summary
UIC(String filename)
          Default constructor Same as calling new UIC(fileName,"");
UIC(String filename, String baseDir)
          Constructor
UIC(String filename, String baseDir, InputStream buildProperties)
           
 
Method Summary
 void compile()
           
static Hashtable getProperties(Element element)
           
static String getPropertyName(Element property)
          Method to get the name of the property, for example name and text are properties for label Returns property.getAttributeValue for new qt-designer xml files Otherwise return property.getChildText("name")
static String getPropertyValue(Element property)
          Method to get the value of the property, for example name and text are properties for label Returns properties first child for new qt-designer xml files Otherwise return properties second child
static String getWidgetClassName(Element widget)
          Method to get the class name of the widget Returns property.getAttributeValue for new qt-designer xml files Otherwise return property.getChildText
 boolean isHTMLBased(Element widget)
          Method to find out if the widget is suppost to behave like it has scaling (Html) type text
static void main(String[] args)
           
 void setSourceVersion(String ver)
          Sourcecode version, set to "1.3" for compatability (and less features)
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

HORIZONTAL

public static final int HORIZONTAL
See Also:
Constant Field Values

VERTICAL

public static final int VERTICAL
See Also:
Constant Field Values

GRID

public static final int GRID
See Also:
Constant Field Values

makeDebugVersion

public boolean makeDebugVersion

debugGrid

public boolean debugGrid
Constructor Detail

UIC

public UIC(String filename)
    throws JDOMException,
           IOException
Default constructor Same as calling new UIC(fileName,"");


UIC

public UIC(String filename,
           String baseDir)
    throws JDOMException,
           IOException
Constructor

Parameters:
filename - filename to convert from .ui to .java file
baseDir - base directory that is part of the location of the ui file but should not be part of the java package

UIC

public UIC(String filename,
           String baseDir,
           InputStream buildProperties)
    throws JDOMException,
           IOException
Method Detail

main

public static void main(String[] args)

compile

public void compile()
             throws IOException,
                    CompilerException
IOException
CompilerException

setSourceVersion

public void setSourceVersion(String ver)
Sourcecode version, set to "1.3" for compatability (and less features)


getProperties

public static Hashtable getProperties(Element element)

isHTMLBased

public boolean isHTMLBased(Element widget)
Method to find out if the widget is suppost to behave like it has scaling (Html) type text


getWidgetClassName

public static String getWidgetClassName(Element widget)
Method to get the class name of the widget Returns property.getAttributeValue for new qt-designer xml files Otherwise return property.getChildText

Parameters:
widget - the widget to fetch the classname from
Returns:
the classname

getPropertyName

public static String getPropertyName(Element property)
Method to get the name of the property, for example name and text are properties for label Returns property.getAttributeValue for new qt-designer xml files Otherwise return property.getChildText("name")

Parameters:
property - the property to fetch the property name from
Returns:
the property name

getPropertyValue

public static String getPropertyValue(Element property)
Method to get the value of the property, for example name and text are properties for label Returns properties first child for new qt-designer xml files Otherwise return properties second child

Parameters:
property - the property to fetch the property value from
Returns:
the property value


Copyright © 2002,2003 Thomas Zander