public interface

ClientBundleWithLookup

implements ClientBundle
com.google.gwt.resources.client.ClientBundleWithLookup

Class Overview

This is an extension of ClientBundle that allows for name-based lookup of resources. Note that the use of the methods defined within this interface will prevent the compiler from pruning any of the resources declared in the ClientBundle.

Summary

Public Methods
abstract ResourcePrototype getResource(String name)
Find a resource by the name of the function in which it is declared.
abstract ResourcePrototype[] getResources()
A convenience method to iterate over all ResourcePrototypes contained in the ClientBundle.

Public Methods

public abstract ResourcePrototype getResource (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.

public abstract ResourcePrototype[] getResources ()

A convenience method to iterate over all ResourcePrototypes contained in the ClientBundle.