|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.jgoodies.validation.util.AbstractValidationResultModel
com.jgoodies.validation.util.DefaultValidationResultModel
public class DefaultValidationResultModel
A default implementation of the ValidationResultModel interface
that holds a ValidationResult.
| Field Summary |
|---|
| Fields inherited from interface com.jgoodies.validation.ValidationResultModel |
|---|
PROPERTYNAME_ERRORS, PROPERTYNAME_MESSAGES, PROPERTYNAME_RESULT, PROPERTYNAME_SEVERITY |
| Constructor Summary | |
|---|---|
DefaultValidationResultModel()
Constructs a DefaultValidationResultModel initialized with an empty validation result. |
|
| Method Summary | |
|---|---|
ValidationResult |
getResult()
Returns this model's validation result. |
void |
setResult(ValidationResult newResult)
Sets a new validation result and notifies all registered listeners about changes of the result itself and the properties for severity, errors and messages. |
| Methods inherited from class com.jgoodies.validation.util.AbstractValidationResultModel |
|---|
addPropertyChangeListener, addPropertyChangeListener, firePropertyChange, firePropertyChange, firePropertyChanges, getPropertyChangeListeners, getPropertyChangeListeners, getSeverity, hasErrors, hasMessages, removePropertyChangeListener, removePropertyChangeListener |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DefaultValidationResultModel()
| Method Detail |
|---|
public final ValidationResult getResult()
ValidationResultModel.setResult(ValidationResult)public void setResult(ValidationResult newResult)
#validate() method.
newResult - the validation result to be set
java.lang.NullPointerException - if the new result is nullgetResult(),
ValidationResultModelContainer.setResult(ValidationResult)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||