Class ChangesetContentDownloadTask
java.lang.Object
org.openstreetmap.josm.actions.downloadtasks.AbstractDownloadTask<Set<Changeset>>
org.openstreetmap.josm.actions.downloadtasks.AbstractChangesetDownloadTask
org.openstreetmap.josm.actions.downloadtasks.ChangesetContentDownloadTask
- All Implemented Interfaces:
DownloadTask
This is an asynchronous task for downloading the changeset content of a collection of changesets.
- Since:
- 2689
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescription(package private) classNested classes/interfaces inherited from class org.openstreetmap.josm.actions.downloadtasks.AbstractChangesetDownloadTask
AbstractChangesetDownloadTask.RunnableDownloadTask -
Field Summary
Fields inherited from class org.openstreetmap.josm.actions.downloadtasks.AbstractDownloadTask
downloadedData, zoomAfterDownload -
Constructor Summary
ConstructorsConstructorDescriptionChangesetContentDownloadTask(int changesetId) Creates a download task for a single changesetChangesetContentDownloadTask(Component parent, int changesetId) Creates a download task for a single changesetChangesetContentDownloadTask(Component parent, Collection<Integer> changesetIds) Creates a download task for a collection of changesets.ChangesetContentDownloadTask(Collection<Integer> changesetIds) Creates a download task for a collection of changesets. -
Method Summary
Modifier and TypeMethodDescriptionprotected static booleanisAvailableLocally(int changesetId) Replies true if the localChangesetCachealready includes the changeset with idchangesetId.Methods inherited from class org.openstreetmap.josm.actions.downloadtasks.AbstractChangesetDownloadTask
cancel, download, download, getConfirmationMessage, loadUrl, setDownloadTaskMethods inherited from class org.openstreetmap.josm.actions.downloadtasks.AbstractDownloadTask
acceptsUrl, acceptsUrl, getDownloadedData, getDownloadProjectionBounds, getErrorObjects, getPatterns, getTitle, isCanceled, isFailed, isSafeForRemotecontrolRequests, 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
-
ChangesetContentDownloadTask
Creates a download task for a single changeset- Parameters:
changesetId- the changeset id. > 0 required.- Throws:
IllegalArgumentException- if changesetId <= 0
-
ChangesetContentDownloadTask
Creates a download task for a collection of changesets. null values and id <=0 in the collection are silently discarded.- Parameters:
changesetIds- the changeset ids. Empty collection assumed, if null.
-
ChangesetContentDownloadTask
Creates a download task for a single changeset- Parameters:
parent- the parent component for thePleaseWaitDialog. Must not benull.changesetId- the changeset id.>0required.- Throws:
IllegalArgumentException- ifchangesetId <= 0IllegalArgumentException- if parent isnull
-
ChangesetContentDownloadTask
Creates a download task for a collection of changesets. null values and id <=0 in the collection are silently discarded.- Parameters:
parent- the parent component for thePleaseWaitDialog. Must not benull.changesetIds- the changeset ids. Empty collection assumed, ifnull.- Throws:
IllegalArgumentException- if parent isnull
-
-
Method Details
-
isAvailableLocally
Replies true if the localChangesetCachealready includes the changeset with idchangesetId.- Parameters:
changesetId- the changeset id- Returns:
- true if the local
ChangesetCachealready includes the changeset with idchangesetId
-