com.vaadin.terminal.gwt.client
Interface ResourceLoader.ResourceLoadListener

Enclosing class:
ResourceLoader

public static interface ResourceLoader.ResourceLoadListener

Event listener that gets notified when a resource has been loaded


Method Summary
 void onError(ResourceLoader.ResourceLoadEvent event)
          Notifies this ResourceLoadListener that a resource could not be loaded, e.g.
 void onLoad(ResourceLoader.ResourceLoadEvent event)
          Notifies this ResourceLoadListener that a resource has been loaded.
 

Method Detail

onLoad

void onLoad(ResourceLoader.ResourceLoadEvent event)
Notifies this ResourceLoadListener that a resource has been loaded. Some browsers do not support any way of detecting load errors. In these cases, onLoad will be called regardless of the status.

Parameters:
event - a resource load event with information about the loaded resource
See Also:
ResourceLoader.ResourceLoadEvent

onError

void onError(ResourceLoader.ResourceLoadEvent event)
Notifies this ResourceLoadListener that a resource could not be loaded, e.g. because the file could not be found or because the server did not respond. Some browsers do not support any way of detecting load errors. In these cases, onLoad will be called regardless of the status.

Parameters:
event - a resource load event with information about the resource that could not be loaded.
See Also:
ResourceLoader.ResourceLoadEvent


Copyright © 2000-2011 Vaadin Ltd. All Rights Reserved.