org.vectomatic.dom.svg.impl
Class ExternalSVGResourcePrototype
java.lang.Object
org.vectomatic.dom.svg.impl.ExternalSVGResourcePrototype
- All Implemented Interfaces:
- com.google.gwt.resources.client.ResourcePrototype, ExternalSVGResource
public class ExternalSVGResourcePrototype
- extends Object
- implements ExternalSVGResource
Implementation of ExternalSVGResource derived from Google's original
ExternalTextResourcePrototype implementation
- Author:
- laaglu
Method Summary |
String |
getName()
Returns the SVG resource name |
void |
getSvg(com.google.gwt.resources.client.ResourceCallback<SVGResource> callback)
Possibly fire off an HTTPRequest for the SVG resource. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ExternalSVGResourcePrototype
public ExternalSVGResourcePrototype(String name,
String url,
SVGResource[] cache,
int index)
- Constructor
- Parameters:
name
- The resource nameurl
- The resource URLcache
- A cache of loaded resourceindex
- The index for this resource in the cache
getName
public String getName()
- Returns the SVG resource name
- Specified by:
getName
in interface com.google.gwt.resources.client.ResourcePrototype
- Returns:
- the SVG resource name
getSvg
public void getSvg(com.google.gwt.resources.client.ResourceCallback<SVGResource> callback)
throws com.google.gwt.resources.client.ResourceException
- Possibly fire off an HTTPRequest for the SVG resource.
- Specified by:
getSvg
in interface ExternalSVGResource
- Parameters:
callback
- The request callback
- Throws:
com.google.gwt.resources.client.ResourceException
Copyright © 2012. All Rights Reserved.