Class ChangesetContentDownloadTask
- java.lang.Object
-
- org.openstreetmap.josm.actions.downloadtasks.AbstractDownloadTask<java.util.Set<Changeset>>
-
- org.openstreetmap.josm.actions.downloadtasks.AbstractChangesetDownloadTask
-
- org.openstreetmap.josm.actions.downloadtasks.ChangesetContentDownloadTask
-
- All Implemented Interfaces:
DownloadTask
public class ChangesetContentDownloadTask extends AbstractChangesetDownloadTask
This is an asynchronous task for downloading the changeset content of a collection of changesets.- Since:
- 2689
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) class
ChangesetContentDownloadTask.DownloadTask
-
Nested 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
Constructors Constructor Description ChangesetContentDownloadTask(int changesetId)
Creates a download task for a single changesetChangesetContentDownloadTask(java.awt.Component parent, int changesetId)
Creates a download task for a single changesetChangesetContentDownloadTask(java.awt.Component parent, java.util.Collection<java.lang.Integer> changesetIds)
Creates a download task for a collection of changesets.ChangesetContentDownloadTask(java.util.Collection<java.lang.Integer> changesetIds)
Creates a download task for a collection of changesets.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description protected static boolean
isAvailableLocally(int changesetId)
Replies true if the localChangesetCache
already includes the changeset with idchangesetId
.-
Methods inherited from class org.openstreetmap.josm.actions.downloadtasks.AbstractChangesetDownloadTask
cancel, download, download, getConfirmationMessage, loadUrl, setDownloadTask
-
Methods 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, toString
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.openstreetmap.josm.actions.downloadtasks.DownloadTask
acceptsDocumentationSummary, getErrorMessages
-
-
-
-
Constructor Detail
-
ChangesetContentDownloadTask
public ChangesetContentDownloadTask(int changesetId)
Creates a download task for a single changeset- Parameters:
changesetId
- the changeset id. > 0 required.- Throws:
java.lang.IllegalArgumentException
- if changesetId <= 0
-
ChangesetContentDownloadTask
public ChangesetContentDownloadTask(java.util.Collection<java.lang.Integer> changesetIds)
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
public ChangesetContentDownloadTask(java.awt.Component parent, int changesetId)
Creates a download task for a single changeset- Parameters:
parent
- the parent component for thePleaseWaitDialog
. Must not benull
.changesetId
- the changeset id.>0
required.- Throws:
java.lang.IllegalArgumentException
- ifchangesetId <= 0
java.lang.IllegalArgumentException
- if parent isnull
-
ChangesetContentDownloadTask
public ChangesetContentDownloadTask(java.awt.Component parent, java.util.Collection<java.lang.Integer> changesetIds)
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:
java.lang.IllegalArgumentException
- if parent isnull
-
-
Method Detail
-
isAvailableLocally
protected static boolean isAvailableLocally(int changesetId)
Replies true if the localChangesetCache
already includes the changeset with idchangesetId
.- Parameters:
changesetId
- the changeset id- Returns:
- true if the local
ChangesetCache
already includes the changeset with idchangesetId
-
-