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 booleancanceledprotected intconflictsCountprotected java.lang.ExceptionlastExceptionprotected MultiFetchServerObjectReaderreader-
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 voidcancel()User pressed cancel button.protected MultiFetchServerObjectReadercreateReader()protected voidfinish()Finish up the data work.protected voidmergeDataSet(DataSet ds)Merges the primitives indsto the dataset of the edit layerprotected voidrefreshView(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:PleaseWaitRunnableUser pressed cancel button.- Specified by:
cancelin classPleaseWaitRunnable
-
createReader
protected MultiFetchServerObjectReader createReader()
-
mergeDataSet
protected void mergeDataSet(DataSet ds)
Merges the primitives indsto 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:PleaseWaitRunnableFinish 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:
finishin classPleaseWaitRunnable
-
-