Monday, September 6, 2010

UiBinder: ClientBundle with ImageResource & . How?

Hi Guys,

I'll try to be concise :) I do NOT want to use an external css file. All style should be in the ui.xml...

Client Bundle:
public interface MyClientBundle extends ClientBundle {
    @Source("loading.gif") ImageResource loading();
}

ui.xml
<ui:with type="blah.client.MyClientBundle" field="cb"/>
<ui:style>
.loader1 {
gwt-image: ????;
}
.loader2 {
background: ????;
}
.loader3 {
margin-left: ????;
}
</ui:style>

Questions:

Q: How can loader1.gwt-image be "loading.gif"?
Q: How can loader2.background be "loading.gif"?
Q: How can loader3.margin-left be "loading.gif.width"?

Thanks Heaps :)

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