|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.springframework.richclient.form.SimpleValidationResultsReporter
public class SimpleValidationResultsReporter
An implementation of ValidationResultsReporter that reports only a single
message from the configured validation results model to the associated
message receiver. More details of the searching process can be found in the
getValidationMessage(ValidationResults)
method.
Constructor Summary | |
---|---|
SimpleValidationResultsReporter(ValidationResultsModel resultsModel,
Messagable messageReceiver)
Constructor. |
Method Summary | |
---|---|
void |
clearErrors()
Clear the messageReceiver. |
protected ValidationMessage |
getValidationMessage(ValidationResults resultsModel)
Get the message that should be reported. |
boolean |
hasErrors()
Return the "has errors" status of the validation results model(s). |
void |
validationResultsChanged(ValidationResults results)
Handle a change in the validation results model. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SimpleValidationResultsReporter(ValidationResultsModel resultsModel, Messagable messageReceiver)
formModel
- ValidatingFormModel to monitor and report on.messageReceiver
- The receiver for validation messages.Method Detail |
---|
public void clearErrors()
public void validationResultsChanged(ValidationResults results)
validationResultsChanged
in interface ValidationListener
results
- the set of valiation results, this set will incude results
for all properties even if the listener is only listening for changes to
a specific properties results.protected ValidationMessage getValidationMessage(ValidationResults resultsModel)
Get the message that should be reported.
Searching takes following rules into account:
resultsModel
- Search this model to find the message.
public boolean hasErrors()
ValidationResultsReporter
hasErrors
in interface ValidationResultsReporter
ValidationResultsReporter.hasErrors()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |