protected class LoadDataHandler.LoadDataTask extends DownloadOsmTask.AbstractInternalTask
Modifier and Type | Field and Description |
---|---|
protected String |
layerName |
dataSet, newLayer, zoomAfterDownload
progressMonitor
Constructor and Description |
---|
LoadDataTask(boolean newLayer,
DataSet dataSet,
String layerName)
Constructs a new
LoadDataTask . |
Modifier and Type | Method and Description |
---|---|
protected void |
cancel()
User pressed cancel button.
|
protected void |
finish()
Finish up the data work.
|
void |
realRun()
Called in the worker thread to do the actual work.
|
addNewLayerIfRequired, computeBbox, computeBboxAndCenterScale, createNewLayer, createNewLayer, getEditLayer, getFirstDataLayer, getNumDataLayers, loadData
afterFinish, canRunInBackground, getProgressMonitor, operationCanceled, run
public LoadDataTask(boolean newLayer, DataSet dataSet, String layerName)
LoadDataTask
.newLayer
- if true
, force download to a new layerdataSet
- data setlayerName
- layer namepublic void realRun()
PleaseWaitRunnable
realRun
in class PleaseWaitRunnable
protected void cancel()
PleaseWaitRunnable
cancel
in class PleaseWaitRunnable
protected void finish()
PleaseWaitRunnable
finish
in class PleaseWaitRunnable