org.jdesktop.wonderland.client.assetmgr
Interface AssetManager.AssetProgressListener

All Known Implementing Classes:
WonderlandLoginDialog
Enclosing class:
AssetManager

public static interface AssetManager.AssetProgressListener

Used to indicate the status of an asset that is being downloaded


Method Summary
 void downloadCompleted(Asset asset)
          Indicates the download of the asset has finished successfull.
 void downloadFailed(Asset asset)
          Indicates the download of the asset has failed
 void downloadProgress(Asset asset, int readBytes, int percentage)
          Updates the amount the asset has been downloaded.
 

Method Detail

downloadProgress

void downloadProgress(Asset asset,
                      int readBytes,
                      int percentage)
Updates the amount the asset has been downloaded.

Parameters:
asset - The Asset being downloaded
readBytes - The number of bytes that have been ready
percentage - The percentage of the bytes read, or -1 if unknown

downloadFailed

void downloadFailed(Asset asset)
Indicates the download of the asset has failed

Parameters:
asset - The Asset whose download has failed

downloadCompleted

void downloadCompleted(Asset asset)
Indicates the download of the asset has finished successfull.

Parameters:
asset - The Asset whose download has completed


Open Wonderland - http://openwonderland.org