clearIcon method to HasIcon.