org.openstreetmap.josm.data.osm.event
Class DataChangedEvent
java.lang.Object
org.openstreetmap.josm.data.osm.event.AbstractDatasetChangedEvent
org.openstreetmap.josm.data.osm.event.DataChangedEvent
public class DataChangedEvent
- extends AbstractDatasetChangedEvent
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
events
private final java.util.List<AbstractDatasetChangedEvent> events
DataChangedEvent
public DataChangedEvent(DataSet dataSet,
java.util.List<AbstractDatasetChangedEvent> events)
DataChangedEvent
public DataChangedEvent(DataSet dataSet)
fire
public void fire(DataSetListener listener)
- Specified by:
fire
in class AbstractDatasetChangedEvent
getPrimitives
public java.util.Collection<OsmPrimitive> getPrimitives()
- Description copied from class:
AbstractDatasetChangedEvent
- Returns list of primitives modified by this event.
WARNING This value might be incorrect in case
of DataChangedEvent
. It returns all primitives in the dataset
when this method is called (live list), not list of primitives when
the event was created
- Specified by:
getPrimitives
in class AbstractDatasetChangedEvent
- Returns:
- List of modified primitives
getType
public AbstractDatasetChangedEvent.DatasetEventType getType()
- Specified by:
getType
in class AbstractDatasetChangedEvent
getEvents
public java.util.List<AbstractDatasetChangedEvent> getEvents()
- Returns:
- List of events that caused this DataChangedEvent. Might be null
JOSM