public class DownloadRelationTask extends PleaseWaitRunnable
OsmDataLayer| Modifier and Type | Field and Description |
|---|---|
private boolean |
canceled |
private java.lang.Exception |
lastException |
private OsmDataLayer |
layer |
private OsmServerObjectReader |
objectReader |
private java.util.Collection<Relation> |
relations |
progressMonitor| Constructor and Description |
|---|
DownloadRelationTask(java.util.Collection<Relation> relations,
OsmDataLayer layer)
Creates the download task
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
cancel()
User pressed cancel button.
|
protected void |
finish()
Finish up the data work.
|
protected void |
realRun()
Called in the worker thread to do the actual work.
|
afterFinish, canRunInBackground, getProgressMonitor, operationCanceled, runprivate boolean canceled
private java.lang.Exception lastException
private OsmDataLayer layer
private OsmServerObjectReader objectReader
public DownloadRelationTask(java.util.Collection<Relation> relations, OsmDataLayer layer) throws java.lang.IllegalArgumentException
relations - a collection of relations. Must not be null.layer - the layer which data is to be merged intojava.lang.IllegalArgumentException - thrown if relations is nulljava.lang.IllegalArgumentException - thrown if layer is nullprotected void cancel()
PleaseWaitRunnablecancel in class PleaseWaitRunnableprotected void finish()
PleaseWaitRunnablefinish in class PleaseWaitRunnableprotected void realRun() throws org.xml.sax.SAXException, java.io.IOException, OsmTransferException
PleaseWaitRunnablerealRun in class PleaseWaitRunnableorg.xml.sax.SAXExceptionjava.io.IOExceptionOsmTransferException