public class DownloadRelationMemberTask extends PleaseWaitRunnable
| Modifier and Type | Field and Description |
|---|---|
private boolean |
canceled |
private Collection<OsmPrimitive> |
children |
private OsmDataLayer |
curLayer |
private Exception |
lastException |
private MultiFetchServerObjectReader |
objectReader |
private Set<Relation> |
parents |
progressMonitor| Constructor and Description |
|---|
DownloadRelationMemberTask(Collection<Relation> parents,
Collection<OsmPrimitive> children,
OsmDataLayer curLayer)
Creates a download task for downloading the child primitives
children for all parent
relations in parents. |
DownloadRelationMemberTask(Relation parent,
Collection<OsmPrimitive> children,
OsmDataLayer curLayer) |
DownloadRelationMemberTask(Relation parent,
Collection<OsmPrimitive> children,
OsmDataLayer curLayer,
Dialog dialog) |
| Modifier and Type | Method and Description |
|---|---|
protected String |
buildDownloadFeedbackMessage() |
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 Exception lastException
private Collection<OsmPrimitive> children
private OsmDataLayer curLayer
private MultiFetchServerObjectReader objectReader
public DownloadRelationMemberTask(Relation parent, Collection<OsmPrimitive> children, OsmDataLayer curLayer, Dialog dialog)
public DownloadRelationMemberTask(Relation parent, Collection<OsmPrimitive> children, OsmDataLayer curLayer)
public DownloadRelationMemberTask(Collection<Relation> parents, Collection<OsmPrimitive> children, OsmDataLayer curLayer)
children for all parent
relations in parents.parents - the collection of parent relationschildren - the collection of child primitives to downloadcurLayer - the current OSM layerprotected void cancel()
PleaseWaitRunnablecancel in class PleaseWaitRunnableprotected void finish()
PleaseWaitRunnablefinish in class PleaseWaitRunnableprotected String buildDownloadFeedbackMessage()
protected void realRun() throws SAXException, IOException, OsmTransferException
PleaseWaitRunnablerealRun in class PleaseWaitRunnableSAXExceptionIOExceptionOsmTransferException