org.vectomatic.dom.svg.utils
Interface AsyncXmlLoaderCallback


public interface AsyncXmlLoaderCallback

Interface to process Xml payloads returned by AsyncXmlLoader.


Method Summary
 void onError(String resourceName, Throwable error)
          Method invoked if the resource could not be fetched
 void onSuccess(String resourceName, com.google.gwt.dom.client.Element root)
          Method invoked if the resource has successfully been loaded
 

Method Detail

onError

void onError(String resourceName,
             Throwable error)
Method invoked if the resource could not be fetched

Parameters:
resourceName - The name of the resource
error - An error describing why the resource could not be fetched.

onSuccess

void onSuccess(String resourceName,
               com.google.gwt.dom.client.Element root)
Method invoked if the resource has successfully been loaded

Parameters:
resourceName - The name of the resource
root - The root elment of the XML document corresponding to the resource


Copyright © 2012. All Rights Reserved.