Class ChildRelationBrowser.DownloadTask
- java.lang.Object
-
- org.openstreetmap.josm.gui.PleaseWaitRunnable
-
- org.openstreetmap.josm.gui.dialogs.relation.ChildRelationBrowser.DownloadTask
-
- All Implemented Interfaces:
java.lang.Runnable
,ProgressMonitor.CancelListener
- Direct Known Subclasses:
ChildRelationBrowser.DownloadAllChildrenTask
,ChildRelationBrowser.DownloadRelationSetTask
- Enclosing class:
- ChildRelationBrowser
abstract class ChildRelationBrowser.DownloadTask extends PleaseWaitRunnable
-
-
Field Summary
Fields Modifier and Type Field Description protected boolean
canceled
protected int
conflictsCount
protected java.lang.Exception
lastException
protected MultiFetchServerObjectReader
reader
-
Fields inherited from class org.openstreetmap.josm.gui.PleaseWaitRunnable
progressMonitor
-
-
Constructor Summary
Constructors Constructor Description DownloadTask(java.lang.String title, java.awt.Dialog parent)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
cancel()
User pressed cancel button.protected MultiFetchServerObjectReader
createReader()
protected void
finish()
Finish up the data work.protected void
mergeDataSet(DataSet ds)
Merges the primitives inds
to the dataset of the edit layerprotected void
refreshView(Relation relation)
-
Methods inherited from class org.openstreetmap.josm.gui.PleaseWaitRunnable
afterFinish, canRunInBackground, getProgressMonitor, operationCanceled, realRun, run
-
-
-
-
Field Detail
-
canceled
protected boolean canceled
-
conflictsCount
protected int conflictsCount
-
lastException
protected java.lang.Exception lastException
-
reader
protected MultiFetchServerObjectReader reader
-
-
Constructor Detail
-
DownloadTask
DownloadTask(java.lang.String title, java.awt.Dialog parent)
-
-
Method Detail
-
cancel
protected void cancel()
Description copied from class:PleaseWaitRunnable
User pressed cancel button.- Specified by:
cancel
in classPleaseWaitRunnable
-
createReader
protected MultiFetchServerObjectReader createReader()
-
mergeDataSet
protected void mergeDataSet(DataSet ds)
Merges the primitives inds
to the dataset of the edit layer- Parameters:
ds
- the data set
-
refreshView
protected void refreshView(Relation relation)
-
finish
protected void finish()
Description copied from class:PleaseWaitRunnable
Finish up the data work. Is guaranteed to be called if realRun is called. Finish is called in the gui thread just after the dialog disappeared.- Specified by:
finish
in classPleaseWaitRunnable
-
-