com.valhalla.pluginmanager
Class PluginDownloaderThread

java.lang.Object
  extended bycom.valhalla.pluginmanager.PluginDownloaderThread
All Implemented Interfaces:
java.lang.Runnable

public class PluginDownloaderThread
extends java.lang.Object
implements java.lang.Runnable

Downloads plugins

Version:
1.0
Author:
Adam Olsen

Constructor Summary
PluginDownloaderThread(PluginManager manager, java.util.ArrayList list)
          Sets up the thread
 
Method Summary
static double calculateSize(java.util.ArrayList list)
          Gets the size of the selected plugins in an array
 void run()
          Called by the enclosing Thread
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PluginDownloaderThread

public PluginDownloaderThread(PluginManager manager,
                              java.util.ArrayList list)
Sets up the thread

Parameters:
manager - the PluginManager that contains this thread
list - the list of plugins to download
Method Detail

run

public void run()
Called by the enclosing Thread

Specified by:
run in interface java.lang.Runnable

calculateSize

public static double calculateSize(java.util.ArrayList list)
Gets the size of the selected plugins in an array

Parameters:
list - the plugin list
Returns:
the size of the selected plugins