I already read the hole doc but still cannot find a solution to my
problem, I'm surely missing something.
here is why I've done : this is an exemple of how I used the
CSSResource feature to retrieve a constant from the css file and use
it in the java side, and it works
public interface Resources extends ClientBundle{
@Source("TestParser.css")
public MyCSSResources css();
}
public interface MyCSSResources extends CssResource{
String testsize();
String small();
}
TestParser.css =>
@def small 1px;
.testsize {
font-size: 40px;
}
Somewhere in a java class =>
Resources resources = GWT.create(Resources.class);
label1.setStyleName(resources.css().testsize());
label1.setText(resources.css().small());
resources.css().ensureInjected();
Now what I want to do somehow is to retrieve the "font-size" value
instead of the constant!!
A simple example plz will be great!
Thanks
--
You received this message because you are subscribed to the Google Groups
"Google Web Toolkit" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/google-web-toolkit?hl=en.