org.openstreetmap.josm.data.osm.event
Class PrimitivesAddedEvent
java.lang.Object
org.openstreetmap.josm.data.osm.event.AbstractDatasetChangedEvent
org.openstreetmap.josm.data.osm.event.PrimitivesAddedEvent
public class PrimitivesAddedEvent
- extends AbstractDatasetChangedEvent
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
primitives
private final java.util.List<? extends OsmPrimitive> primitives
wasIncomplete
private final boolean wasIncomplete
PrimitivesAddedEvent
public PrimitivesAddedEvent(DataSet dataSet,
java.util.Collection<? extends OsmPrimitive> primitives,
boolean wasIncomplete)
fire
public void fire(DataSetListener listener)
- Specified by:
fire in class AbstractDatasetChangedEvent
getPrimitives
public java.util.List<? extends 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
wasIncomplete
public boolean wasIncomplete()
- Returns:
- True if primitive was in dataset before (so it's not really added), but it was incomplete
getType
public AbstractDatasetChangedEvent.DatasetEventType getType()
- Specified by:
getType in class AbstractDatasetChangedEvent
JOSM