Normally you would add a classname to your widget and then inject a
stylesheet that makes use of that additional class name.
For example if you have a widget whose root CSS class is .myWidget and you
want to make one instance of that widget red then you can add the class
.makeRed and inject stylesheet that looks like .myWidget.makeRed {
background-color:red; }
If you need to change all widget in a container to be a little different
then you would apply a css class to the container and use CSS to override
the widgets inside that container, e.g.
.myRedContainer .myWidget,
.myRedContainer .myOtherWidget { background-color:red; }
As you use GSS and ClientBundle/CssResource you can use @Import and
@ImportedWithPrefix to make one CssResource accessible in a different one:
http://www.gwtproject.org/javadoc/latest/com/google/gwt/resources/client/CssResource.Import.html
-- J.
--
You received this message because you are subscribed to the Google Groups "GWT
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.