- extend
com.google.gwt.resources.client.ClientBundle
instead of ImageBundle - replace
@Resource
with@Source
(from ClientBundle) - the return types will need to change to
com.google.gwt.resources.client.ImageResource
for each of the image methods.
Instead of using the interface directly (after being runtime binded with
GWT.create()
), you will need to convert the ImageResource
to an AbstractImagePrototype
. This can be done by calling the create(ImageResource)
method.
The thing that is unfortunate about this, is all my
setIcon()
calls simply referred to a singleton instance of the images. Now they all need to convert to via the create()
call. Hopefully I can work out a nicer solution for the future.
The article that helped guide me in this came from the google wiki: ImageResource
Version Info
GXT: 2.1.0
GWT: 2.1.0
No comments:
Post a Comment