private void updateInfo ( ) { boolean oldInfo = hasInfo ; hasInfo = false ; if ( validationResults . getHasInfo ( ) ) { hasInfo = true ; } else { Iterator childIter = children . iterator ( ) ; while ( childIter . hasNext ( ) ) { ValidationResultsModel childModel = ( ValidationResultsModel ) childIter . next ( ) ; if ( childModel . getHasInfo ( ) ) { hasInfo = true ; break ; } } } firePropertyChange ( HAS_INFO_PROPERTY , oldInfo , hasInfo ) ; }
Revaluate the hasInfo property and fire an event if things have changed .