Monday, February 24, 2014

Re: CssResource inheritance and avoiding rule repetition on injection, possibility of an @Require?

Hi Jens,

Yea, this is definitely a good point.

Then any widget can inherit this minimal CssResource and define on its own how it will look like in enabled / disabled state (= you would not add enableddisabled.css to the various widgets @Source annotation although you extend HasEnabledDisabledStateCss).

I think this really is the best practice use of @Shared and inheritance, and as Thomas pointed out it shouldn't be used as a CssResource directly but only as an actual style interface.

You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
To post to this group, send email to
Visit this group at
For more options, visit

No comments:

Post a Comment