playn.core.AutoClientBundleWithLookup Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of playn-html Show documentation
Show all versions of playn-html Show documentation
The PlayN HTML (GWT) backend
package playn.core;
import com.google.gwt.resources.client.ResourcePrototype;
public interface AutoClientBundleWithLookup {
/**
* Find a resource by the name of the function in which it is declared. For example, place this
* file in your 'resources/images' directory:
*
* {@code
* public interface ImagesAutoBundle extends AutoClientBundleWithLookup {
* static ImagesAutoBundle INSTANCE = GWT.create(ImagesAutoBundle.class);
* }
* }
*
* @param name the name of the desired resource
* @return the resource, or {@code null} if no such resource is defined.
*/
ResourcePrototype getResource(String name);
/**
* A convenience method to iterate over all ResourcePrototypes contained in the ClientBundle.
*/
ResourcePrototype[] getResources();
}