com.google.gwt.libideas.resources.client
Interface ImmutableResourceBundle

All Known Subinterfaces:
FastTree.DefaultResources

public interface ImmutableResourceBundle

The use of this interface is similar to that of ImageBundle. Declare no-argument functions that return subclasses of ResourcePrototype, which are annotated with gwt.resource annotations specifying the classpath location of the resource to include in the output. At runtime, the functions will return an object that can be used to access the data in the original resource.


Method Summary
 ResourcePrototype getResource(java.lang.String name)
          Find a resource by the name of the function in which it is declared.
 ResourcePrototype[] getResources()
          A convenience method to iterate over all ResourcePrototypes contained in the ResourceBundle.
 

Method Detail

getResource

ResourcePrototype getResource(java.lang.String name)
Find a resource by the name of the function in which it is declared.

Parameters:
name - the name of the desired resource
Returns:
the resource, or null if no such resource is defined.

getResources

ResourcePrototype[] getResources()
A convenience method to iterate over all ResourcePrototypes contained in the ResourceBundle.