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.
|
private void |
checkLayer() |
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 final java.util.Collection<OsmPrimitive> children
private final 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 layerprivate void checkLayer()
protected void cancel()
PleaseWaitRunnablecancel in class PleaseWaitRunnableprotected void finish()
PleaseWaitRunnablefinish in class PleaseWaitRunnableprotected java.lang.String buildDownloadFeedbackMessage()
protected void realRun() throws org.xml.sax.SAXException, java.io.IOException, OsmTransferException
PleaseWaitRunnablerealRun in class PleaseWaitRunnableorg.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