|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ValidationResultsModel
Adds the propertyChange and parent-child aspect to the
ValidationResults interface. Listeners can be registered on
validation changes of a specific property or on all changes. Additionally a
validationResultsModel has to be aware of its parent-child relationships to
forward these changes in its ValidationResults.
| Field Summary | |
|---|---|
static String |
HAS_ERRORS_PROPERTY
The name of the bound property hasErrors. |
static String |
HAS_INFO_PROPERTY
The name of the bound property hasInfos. |
static String |
HAS_WARNINGS_PROPERTY
The name of the bound property hasWarnings. |
| Method Summary | |
|---|---|
void |
add(ValidationResultsModel validationResultsModel)
Add a validationResultsModel as a child to this one. |
void |
addValidationListener(String propertyName,
ValidationListener listener)
Adds a listener that will be notified when there is any change to the set validation messages for the specified property. |
void |
addValidationListener(ValidationListener listener)
Adds a listener that will be notified when there is any change to the set of validation messages. |
void |
remove(ValidationResultsModel validationResultsModel)
Remove the given validationResultsModel from the list of children. |
void |
removeValidationListener(String propertyName,
ValidationListener listener)
Removes the provided validation listener. |
void |
removeValidationListener(ValidationListener listener)
Removes the provided validation listener. |
| Methods inherited from interface org.springframework.binding.validation.ValidationResults |
|---|
getHasErrors, getHasInfo, getHasWarnings, getMessageCount, getMessageCount, getMessageCount, getMessages, getMessages, getMessages |
| Methods inherited from interface org.springframework.binding.value.PropertyChangePublisher |
|---|
addPropertyChangeListener, addPropertyChangeListener, removePropertyChangeListener, removePropertyChangeListener |
| Field Detail |
|---|
static final String HAS_ERRORS_PROPERTY
static final String HAS_WARNINGS_PROPERTY
static final String HAS_INFO_PROPERTY
| Method Detail |
|---|
void addValidationListener(ValidationListener listener)
void removeValidationListener(ValidationListener listener)
void addValidationListener(String propertyName,
ValidationListener listener)
void removeValidationListener(String propertyName,
ValidationListener listener)
void add(ValidationResultsModel validationResultsModel)
validationResultsModel - void remove(ValidationResultsModel validationResultsModel)
validationResultsModel -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||