T
- The type of the data that a download source uses.public interface DownloadSource<T>
Plugins may implement this to provide new download sources to the main download dialog.
Modifier and Type | Method and Description |
---|---|
AbstractDownloadSourcePanel<T> |
createPanel(DownloadDialog dialog)
Creates a panel with GUI specific for the download source.
|
void |
doDownload(T data,
DownloadSettings settings)
Downloads the data.
|
java.lang.String |
getLabel()
Returns a string representation of this download source.
|
boolean |
onlyExpert()
Defines whether this download source should be visible only in the expert mode.
|
AbstractDownloadSourcePanel<T> createPanel(DownloadDialog dialog)
dialog
- the parent download dialog, as DownloadDialog.getInstance()
might not be initialized yetAbstractDownloadSourcePanel
.void doDownload(T data, DownloadSettings settings)
data
- The required data for the download source.settings
- The global settings of the download dialog, see DownloadDialog
.java.lang.String getLabel()
boolean onlyExpert()
true
if the download source should be visible only in the
expert mode, false
otherwise.