资 源 简 介
Various utility classes for GWT
```
ImageBundleMap Generator.
Many people have asked "how do I look up an Image in an ImageBundle by String name?", in some cases this would
be rather useful.
This package contains a Generator for an ImageBundleMap. It implements/creates both your ImageBundle and an
immutable Map
say you have an ImageBundle:
public interface AboutImageBundle extends ImageBundle
{
@Resource("about.png")
public AbstractImagePrototype aboutImage();
}
you create an interface that implements both ImageBundleMap and AboutImageBundle:
public interface TestImageBundleMap extends ImageBundleMap, AboutImageBundle
{
}
TestImageBundleMap tmap = GWT.create(TestImageBundleMap.class);
Now, tmap is both an AboutImageBundle and a Map, and you can use it both ways:
AbstractImagePrototype about = tmap.aboutIma