|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ValidatingFormModel
Sub-interface implemented by form models that can validate its own properties.
Field Summary | |
---|---|
static String |
VALIDATING_PROPERTY
|
Fields inherited from interface org.springframework.binding.form.FormModel |
---|
COMMITTABLE_PROPERTY, DIRTY_PROPERTY, ENABLED_PROPERTY, READONLY_PROPERTY |
Method Summary | |
---|---|
void |
clearValidationMessage(ValidationMessage validationMessage)
Clear validation messages that are generated by a process separate from the standard Validator. |
boolean |
getHasErrors()
Does this ValidatingFormModel or any of its children contain errors? |
ValidationResultsModel |
getValidationResults()
Returns the ValidationResultsModel which encapsulates the set of validation messages currently active against this form model. |
Validator |
getValidator()
Get the validator that will be used to validate the form model. |
boolean |
isValidating()
Is this form model currently validating? |
void |
raiseValidationMessage(ValidationMessage validationMessage)
Provide validation messages that are generated by a process separate from the standard Validator. |
void |
setValidating(boolean validating)
Sets whether or not validation is currently enabled for this form model. |
void |
setValidator(Validator validator)
Set the validator that will be used to validate the form model. |
void |
validate()
Forces the form model to validate its self. |
Methods inherited from interface org.springframework.binding.form.ConfigurableFormModel |
---|
add, add, add, addMethod, addMethod, setEnabled, setId, setReadOnly |
Methods inherited from interface org.springframework.binding.form.HierarchicalFormModel |
---|
addChild, getChildren, getParent, removeChild, removeParent, setParent |
Methods inherited from interface org.springframework.binding.form.FormModel |
---|
addCommitListener, commit, getFieldFace, getFieldMetadata, getFieldNames, getFormObject, getFormObjectHolder, getId, getValueModel, getValueModel, hasValueModel, isBuffered, isCommittable, isDirty, isEnabled, isReadOnly, registerPropertyConverter, removeCommitListener, reset, revert, setFormObject |
Methods inherited from interface org.springframework.binding.value.PropertyChangePublisher |
---|
addPropertyChangeListener, addPropertyChangeListener, removePropertyChangeListener, removePropertyChangeListener |
Field Detail |
---|
static final String VALIDATING_PROPERTY
Method Detail |
---|
ValidationResultsModel getValidationResults()
boolean getHasErrors()
boolean isValidating()
void setValidating(boolean validating)
void validate()
Validator getValidator()
void setValidator(Validator validator)
void raiseValidationMessage(ValidationMessage validationMessage)
All error messages that are raised using this method must be cleared
using the method #cleanValdationMessage(ValidationMessage)
before
the form model can be commited.
validationMessage
- the message to raisevoid clearValidationMessage(ValidationMessage validationMessage)
validationMessage
- the message to clear
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |