Wednesday, February 1, 2012

Styling a custom CellList

Hello everybody,

I am having a tough time wrapping my mind around CSS resources. I have a subclass of AbstractCell that I want to style depending on its selected state. I found that I can subclass (or rather subinterface) CellList.Resources, define a CSS file with @Source("MyCellListResources.css") and use the .cellListSelectedItem selector in that file.

However, when I do this, the cellListSelectedItem becomes obfuscated, so I cannot use it in my main stylesheet linked in the host HTML file, and modifying MyCellListResources.css requires rebuilding the project. That won't do: styling is done by designers, not programmers; it must not require building the project and modifications should be applied with a simple page refresh.

Any hint on how I can achieve this?

Regards,
Olivier

--
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