org.openstreetmap.josm.actions.downloadtasks
Class DownloadOsmChangeTask.HistoryLoaderAndListener

java.lang.Object
  extended by org.openstreetmap.josm.gui.PleaseWaitRunnable
      extended by org.openstreetmap.josm.gui.history.HistoryLoadTask
          extended by org.openstreetmap.josm.actions.downloadtasks.DownloadOsmChangeTask.HistoryLoaderAndListener
All Implemented Interfaces:
java.lang.Runnable, HistoryDataSetListener, ProgressMonitor.CancelListener
Enclosing class:
DownloadOsmChangeTask

private static class DownloadOsmChangeTask.HistoryLoaderAndListener
extends HistoryLoadTask
implements HistoryDataSetListener

Loads history and updates incomplete primitives.


Field Summary
private  java.util.Map<OsmPrimitive,java.util.Date> toLoad
           
 
Fields inherited from class org.openstreetmap.josm.gui.PleaseWaitRunnable
progressMonitor
 
Constructor Summary
DownloadOsmChangeTask.HistoryLoaderAndListener(java.util.Map<OsmPrimitive,java.util.Date> toLoad)
           
 
Method Summary
 void historyDataSetCleared(HistoryDataSet source)
          Fired by a HistoryDataSet if the history cached is cleared.
 void historyUpdated(HistoryDataSet source, PrimitiveId id)
          Fired by a HistoryDataSet if the cached history of an OSM primitive with id id is updated
 
Methods inherited from class org.openstreetmap.josm.gui.history.HistoryLoadTask
add, add, add, add, add, add, cancel, finish, getLastException, isCanceled, realRun
 
Methods inherited from class org.openstreetmap.josm.gui.PleaseWaitRunnable
afterFinish, canRunInBackground, getProgressMonitor, operationCanceled, run
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

toLoad

private final java.util.Map<OsmPrimitive,java.util.Date> toLoad
Constructor Detail

DownloadOsmChangeTask.HistoryLoaderAndListener

public DownloadOsmChangeTask.HistoryLoaderAndListener(java.util.Map<OsmPrimitive,java.util.Date> toLoad)
Method Detail

historyUpdated

public void historyUpdated(HistoryDataSet source,
                           PrimitiveId id)
Description copied from interface: HistoryDataSetListener
Fired by a HistoryDataSet if the cached history of an OSM primitive with id id is updated

Specified by:
historyUpdated in interface HistoryDataSetListener
Parameters:
source - the data set firing the event
id - the id of the updated primitive

historyDataSetCleared

public void historyDataSetCleared(HistoryDataSet source)
Description copied from interface: HistoryDataSetListener
Fired by a HistoryDataSet if the history cached is cleared.

Specified by:
historyDataSetCleared in interface HistoryDataSetListener
Parameters:
source - the history data set firing the event


JOSM