public class PrimitivesRemovedEvent extends AbstractDatasetChangedEvent
AbstractDatasetChangedEvent.DatasetEventType| Modifier and Type | Field and Description |
|---|---|
private java.util.List<? extends OsmPrimitive> |
primitives |
private boolean |
wasComplete |
dataSet| Constructor and Description |
|---|
PrimitivesRemovedEvent(DataSet dataSet,
java.util.Collection<? extends OsmPrimitive> primitives,
boolean wasComplete)
Constructs a new
PrimitivesRemovedEvent. |
| Modifier and Type | Method and Description |
|---|---|
void |
fire(DataSetListener listener)
Calls the appropriate method of the listener for this event.
|
java.util.List<? extends OsmPrimitive> |
getPrimitives()
Returns list of primitives modified by this event.
|
AbstractDatasetChangedEvent.DatasetEventType |
getType()
Returns the type of dataset changed event.
|
boolean |
wasComplete()
Determines if primitive wasn't really removed from the dataset, it only become incomplete again.
|
getDataset, toStringprivate final java.util.List<? extends OsmPrimitive> primitives
private final boolean wasComplete
public PrimitivesRemovedEvent(DataSet dataSet, java.util.Collection<? extends OsmPrimitive> primitives, boolean wasComplete)
PrimitivesRemovedEvent.dataSet - the dataset from which the event comes fromprimitives - the list of primitives affected by the changewasComplete - true if primitive wasn't really removed from the dataset, it only become incomplete againpublic void fire(DataSetListener listener)
AbstractDatasetChangedEventfire in class AbstractDatasetChangedEventlistener - dataset listener to notify about this eventpublic java.util.List<? extends OsmPrimitive> getPrimitives()
AbstractDatasetChangedEventDataChangedEvent. It returns all primitives in the dataset
when this method is called (live list), not list of primitives when
the event was createdgetPrimitives in class AbstractDatasetChangedEventpublic boolean wasComplete()
true if primitive wasn't really removed from the dataset, it only become incomplete againpublic AbstractDatasetChangedEvent.DatasetEventType getType()
AbstractDatasetChangedEventgetType in class AbstractDatasetChangedEvent