source: josm/trunk/src/org/openstreetmap/josm/data/osm/history/HistoryDataSetListener.java@ 12189

Last change on this file since 12189 was 12189, checked in by michael2402, 7 years ago

See #14794: Javadoc for data.osm package

  • Property svn:eol-style set to native
File size: 870 bytes
Line 
1// License: GPL. For details, see LICENSE file.
2package org.openstreetmap.josm.data.osm.history;
3
4import org.openstreetmap.josm.data.osm.PrimitiveId;
5
6/**
7 * A listener that listens to changes in the {@link HistoryDataSet}.
8 * @see HistoryDataSet#addHistoryDataSetListener(HistoryDataSetListener)
9 */
10public interface HistoryDataSetListener {
11 /**
12 * Fired by a {@link HistoryDataSet} if the cached history of an OSM primitive with
13 * id <code>id</code> is updated
14 *
15 * @param source the data set firing the event
16 * @param id the id of the updated primitive
17 */
18 void historyUpdated(HistoryDataSet source, PrimitiveId id);
19
20 /**
21 * Fired by a {@link HistoryDataSet} if the history cached is cleared.
22 *
23 * @param source the history data set firing the event
24 */
25 void historyDataSetCleared(HistoryDataSet source);
26}
Note: See TracBrowser for help on using the repository browser.