On Saturday, December 7, 2013 6:18:06 PM UTC+1, Nolan Brassard wrote:
>
> Is there a way to create an ImageResource from a URL?
>
> I have a scenario where I'd like to allow the user to give me a URL to an 
> image that will then be used as the Icon of a certain button later on. The 
> only way I know how to create an ImageResource is via a client bundle and 
> setting @Source. Is there another way to do this?
>

You can also just implement the interface (or use 
com.google.gwt.resources.client.impl.ImageResourcePrototype, but we don't 
guarantee forward-compatibility with future versions of GWT)
The main issue is that the code that uses ImageResource might make use of 
the image size, so you'd have to return accurate values for the URL. 

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" 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 http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to