org.vectomatic.dom.svg.impl
Class ExternalSVGResourcePrototype

java.lang.Object
  extended by 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

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.vectomatic.dom.svg.ui.ExternalSVGResource
ExternalSVGResource.Validated
 
Constructor Summary
ExternalSVGResourcePrototype(String name, String url, SVGResource[] cache, int index)
          Constructor
 
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
 

Constructor Detail

ExternalSVGResourcePrototype

public ExternalSVGResourcePrototype(String name,
                                    String url,
                                    SVGResource[] cache,
                                    int index)
Constructor

Parameters:
name - The resource name
url - The resource URL
cache - A cache of loaded resource
index - The index for this resource in the cache
Method Detail

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.