In a CssResource, Can I return multiple style class names from the same method?
[please forgive any mistakes in code - I'm trying to recreate at home, from memory]. I have the following library code (which I can't change):
void render(ClientBundle1 bundle) {
setInnerHtml("<div class=\" + bundle.css().style() + \"/>");
}
The bundle is straight forward:
interface ClientBundle1 extends ClientBundle {
@Source("css1.css")
CssResource1 css();
}
and the css resource:
interface CssResource1 extends CssResource {
style1();
}
and the css1.css:
.style1 {width=10; height=20}
Now - I'd like to _partially_ override "style1" with another style (only override the height, not the width) of from my own css (css2.css). However, my css2.css is declared like this:
.style2 {height=30}
So I'd like to partially override css1.style1 with css2.style2 (different class name).
If this was vanilla HTML, I would've just written:
...import css1 then css2...
<div class="style1 style2"/>
However, since this is GWT, I would need something like this:
interface ClientBundle2 extends ClientBundle1 {
@Source("css1.css", "css2.css")
CssResource2 css();
}
and the css resource:
interface CssResource2 extends CssResource1 {
@Classname("style1", "style2")
style();
}
but of course, the above isn't possible in GWT.
Is there a way of assigning two style class names per a single style method?