com.google.gwt.resources.client.impl
Class ExternalTextResourcePrototype
java.lang.Object
com.google.gwt.resources.client.impl.ExternalTextResourcePrototype
- All Implemented Interfaces:
- ExternalTextResource, ResourcePrototype
public class ExternalTextResourcePrototype
- extends java.lang.Object
- implements ExternalTextResource
Implements external resource fetching of TextResources.
|
Method Summary |
java.lang.String |
getName()
Returns the name of the function within the ClientBundle used to create the
ResourcePrototype. |
void |
getText(ResourceCallback<TextResource> callback)
Possibly fire off an HTTPRequest for the text resource. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ExternalTextResourcePrototype
public ExternalTextResourcePrototype(java.lang.String name,
java.lang.String url,
TextResource[] cache,
int index)
getName
public java.lang.String getName()
- Description copied from interface:
ResourcePrototype
- Returns the name of the function within the ClientBundle used to create the
ResourcePrototype.
- Specified by:
getName in interface ResourcePrototype
- Returns:
- the name of the function within the ClientBundle used to create the
ResourcePrototype
getText
public void getText(ResourceCallback<TextResource> callback)
throws ResourceException
- Possibly fire off an HTTPRequest for the text resource.
- Specified by:
getText in interface ExternalTextResource
- Throws:
ResourceException