AbstractComponent.removeAllStyleNames()

I’d like to clear the styles of a component (a CssLayout). But there is no such method as “AbstractComponent.removeAllStyleNames()”.

Is there no other way than remembering which styles I applied to it and remove them one by one with removeStyleName ?

Thanks.
John.

I think Component.setStyleName(“”) or setStyleName(null) should do the exact same thing as removeAllStyleNames would.

The additional API wouldn’t hurt, though.

Thank you Jouni!