com.vaadin.terminal.gwt.client
Class ResourceLoader.ResourceLoadEvent

java.lang.Object
  extended by com.vaadin.terminal.gwt.client.ResourceLoader.ResourceLoadEvent
Enclosing class:
ResourceLoader

public static class ResourceLoader.ResourceLoadEvent
extends Object

Event fired when a resource has been loaded.


Constructor Summary
ResourceLoader.ResourceLoadEvent(ResourceLoader loader, String resourceUrl, boolean preload)
          Creates a new event.
 
Method Summary
 ResourceLoader getResourceLoader()
          Gets the resource loader that has fired this event
 String getResourceUrl()
          Gets the absolute url of the loaded resource.
 boolean isPreload()
          Returns true if the resource has been preloaded, false if it's fully loaded
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ResourceLoader.ResourceLoadEvent

public ResourceLoader.ResourceLoadEvent(ResourceLoader loader,
                                        String resourceUrl,
                                        boolean preload)
Creates a new event.

Parameters:
loader - the resource loader that has loaded the resource
resourceUrl - the url of the loaded resource
preload - true if the resource has only been preloaded, false if it's fully loaded
Method Detail

getResourceLoader

public ResourceLoader getResourceLoader()
Gets the resource loader that has fired this event

Returns:
the resource loader

getResourceUrl

public String getResourceUrl()
Gets the absolute url of the loaded resource.

Returns:
the absolute url of the loaded resource

isPreload

public boolean isPreload()
Returns true if the resource has been preloaded, false if it's fully loaded

Returns:
true if the resource has been preloaded, false if it's fully loaded
See Also:
ResourceLoader.preloadResource(String, ResourceLoadListener)


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