Hi,
I'm trying to get my app working with GWT2 and was wondering if
there's anything wrong about the following code:
public interface MyImages extends ClientBundle {
public static final MyImages INSTANCE = GWT.create
(MyImages.class);
@Source("small.png")
ImageResource logo();
}
public class Foo {
public Foo() {
Image img = new Image(MyImages.INSTANCE.logo());
}
}
Is it acceptable to keep all my images in one ClientBundle? Is there a
better way to do this? Thanks in advance!
--
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.