public class MultipleDownload extends Observable implements Download, Observer
Download.State| Constructor and Description |
|---|
MultipleDownload(Collection<? extends Download> downloads,
String title)
Creates a new MultipleDownload object.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
Exception |
getCaughtException()
Returns the exception occurred while running this download.
|
Collection<? extends Download> |
getDownloads()
Getter for the collection of AbstractDownload objects.
|
int |
getDownloadsCompleted()
Returns the count of completed downloads this Download object encapsulates.
|
int |
getDownloadsErroneous()
Returns the count of erraneous downloads this Download object encapsulates.
|
int |
getDownloadsTotal()
Returns the count of downloads this Download object encapsulates.
|
JPanel |
getExceptionPanel(Exception exception)
Returns a JPanel which visualizes the given exception.
|
File |
getFileToSaveTo()
Returns the File object pointing to the destination download location.
|
Download.State |
getStatus()
Returns the current state of the download.
|
String |
getTitle()
Returns the title of the Download.
|
int |
hashCode() |
void |
setStatus(Download.State status)
Set the status of the download and notify the observers about that change.
|
void |
startDownload()
Notifies the download that it should start.
|
void |
update(Observable o,
Object arg) |
addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChangedclone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitaddObserver, deleteObserver, getProgresspublic MultipleDownload(Collection<? extends Download> downloads, String title)
downloads - A collection of AbstractDownloads which are to be downloaded by this multiple download.title - The title of the multiple download.public void startDownload()
DownloadstartDownload in interface Downloadpublic Download.State getStatus()
Downloadpublic void setStatus(Download.State status)
status - DOCUMENT ME!public int getDownloadsTotal()
DownloadgetDownloadsTotal in interface Downloadpublic int getDownloadsCompleted()
DownloadgetDownloadsCompleted in interface Downloadpublic int getDownloadsErroneous()
DownloadgetDownloadsErroneous in interface Downloadpublic File getFileToSaveTo()
DownloadgetFileToSaveTo in interface Downloadpublic Exception getCaughtException()
DownloadShould be changed in future releases to Map
getCaughtException in interface Downloadpublic String getTitle()
Downloadpublic JPanel getExceptionPanel(Exception exception)
DownloadgetExceptionPanel in interface Downloadexception - The exception to visualize.public Collection<? extends Download> getDownloads()
public void update(Observable o, Object arg)
Copyright © 2012–2026 cismet GmbH. All rights reserved.