Class ResourceLoader.ResourceLoadEvent

  • Enclosing class:
    ResourceLoader

    public static class ResourceLoader.ResourceLoadEvent
    extends Object
    Event fired when a resource has been loaded.
    • Constructor Detail

      • ResourceLoadEvent

        public ResourceLoadEvent​(ResourceLoader loader,
                                 String resourceData)
        Creates a new event.
        Parameters:
        loader - the resource loader that has loaded the resource
        resourceData - the url or content of the loaded resource or the JS expression that imports the resource
    • Method Detail

      • getResourceLoader

        public ResourceLoader getResourceLoader()
        Gets the resource loader that has fired this event.
        Returns:
        the resource loader
      • getResourceData

        public String getResourceData()
        Gets the absolute url or content of the loaded resource or the JS expression that imports the resource.
        Returns:
        the absolute url or content of the loaded resource or the JS expression that imports the resource