public class Downloader
extends javax.swing.SwingWorker<java.lang.Void,java.lang.Void>
implements java.beans.PropertyChangeListener
Modifier and Type | Field and Description |
---|---|
protected java.util.List<FileNode> |
_fileNodes |
protected java.io.File |
_targetDir |
protected long |
_totalBytes |
protected java.util.Map<DownloadWorker,java.lang.Integer> |
_workerMap |
Constructor and Description |
---|
Downloader(java.util.List<FileNode> fileNodes,
long totalBytes,
java.io.File targetDir) |
Modifier and Type | Method and Description |
---|---|
boolean |
cancel() |
protected java.lang.Void |
doInBackground() |
java.util.List<java.lang.String> |
getErrors() |
boolean |
hasErrors() |
protected void |
pause(long milliseconds) |
void |
propertyChange(java.beans.PropertyChangeEvent event) |
protected java.util.List<FileNode> _fileNodes
protected long _totalBytes
protected java.io.File _targetDir
protected java.util.Map<DownloadWorker,java.lang.Integer> _workerMap
public Downloader(java.util.List<FileNode> fileNodes, long totalBytes, java.io.File targetDir)
public boolean hasErrors()
public java.util.List<java.lang.String> getErrors()
protected java.lang.Void doInBackground()
doInBackground
in class javax.swing.SwingWorker<java.lang.Void,java.lang.Void>
public boolean cancel()
public void propertyChange(java.beans.PropertyChangeEvent event)
propertyChange
in interface java.beans.PropertyChangeListener
protected void pause(long milliseconds)
Copyright © 2004-2014 The YAWL Foundation.