public class OSMDownloadSource extends java.lang.Object implements DownloadSource<OSMDownloadSource.OSMDownloadData>
| Modifier and Type | Class and Description |
|---|---|
(package private) static class |
OSMDownloadSource.OSMDownloadData
Encapsulates data that is required to download from the OSM server.
|
static class |
OSMDownloadSource.OSMDownloadSourcePanel
The GUI representation of the OSM download source.
|
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
SIMPLE_NAME
The simple name for the
OSMDownloadSource.OSMDownloadSourcePanel |
| Constructor and Description |
|---|
OSMDownloadSource() |
| Modifier and Type | Method and Description |
|---|---|
AbstractDownloadSourcePanel<OSMDownloadSource.OSMDownloadData> |
createPanel(DownloadDialog dialog)
Creates a panel with GUI specific for the download source.
|
void |
doDownload(OSMDownloadSource.OSMDownloadData 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.
|
public static final java.lang.String SIMPLE_NAME
OSMDownloadSource.OSMDownloadSourcePanelpublic OSMDownloadSource()
public AbstractDownloadSourcePanel<OSMDownloadSource.OSMDownloadData> createPanel(DownloadDialog dialog)
DownloadSourcecreatePanel in interface DownloadSource<OSMDownloadSource.OSMDownloadData>dialog - the parent download dialog, as DownloadDialog.getInstance() might not be initialized yetAbstractDownloadSourcePanel.public void doDownload(OSMDownloadSource.OSMDownloadData data, DownloadSettings settings)
DownloadSourcedoDownload in interface DownloadSource<OSMDownloadSource.OSMDownloadData>data - The required data for the download source.settings - The global settings of the download dialog, see DownloadDialog.public java.lang.String getLabel()
DownloadSourcegetLabel in interface DownloadSource<OSMDownloadSource.OSMDownloadData>public boolean onlyExpert()
DownloadSourceonlyExpert in interface DownloadSource<OSMDownloadSource.OSMDownloadData>true if the download source should be visible only in the
expert mode, false otherwise.