Thursday, December 27, 2012

How to rewrite ClientBundle images to static uibinder images?

I know how to use images in general with uibinder, like:

.ui.xml:
<g:Image resource='{res.image}' />


.java:
public interface Resources extends ClientBundle {
    @Source("image.png")
    @ImageOptions(repeatStyle = RepeatStyle.None)
    ImageResource image();
}

But in case of static images, how can I use the same image in the same way, but without having to write any java code? Just using uibinder?

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/kwsys_7WlVgJ.
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