Package org.apache.ofbiz.widget.model
Class FormFactory
- java.lang.Object
-
- org.apache.ofbiz.widget.model.FormFactory
-
public class FormFactory extends java.lang.Object
Widget Library - Form factory class
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
module
-
Constructor Summary
Constructors Constructor Description FormFactory()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ModelForm
createModelForm(org.w3c.dom.Document formFileDoc, ModelReader entityModelReader, DispatchContext dispatchContext, java.lang.String formLocation, java.lang.String formName)
static ModelForm
createModelForm(org.w3c.dom.Element formElement, ModelReader entityModelReader, DispatchContext dispatchContext, java.lang.String formLocation, java.lang.String formName)
static ModelForm
getFormFromLocation(java.lang.String resourceName, java.lang.String formName, ModelReader entityModelReader, DispatchContext dispatchContext)
static ModelForm
getFormFromWebappContext(java.lang.String resourceName, java.lang.String formName, javax.servlet.http.HttpServletRequest request)
static java.util.Map<java.lang.String,ModelForm>
getFormsFromLocation(java.lang.String resourceName, ModelReader entityModelReader, DispatchContext dispatchContext)
static java.util.Map<java.lang.String,ModelForm>
readFormDocument(org.w3c.dom.Document formFileDoc, ModelReader entityModelReader, DispatchContext dispatchContext, java.lang.String formLocation)
-
-
-
Method Detail
-
getFormsFromLocation
public static java.util.Map<java.lang.String,ModelForm> getFormsFromLocation(java.lang.String resourceName, ModelReader entityModelReader, DispatchContext dispatchContext) throws java.io.IOException, org.xml.sax.SAXException, javax.xml.parsers.ParserConfigurationException
- Throws:
java.io.IOException
org.xml.sax.SAXException
javax.xml.parsers.ParserConfigurationException
-
getFormFromLocation
public static ModelForm getFormFromLocation(java.lang.String resourceName, java.lang.String formName, ModelReader entityModelReader, DispatchContext dispatchContext) throws java.io.IOException, org.xml.sax.SAXException, javax.xml.parsers.ParserConfigurationException
- Throws:
java.io.IOException
org.xml.sax.SAXException
javax.xml.parsers.ParserConfigurationException
-
getFormFromWebappContext
public static ModelForm getFormFromWebappContext(java.lang.String resourceName, java.lang.String formName, javax.servlet.http.HttpServletRequest request) throws java.io.IOException, org.xml.sax.SAXException, javax.xml.parsers.ParserConfigurationException
- Throws:
java.io.IOException
org.xml.sax.SAXException
javax.xml.parsers.ParserConfigurationException
-
readFormDocument
public static java.util.Map<java.lang.String,ModelForm> readFormDocument(org.w3c.dom.Document formFileDoc, ModelReader entityModelReader, DispatchContext dispatchContext, java.lang.String formLocation)
-
createModelForm
public static ModelForm createModelForm(org.w3c.dom.Document formFileDoc, ModelReader entityModelReader, DispatchContext dispatchContext, java.lang.String formLocation, java.lang.String formName)
-
createModelForm
public static ModelForm createModelForm(org.w3c.dom.Element formElement, ModelReader entityModelReader, DispatchContext dispatchContext, java.lang.String formLocation, java.lang.String formName)
-
-