public class XMLFormBuilder extends XMLInterpreter implements FormBuilder
FormBuilder from a XML File| Modifier and Type | Field and Description |
|---|---|
protected String |
baseClasspath |
protected String |
defaultPackage |
protected Hashtable |
equivalenceLabelList |
protected static ExtendedFormXmlParser |
formParser |
static boolean |
INCLUDE_DEFAULT_LABELS |
protected String |
labelFileURI |
protected ModuleManager |
moduleManager |
IMPORT_TAG, LABELS_FILE, SILENT| Constructor and Description |
|---|
XMLFormBuilder(Hashtable equivalenceLabelList) |
XMLFormBuilder(Hashtable equivalenceLabelList,
String gUIClassPackage) |
XMLFormBuilder(String labelFileURI) |
XMLFormBuilder(String labelFileURI,
String guiClassesPackage) |
| Modifier and Type | Method and Description |
|---|---|
Form |
buildForm(Container parentContainer,
InputStream input)
Creates a
Form with the elements specified in the file. |
Form |
buildForm(Container parentContainer,
String fileURI)
Creates a
Form with the elements specified in the file. |
Form |
buildForm(Container parentContainer,
StringBuffer fileContent) |
String |
getBaseClasspath() |
Hashtable |
getCurrentLabelList() |
String |
getLabelFileURI() |
ModuleManager |
getModuleManager() |
protected Document |
performExtendedForm(Document doc,
String fileURI) |
protected void |
processChildren(CustomNode node,
Container parentContainer) |
void |
setBaseClasspath(String baseClasspath) |
void |
setModuleManager(ModuleManager moduleManager) |
createComponent, getDefaultLabelList, getDocumentModel, getDocumentModel, getDocumentModel, getDocumentTreeModel, getExtendedDocument, getExtendedDocument, getRoot, interpreterTag, processLabelFilepublic static boolean INCLUDE_DEFAULT_LABELS
protected String baseClasspath
protected String defaultPackage
protected Hashtable equivalenceLabelList
protected String labelFileURI
protected ModuleManager moduleManager
protected static ExtendedFormXmlParser formParser
public XMLFormBuilder(String labelFileURI) throws Exception
labelFileURI - URI to the labels file. Example 'http://.../xml/labels.xml'Exceptionpublic XMLFormBuilder(String labelFileURI, String guiClassesPackage) throws Exception
labelFileURI - guiClassesPackage - Exceptionpublic XMLFormBuilder(Hashtable equivalenceLabelList) throws Exception
Exceptionpublic Form buildForm(Container parentContainer, String fileURI)
FormBuilderForm with the elements specified in the file.buildForm in interface FormBuilderparentContainer - Container of the FormfileURI - Path of the file with the form definition ( typically XML)public Form buildForm(Container parentContainer, InputStream input)
FormBuilderForm with the elements specified in the file.buildForm in interface FormBuilderparentContainer - Container of the Forminput - InputStreampublic Form buildForm(Container parentContainer, StringBuffer fileContent) throws Exception
Exceptionprotected void processChildren(CustomNode node, Container parentContainer)
public String getLabelFileURI()
public String getBaseClasspath()
public void setBaseClasspath(String baseClasspath)
public Hashtable getCurrentLabelList()
public ModuleManager getModuleManager()
public void setModuleManager(ModuleManager moduleManager)
Copyright © 2016 Imatia Innovation S.L.. All rights reserved.