All Downloads are FREE. Search and download functionalities are using the official Maven repository.

playn.core.AutoClientBundleWithLookup Maven / Gradle / Ivy

There is a newer version: 2.0.8
Show newest version
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(); }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy