Package org.apache.ofbiz.widget.renderer
Class FormRenderer
- java.lang.Object
-
- org.apache.ofbiz.widget.renderer.FormRenderer
-
public class FormRenderer extends java.lang.Object
A form rendering engine.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
module
-
Constructor Summary
Constructors Constructor Description FormRenderer(ModelForm modelForm, FormStringRenderer formStringRenderer)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static java.lang.String
getCurrentContainerId(ModelForm modelForm, java.util.Map<java.lang.String,java.lang.Object> context)
static java.lang.String
getCurrentFormName(ModelForm modelForm, java.util.Map<java.lang.String,java.lang.Object> context)
java.lang.String
getFocusFieldName()
static java.lang.String
getFocusFieldName(ModelForm modelForm, java.util.Map<java.lang.String,java.lang.Object> context)
void
render(java.lang.Appendable writer, java.util.Map<java.lang.String,java.lang.Object> context)
Renders this form to a writer, as defined with the FormStringRenderer implementation.
-
-
-
Constructor Detail
-
FormRenderer
public FormRenderer(ModelForm modelForm, FormStringRenderer formStringRenderer)
-
-
Method Detail
-
getCurrentContainerId
public static java.lang.String getCurrentContainerId(ModelForm modelForm, java.util.Map<java.lang.String,java.lang.Object> context)
-
getCurrentFormName
public static java.lang.String getCurrentFormName(ModelForm modelForm, java.util.Map<java.lang.String,java.lang.Object> context)
-
getFocusFieldName
public static java.lang.String getFocusFieldName(ModelForm modelForm, java.util.Map<java.lang.String,java.lang.Object> context)
-
getFocusFieldName
public java.lang.String getFocusFieldName()
-
render
public void render(java.lang.Appendable writer, java.util.Map<java.lang.String,java.lang.Object> context) throws java.lang.Exception
Renders this form to a writer, as defined with the FormStringRenderer implementation.- Parameters:
writer
- The Writer that the form text will be written tocontext
- Map containing the form context; the following are reserved words in this context: parameters (Map), isError (Boolean), itemIndex (Integer, for lists only, otherwise null), formName (String, optional alternate name for form, defaults to the value of the name attribute)- Throws:
java.lang.Exception
-
-