|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.springlayout.web.layout.LayoutForm
public class LayoutForm
Default implementation of a Form
Field Summary | |
---|---|
protected java.lang.String |
controllerBeanName
|
protected java.util.Map |
fieldDefinitions
|
protected java.lang.String |
formAction
|
protected java.lang.String |
formName
|
Constructor Summary | |
---|---|
LayoutForm()
|
Method Summary | |
---|---|
void |
afterPropertiesSet()
Test to ensure that a controller has been provided to the class and all field definitions keys match the map key. |
java.lang.String |
getControllerBeanName()
Retrieves the controllerBeanName for this LayoutForm. |
java.util.Map |
getErrors(org.springframework.validation.Errors errors)
Gets errors for the current panel by retrieving all errors relating to fields defined for this panel from the errors object. |
FieldDefinition |
getFieldDefinition(java.lang.String path)
Gets a field definition from the fieldDefinitions map by the field path passed in. |
java.util.Map |
getFieldDefinitions()
|
java.lang.String |
getFormAction()
Gets the url for this panel |
java.lang.String |
getFormName()
|
boolean |
hasErrors(org.springframework.validation.Errors errors)
Checks the current panel for errors |
void |
setControllerBeanName(java.lang.String controllerBeanName)
Sets the controllerBeanName for this LayoutForm. |
void |
setFieldDefinitions(java.util.Map fieldDefinitions)
|
void |
setFormAction(java.lang.String formAction)
Sets the url for this panel. |
void |
setFormName(java.lang.String formName)
|
void |
validate(javax.servlet.http.HttpServletRequest request,
java.lang.Object obj,
org.springframework.validation.Errors errors)
Calls validate on all validation rules associated with the fieldDefinitions for this panel. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected java.util.Map fieldDefinitions
protected java.lang.String formName
protected java.lang.String formAction
protected java.lang.String controllerBeanName
Constructor Detail |
---|
public LayoutForm()
Method Detail |
---|
public java.util.Map getFieldDefinitions()
getFieldDefinitions
in interface Form
public void setFieldDefinitions(java.util.Map fieldDefinitions)
setFieldDefinitions
in interface Form
fieldDefinitions
- The fields to set.public FieldDefinition getFieldDefinition(java.lang.String path)
Form
getFieldDefinition
in interface Form
path
- the path of the property in the object graph
public void validate(javax.servlet.http.HttpServletRequest request, java.lang.Object obj, org.springframework.validation.Errors errors)
Form
validate
in interface Form
request
- the current HttpServletRequestobj
- the current command object to be validatederrors
- the current errors for this requestpublic java.util.Map getErrors(org.springframework.validation.Errors errors)
Form
getErrors
in interface Form
errors
- the current page errors
public boolean hasErrors(org.springframework.validation.Errors errors)
Form
hasErrors
in interface Form
errors
- the current page errors
public void afterPropertiesSet()
afterPropertiesSet
in interface org.springframework.beans.factory.InitializingBean
public java.lang.String getFormName()
getFormName
in interface Form
public void setFormName(java.lang.String formName)
setFormName
in interface Form
public java.lang.String getFormAction()
Form
getFormAction
in interface Form
public void setFormAction(java.lang.String formAction)
Form
setFormAction
in interface Form
public java.lang.String getControllerBeanName()
Form
getControllerBeanName
in interface Form
public void setControllerBeanName(java.lang.String controllerBeanName)
Form
setControllerBeanName
in interface Form
controllerBeanName
- Sets the controllerBeanName for this LayoutForm.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |