public class RelationMembersChangedEvent extends AbstractDatasetChangedEvent
AbstractDatasetChangedEvent.DatasetEventType| Modifier and Type | Field and Description |
|---|---|
private Relation |
relation |
dataSet| Constructor and Description |
|---|
RelationMembersChangedEvent(DataSet dataSet,
Relation relation)
Constructs a new
RelationMembersChangedEvent. |
| 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.
|
Relation |
getRelation()
Returns the relation affected by the change.
|
AbstractDatasetChangedEvent.DatasetEventType |
getType()
Returns the type of dataset changed event.
|
getDataset, toStringpublic RelationMembersChangedEvent(DataSet dataSet, Relation relation)
RelationMembersChangedEvent.dataSet - the dataset from which the event comes fromrelation - the relation affected by the changepublic void fire(DataSetListener listener)
AbstractDatasetChangedEventfire in class AbstractDatasetChangedEventlistener - dataset listener to notify about this eventpublic Relation getRelation()
public 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 AbstractDatasetChangedEvent.DatasetEventType getType()
AbstractDatasetChangedEventgetType in class AbstractDatasetChangedEvent