|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface FieldDefinition
Defines a field used in the UI that is mapped to a property of the command object.
| Method Summary | |
|---|---|
java.util.List |
getAlternateFieldKeysForError()
Gets the alternateFieldKeysForError for this LayoutFieldDefinition. |
java.lang.String |
getFieldKey()
|
Condition |
getMandatoryCondition()
Retrieves all mandatory conditions which this Field definition contains. |
int |
getMaxLength()
looks inside validation rules and returns maxLength if such a validation rule is defined |
java.util.List |
getValidationRules()
|
boolean |
isMandatory()
|
void |
setAlternateFieldKeysForError(java.util.List alternateFieldKeysForError)
Retrieves the alternateFieldKeysForError for this LayoutFieldDefinition. |
void |
setFieldKey(java.lang.String fieldKey)
|
void |
setMandatory(boolean mandatory)
|
void |
setMandatoryCondition(Condition mandatoryCondition)
|
void |
setValidationRules(java.util.List validationRules)
|
void |
validate(javax.servlet.http.HttpServletRequest request,
NestedPathResolver resolver,
org.springframework.beans.BeanWrapper wrapper,
org.springframework.validation.Errors errors)
Calls validate on all validation rules associated with this fieldDefinition. |
| Method Detail |
|---|
void validate(javax.servlet.http.HttpServletRequest request,
NestedPathResolver resolver,
org.springframework.beans.BeanWrapper wrapper,
org.springframework.validation.Errors errors)
request - the current requestresolver - nestedPath resolver for the current objectwrapper - a bean wrapper for the current objecterrors - the current errors objectjava.lang.String getFieldKey()
void setFieldKey(java.lang.String fieldKey)
fieldKey - The fieldKey to set.boolean isMandatory()
void setMandatory(boolean mandatory)
mandatory - The mandatory to set.void setMandatoryCondition(Condition mandatoryCondition)
mandatoryCondition, - sets a single mandatory condition.Condition getMandatoryCondition()
java.util.List getValidationRules()
void setValidationRules(java.util.List validationRules)
validationRules - The validationRules to set.void setAlternateFieldKeysForError(java.util.List alternateFieldKeysForError)
java.util.List getAlternateFieldKeysForError()
alternateFieldKeysForError - int getMaxLength()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||