public class DownloadRelationMemberTask extends PleaseWaitRunnable
Modifier and Type | Field and Description |
---|---|
private boolean |
canceled |
private java.util.Collection<OsmPrimitive> |
children |
private OsmDataLayer |
curLayer |
private java.lang.Exception |
lastException |
private MultiFetchServerObjectReader |
objectReader |
private java.util.Set<Relation> |
parents |
progressMonitor
Constructor and Description |
---|
DownloadRelationMemberTask(java.util.Collection<Relation> parents,
java.util.Collection<OsmPrimitive> children,
OsmDataLayer curLayer)
Creates a download task for downloading the child primitives
children for all parent
relations in parents . |
DownloadRelationMemberTask(Relation parent,
java.util.Collection<OsmPrimitive> children,
OsmDataLayer curLayer) |
DownloadRelationMemberTask(Relation parent,
java.util.Collection<OsmPrimitive> children,
OsmDataLayer curLayer,
java.awt.Dialog dialog) |
Modifier and Type | Method and Description |
---|---|
protected java.lang.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, run
private boolean canceled
private java.lang.Exception lastException
private java.util.Collection<OsmPrimitive> children
private OsmDataLayer curLayer
private MultiFetchServerObjectReader objectReader
public DownloadRelationMemberTask(Relation parent, java.util.Collection<OsmPrimitive> children, OsmDataLayer curLayer, java.awt.Dialog dialog)
public DownloadRelationMemberTask(Relation parent, java.util.Collection<OsmPrimitive> children, OsmDataLayer curLayer)
public DownloadRelationMemberTask(java.util.Collection<Relation> parents, java.util.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()
PleaseWaitRunnable
cancel
in class PleaseWaitRunnable
protected void finish()
PleaseWaitRunnable
finish
in class PleaseWaitRunnable
protected java.lang.String buildDownloadFeedbackMessage()
protected void realRun() throws org.xml.sax.SAXException, java.io.IOException, OsmTransferException
PleaseWaitRunnable
realRun
in class PleaseWaitRunnable
org.xml.sax.SAXException
- if a SAX error occursjava.io.IOException
- if an I/O error occursOsmTransferException
- if a communication error with the OSM server occurs