|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.openstreetmap.josm.gui.PleaseWaitRunnable
org.openstreetmap.josm.actions.downloadtasks.DownloadReferrersTask
public class DownloadReferrersTask
The asynchronous task for downloading referring primitives
Field Summary | |
---|---|
private boolean |
canceled
|
private java.util.Map<java.lang.Long,OsmPrimitiveType> |
children
the collection of child primitives |
private java.lang.Exception |
lastException
|
private DataSet |
parents
the parents |
private OsmServerReader |
reader
|
private OsmDataLayer |
targetLayer
the target layer |
Fields inherited from class org.openstreetmap.josm.gui.PleaseWaitRunnable |
---|
progressMonitor |
Constructor Summary | |
---|---|
DownloadReferrersTask(OsmDataLayer targetLayer,
java.util.Collection<OsmPrimitive> children)
constructor |
|
DownloadReferrersTask(OsmDataLayer targetLayer,
long id,
OsmPrimitiveType type)
constructor |
|
DownloadReferrersTask(OsmDataLayer targetLayer,
java.util.Map<java.lang.Long,OsmPrimitiveType> children)
constructor |
|
DownloadReferrersTask(OsmDataLayer targetLayer,
PrimitiveId primitiveId)
constructor |
Method Summary | |
---|---|
protected void |
cancel()
User pressed cancel button. |
protected void |
downloadParents(long id,
OsmPrimitiveType type,
ProgressMonitor progressMonitor)
|
protected void |
finish()
Finish up the data work. |
protected void |
realRun()
Called in the worker thread to do the actual work. |
Methods inherited from class org.openstreetmap.josm.gui.PleaseWaitRunnable |
---|
afterFinish, canRunInBackground, getProgressMonitor, operationCanceled, run |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private boolean canceled
private java.lang.Exception lastException
private OsmServerReader reader
private OsmDataLayer targetLayer
private java.util.Map<java.lang.Long,OsmPrimitiveType> children
private DataSet parents
Constructor Detail |
---|
public DownloadReferrersTask(OsmDataLayer targetLayer, java.util.Collection<OsmPrimitive> children)
targetLayer
- the target layer for the downloaded primitives. Must not be null.children
- the collection of child primitives for which parents are to be downloadedpublic DownloadReferrersTask(OsmDataLayer targetLayer, java.util.Map<java.lang.Long,OsmPrimitiveType> children)
targetLayer
- the target layer for the downloaded primitives. Must not be null.primitives
- the collection of children for which parents are to be downloaded. Children
are specified by their id and their type.public DownloadReferrersTask(OsmDataLayer targetLayer, long id, OsmPrimitiveType type) throws java.lang.IllegalArgumentException
targetLayer
- the target layer. Must not be null.id
- the primitive id. id > 0 required.type
- the primitive type. type != null required
java.lang.IllegalArgumentException
- thrown if id <= 0
java.lang.IllegalArgumentException
- thrown if type == null
java.lang.IllegalArgumentException
- thrown if targetLayer == nullpublic DownloadReferrersTask(OsmDataLayer targetLayer, PrimitiveId primitiveId) throws java.lang.IllegalArgumentException
targetLayer
- the target layer. Must not be null.primitiveId
- a PrimitiveId object.
java.lang.IllegalArgumentException
- thrown if id <= 0
java.lang.IllegalArgumentException
- thrown if targetLayer == nullMethod Detail |
---|
protected void cancel()
PleaseWaitRunnable
cancel
in class PleaseWaitRunnable
protected void finish()
PleaseWaitRunnable
finish
in class PleaseWaitRunnable
protected void downloadParents(long id, OsmPrimitiveType type, ProgressMonitor progressMonitor) throws OsmTransferException
OsmTransferException
protected void realRun() throws org.xml.sax.SAXException, java.io.IOException, OsmTransferException
PleaseWaitRunnable
realRun
in class PleaseWaitRunnable
org.xml.sax.SAXException
java.io.IOException
OsmTransferException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |