org.utgenome.gwt.widget.client
Class ImageLoader

java.lang.Object
  extended by org.utgenome.gwt.widget.client.ImageLoader

public class ImageLoader
extends Object

Provides a mechanism for deferred execution of a callback method once all specified Images are loaded.


Nested Class Summary
static interface ImageLoader.CallBack
          Interface to allow anonymous instantiation of a CallBack Object with method that gets invoked when all the images are loaded.
 
Method Summary
static void loadImages(String[] urls, ImageLoader.CallBack cb)
          Takes in an array of url Strings corresponding to the images needed to be loaded.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

loadImages

public static void loadImages(String[] urls,
                              ImageLoader.CallBack cb)
Takes in an array of url Strings corresponding to the images needed to be loaded. The onImagesLoaded() method in the specified CallBack object is invoked with an array of ImageHandles corresponding to the original input array of url Strings once all the images report an onload event.

Parameters:
urls - Array of urls for the images that need to be loaded
cb - CallBack object


Copyright © 2007-2012 utgenome.org. All Rights Reserved.