|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object uic.output.builder.UICBuilder
The builder that combines all widgets and can be passed to the instanciator or the fileWriter
Field Summary | |
protected ContainerRepresenter |
root
|
protected VariableManager |
varManager
|
Constructor Summary | |
UICBuilder(String packageName,
String className)
|
Method Summary | |
void |
addImplements(String implementsInterfaceName)
Add an interface the resulting class should implement. |
void |
addStaticMethodCall(MethodRepresenter method)
If you need a static method call during the construction of your container, add it here. |
ContainerRepresenter |
createContainer(String className)
Convenience method for the next one. |
ContainerRepresenter |
createContainer(String name,
String className)
Convenience method for the next one. |
ContainerRepresenter |
createContainer(String name,
String className,
boolean export)
Create a new container in the output. |
WidgetRepresenter |
createWidget(String className)
Convenience method for the next one. |
WidgetRepresenter |
createWidget(String className,
MethodRepresenter parent)
|
WidgetRepresenter |
createWidget(String className,
MethodRepresenter parent,
String name,
boolean export)
|
WidgetRepresenter |
createWidget(String name,
String className)
Convenience method for the next one. |
WidgetRepresenter |
createWidget(String name,
String className,
boolean export)
Create a new Widget in the output. |
String |
getClassName()
get the class name of the resulting class, a writer should name the file after this. |
String |
getExtends()
get the fullclasspath of the class that the new class should extend. |
Iterator |
getImplementsIter()
Get an iterator over a list of strings with the interfaces the new class should implement. |
String |
getPackageName()
get the package name of the resulting class. |
ContainerRepresenter |
getRootContainer()
Fetch the root container |
List |
getStaticMethodCalls()
|
WidgetRepresenter |
getWidget(String name)
Fetch a name widget that has been created earlier with the createWidget method. |
List |
getWidgets()
Get the list of all widgets registered. |
boolean |
isAbstractClass()
|
void |
setAsRoot(ContainerRepresenter container)
Make a container be the root container which means it will be 'attached' to the newly made class. |
void |
setClassName(String className)
get the class name of the resulting class, a writer should name the file after this. |
void |
setClassToAbstract(boolean on)
|
void |
setExtends(String extendsClassName)
Set the fullclasspath of the class that the new class should extend. |
void |
setPackageName(String packageName)
Set the package name of the resulting class. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected VariableManager varManager
protected ContainerRepresenter root
Constructor Detail |
public UICBuilder(String packageName, String className)
Method Detail |
public WidgetRepresenter createWidget(String className)
public WidgetRepresenter createWidget(String name, String className)
public WidgetRepresenter createWidget(String name, String className, boolean export)
name
- the name for the widget; this is the name that is used as the class-member name.className
- this can be two things; either the full class name (javax.swing.JPanel) or the
short-name you registered with addWidgetMappingexport
- mark the widget to be a package variable instead of being inlined.public WidgetRepresenter createWidget(String className, MethodRepresenter parent, String name, boolean export)
public WidgetRepresenter createWidget(String className, MethodRepresenter parent)
public WidgetRepresenter getWidget(String name)
public ContainerRepresenter createContainer(String className)
public ContainerRepresenter createContainer(String name, String className)
public ContainerRepresenter createContainer(String name, String className, boolean export)
name
- the name for the widget; this is the name that is used as the class-member name.className
- this can be two things; either the full class name (javax.swing.JPanel)export
- mark the widget to be a package variable instead of being inlined.public void setAsRoot(ContainerRepresenter container)
container
- which has previosly been registered using the createContainer method.public ContainerRepresenter getRootContainer()
public List getWidgets()
public void setPackageName(String packageName)
public String getPackageName()
public String getClassName()
public void setClassName(String className)
public void setExtends(String extendsClassName)
public String getExtends()
public void addImplements(String implementsInterfaceName)
public void setClassToAbstract(boolean on)
public boolean isAbstractClass()
public Iterator getImplementsIter()
public void addStaticMethodCall(MethodRepresenter method)
public List getStaticMethodCalls()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |