|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object uic.UIC
public class UIC
UserInterface Compiler (http://uic.sf.net)
Nested Class Summary | |
---|---|
static class |
UIC.BuildSettings
|
Field Summary | |
---|---|
static String |
VERSION
|
Constructor Summary | |
---|---|
UIC(String filename)
Default constructor Same as calling new UIC(fileName,""); |
|
UIC(String filename,
String baseDir)
Constructor |
Method Summary | |
---|---|
void |
addConnections(Element connections)
|
Object |
compile(UIC.BuildSettings buildSettings)
|
Object |
compile(UIC.BuildSettings buildSettings,
ClassLoader loader)
|
static Hashtable |
getProperties(Element element)
|
static String |
getPropertyName(Element property)
|
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 |
static void |
main(String[] args)
|
void |
setBuildConfig(String widgetSet,
String postProcessor,
InputStream buildProperties)
Call this method to specify which widgetset and plugins are going to be used for building. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String VERSION
Constructor Detail |
---|
public UIC(String filename) throws JDOMException, IOException
new UIC(fileName,"");
JDOMException
IOException
public UIC(String filename, String baseDir) throws JDOMException, IOException
filename
- filename to convert from .ui to .java filebaseDir
- base directory that is part of the location of the ui file
but should not be part of the java package
JDOMException
IOException
Method Detail |
---|
public Object compile(UIC.BuildSettings buildSettings) throws IOException, CompilerException
IOException
CompilerException
public Object compile(UIC.BuildSettings buildSettings, ClassLoader loader) throws IOException, CompilerException
IOException
CompilerException
public void setBuildConfig(String widgetSet, String postProcessor, InputStream buildProperties) throws IOException
widgetSet
- the widgetset, or nullpostProcessor
- for the postProcessor, or nullbuildProperties
- for the uic.properties, or null
IOException
public void addConnections(Element connections)
public static Hashtable getProperties(Element element)
public static String getWidgetClassName(Element widget)
widget
- the widget to fetch the classname from
public static String getPropertyName(Element property)
public static String getPropertyValue(Element property)
property
- the property to fetch the property value from
public static void main(String[] args)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |