public void remove ( ValidationResultsModel validationResultsModel ) { if ( children . remove ( validationResultsModel ) ) { validationResultsModel . removeValidationListener ( this ) ; validationResultsModel . removePropertyChangeListener ( HAS_ERRORS_PROPERTY , this ) ; validationResultsModel . removePropertyChangeListener ( HAS_WARNINGS_PROPERTY , this ) ; validationResultsModel . removePropertyChangeListener ( HAS_INFO_PROPERTY , this ) ; if ( validationResultsModel . getMessageCount ( ) > 0 ) fireChangedEvents ( ) ; } }
Remove the given validationResultsModel from the list of children . Remove listeners and if it had messages fire events .