|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--uic.UIC
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 |
public static final int HORIZONTAL
public static final int VERTICAL
public static final int GRID
public boolean makeDebugVersion
public boolean debugGrid
| Constructor Detail |
public UIC(String filename)
throws JDOMException,
IOException
new UIC(fileName,"");
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
public UIC(String filename,
String baseDir,
InputStream buildProperties)
throws JDOMException,
IOException
| Method Detail |
public static void main(String[] args)
public void compile()
throws IOException,
CompilerException
IOException
CompilerExceptionpublic void setSourceVersion(String ver)
public static Hashtable getProperties(Element element)
public boolean isHTMLBased(Element widget)
public static String getWidgetClassName(Element widget)
widget - the widget to fetch the classname from
public static String getPropertyName(Element property)
property - the property to fetch the property name from
public static String getPropertyValue(Element property)
property - the property to fetch the property value from
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||