private void updateErrors ( ) { boolean oldErrors = hasErrors ; hasErrors = false ; if ( validationResults . getHasErrors ( ) ) { hasErrors = true ; } else { Iterator childIter = children . iterator ( ) ; while ( childIter . hasNext ( ) ) { ValidationResultsModel childModel = ( ValidationResultsModel ) childIter . next ( ) ; if ( childModel . getHasErrors ( ) ) { hasErrors = true ; break ; } } } firePropertyChange ( HAS_ERRORS_PROPERTY , oldErrors , hasErrors ) ; }
Revaluate the hasErrors property and fire an event if things have changed .