com.google.gwt.user.rebind.ui
Class ImageBundleGenerator
java.lang.Object
Generator
com.google.gwt.user.rebind.ui.ImageBundleGenerator
public class ImageBundleGenerator
- extends Generator
Generates an implementation of a user-defined interface T that
extends ImageBundle.
Each method in T must be declared to return
AbstractImagePrototype, take no
parameters, and optionally specify the metadata tag gwt.resource
as the name of an image that can be found in the classpath. In the absence of
the metatadata tag, the method name with an extension of
.png, .jpg, or .gif defines the name of the image, and the
image file must be located in the same package as T.
|
Method Summary |
java.lang.String |
generate(TreeLogger logger,
GeneratorContext context,
java.lang.String typeName)
|
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ImageBundleGenerator
public ImageBundleGenerator()
- Default constructor for image bundle. Locates resources using this class's
own class loader.
generate
public java.lang.String generate(TreeLogger logger,
GeneratorContext context,
java.lang.String typeName)
throws UnableToCompleteException
- Throws:
UnableToCompleteException