Implement addClass on View.