Monday, May 30, 2011

Re: CssResource + GWT widget

Unless you add an "@external gwt-Label;" (or "@external gwt-*;") line in your CssResource's CSS file, GWT will treat the gwt-Label class name just like any other, and will obfuscate it, so you'll have to setStyleName or addStyleName this obfuscated name (got back from the CssResource Java interface you declared) on your Label.

In other words, if you want to have a rule on the gwt-Label "unobfuscated" class name, you have to mark it as "@external".

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

No comments:

Post a Comment