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