public class DefaultValidationResultModel extends AbstractValidationResultModel
ValidationResultModel
interface
that holds a ValidationResult.PROPERTY_ERRORS, PROPERTY_MESSAGES, PROPERTY_RESULT, PROPERTY_SEVERITY, PROPERTYNAME_ERRORS, PROPERTYNAME_MESSAGES, PROPERTYNAME_RESULT, PROPERTYNAME_SEVERITY
Constructor and Description |
---|
DefaultValidationResultModel()
Constructs a DefaultValidationResultModel initialized
with an empty validation result.
|
Modifier and Type | Method and Description |
---|---|
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.
|
firePropertyChanges, getSeverity, hasErrors, hasMessages
addPropertyChangeListener, addPropertyChangeListener, addVetoableChangeListener, addVetoableChangeListener, createPropertyChangeSupport, fireIndexedPropertyChange, fireIndexedPropertyChange, fireIndexedPropertyChange, fireMultiplePropertiesChanged, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, fireVetoableChange, fireVetoableChange, fireVetoableChange, fireVetoableChange, fireVetoableChange, fireVetoableChange, getPropertyChangeListeners, getPropertyChangeListeners, getVetoableChangeListeners, getVetoableChangeListeners, removePropertyChangeListener, removePropertyChangeListener, removeVetoableChangeListener, removeVetoableChangeListener
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public DefaultValidationResultModel()
public final ValidationResult getResult()
ValidationResultModel.setResult(ValidationResult)
public void setResult(ValidationResult newResult)
#validate()
method.newResult
- the validation result to be setNullPointerException
- if newResult
is null
getResult()
,
ValidationResultModelContainer.setResult(ValidationResult)
Copyright © 2003-2011 JGoodies Karsten Lentzsch. All Rights Reserved.