public abstract class DownloadDialog extends Object
| Constructor and Description |
|---|
DownloadDialog() |
| Modifier and Type | Method and Description |
|---|---|
abstract File |
chooseFileEdt()
Acquires a destination File for a downloaded resource
by interacting with the user.
|
static DownloadDialog |
createSwingDialog(Component parent)
Returns an instance of this class based on a Swing JFileChooser.
|
static DownloadDialog |
createSystemDialog(Component parent)
Returns an instance of this class based on an AWT FileDialog.
|
Outcome |
userDownload(URL url)
Downloads the resource from a given URL to a file selected
interactively by the user.
|
public abstract File chooseFileEdt()
public Outcome userDownload(URL url)
url - location of resource to downloadpublic static DownloadDialog createSystemDialog(Component parent)
parent - parent componentpublic static DownloadDialog createSwingDialog(Component parent)
parent - parent componentCopyright © 2003-2025 CCLRC: Council for the Central Laboratory of the Research Councils. All Rights Reserved.