Class DownloadNotesUrlBoundsTask
java.lang.Object
org.openstreetmap.josm.actions.downloadtasks.AbstractDownloadTask<NoteData>
org.openstreetmap.josm.actions.downloadtasks.DownloadNotesTask
org.openstreetmap.josm.actions.downloadtasks.DownloadNotesUrlBoundsTask
- All Implemented Interfaces:
DownloadTask
Specialized task for downloading OSM notes within bounds.
It handles one URL pattern: openstreetmap website URL with #map? argument.
- Since:
- 8195
-
Nested Class Summary
Nested classes/interfaces inherited from class org.openstreetmap.josm.actions.downloadtasks.DownloadNotesTask
DownloadNotesTask.DownloadBoundingBoxTask, DownloadNotesTask.DownloadCompressedRawUrlTask, DownloadNotesTask.DownloadRawUrlTask, DownloadNotesTask.DownloadTask -
Field Summary
Fields inherited from class org.openstreetmap.josm.actions.downloadtasks.DownloadNotesTask
DAYS_CLOSED, DOWNLOAD_LIMIT, warnAboutEmptyAreaFields inherited from class org.openstreetmap.josm.actions.downloadtasks.AbstractDownloadTask
downloadedData, zoomAfterDownload -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionString[]Returns regular expressions that match the URLsgetTitle()Returns human-readable description of the taskFuture<?>loadUrl(DownloadParams settings, String url, ProgressMonitor progressMonitor) Asynchronously launches the download task for a given bounding URL.Methods inherited from class org.openstreetmap.josm.actions.downloadtasks.DownloadNotesTask
cancel, download, download, getConfirmationMessage, getDownloadProjectionBounds, isSafeForRemotecontrolRequestsMethods inherited from class org.openstreetmap.josm.actions.downloadtasks.AbstractDownloadTask
acceptsUrl, acceptsUrl, getDownloadedData, getErrorObjects, isCanceled, isFailed, patterns, rememberDownloadedData, rememberErrorMessage, rememberException, setCanceled, setFailed, setZoomAfterDownload, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.openstreetmap.josm.actions.downloadtasks.DownloadTask
acceptsDocumentationSummary, getErrorMessages, providesOldData
-
Constructor Details
-
DownloadNotesUrlBoundsTask
public DownloadNotesUrlBoundsTask()
-
-
Method Details
-
loadUrl
Description copied from interface:DownloadTaskAsynchronously launches the download task for a given bounding URL.Set progressMonitor to null, if the task should create, open, and close a progress monitor. Set progressMonitor to
NullProgressMonitor.INSTANCEif progress information is to be discarded.- Specified by:
loadUrlin interfaceDownloadTask- Overrides:
loadUrlin classDownloadNotesTask- Parameters:
settings- download settingsurl- the url to download fromprogressMonitor- the progressMonitor- Returns:
- the future representing the asynchronous task
- See Also:
-
getPatterns
Description copied from interface:DownloadTaskReturns regular expressions that match the URLs- Specified by:
getPatternsin interfaceDownloadTask- Overrides:
getPatternsin classDownloadNotesTask- Returns:
- The array of accepted URL patterns
-
getTitle
Description copied from interface:DownloadTaskReturns human-readable description of the task- Specified by:
getTitlein interfaceDownloadTask- Overrides:
getTitlein classDownloadNotesTask- Returns:
- The task description
-