org.gudy.azureus2.ui.swt.update
Class UpdateWindow

java.lang.Object
  extended by org.gudy.azureus2.ui.swt.update.UpdateWindow
All Implemented Interfaces:
ResourceDownloaderListener

public class UpdateWindow
extends Object
implements ResourceDownloaderListener

Author:
Olivier Chalouhi

Constructor Summary
UpdateWindow(UpdateMonitor _update_monitor, AzureusCore _azureus_core, UpdateCheckInstance _check_instance)
           
 
Method Summary
 void addUpdate(Update update)
           
 void buildWindow()
           
 boolean completed(ResourceDownloader downloader, InputStream data)
           
 void dispose()
           
 void failed(ResourceDownloader downloader, ResourceDownloaderException e)
           
 org.eclipse.swt.widgets.Shell getShell()
           
protected  boolean isDisposed()
           
 void reportActivity(ResourceDownloader downloader, String activity)
           
 void reportAmountComplete(ResourceDownloader downloader, long amount)
           
 void reportPercentComplete(ResourceDownloader downloader, int percentage)
           
protected  void rowSelected()
           
 void show()
           
protected  void updateAdditionComplete()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UpdateWindow

public UpdateWindow(UpdateMonitor _update_monitor,
                    AzureusCore _azureus_core,
                    UpdateCheckInstance _check_instance)
Method Detail

buildWindow

public void buildWindow()

rowSelected

protected void rowSelected()

getShell

public org.eclipse.swt.widgets.Shell getShell()

dispose

public void dispose()

addUpdate

public void addUpdate(Update update)

updateAdditionComplete

protected void updateAdditionComplete()

show

public void show()

reportPercentComplete

public void reportPercentComplete(ResourceDownloader downloader,
                                  int percentage)
Specified by:
reportPercentComplete in interface ResourceDownloaderListener

reportAmountComplete

public void reportAmountComplete(ResourceDownloader downloader,
                                 long amount)
Specified by:
reportAmountComplete in interface ResourceDownloaderListener

completed

public boolean completed(ResourceDownloader downloader,
                         InputStream data)
Specified by:
completed in interface ResourceDownloaderListener
Returns:
return true if the completed download is OK. If false is returned then if there are alternative download sources they will be tried. If there are no other sources then the download will be "failed"

failed

public void failed(ResourceDownloader downloader,
                   ResourceDownloaderException e)
Specified by:
failed in interface ResourceDownloaderListener

reportActivity

public void reportActivity(ResourceDownloader downloader,
                           String activity)
Specified by:
reportActivity in interface ResourceDownloaderListener

isDisposed

protected boolean isDisposed()