Class RelationMembersChangedEvent
java.lang.Object
org.openstreetmap.josm.data.osm.event.AbstractDatasetChangedEvent
org.openstreetmap.josm.data.osm.event.RelationMembersChangedEvent
An event that is triggered if the members of a single relation have changed
-
Nested Class Summary
Nested classes/interfaces inherited from class org.openstreetmap.josm.data.osm.event.AbstractDatasetChangedEvent
AbstractDatasetChangedEvent.DatasetEventType -
Field Summary
FieldsFields inherited from class org.openstreetmap.josm.data.osm.event.AbstractDatasetChangedEvent
dataSet -
Constructor Summary
ConstructorsConstructorDescriptionRelationMembersChangedEvent(DataSet dataSet, Relation relation) Constructs a newRelationMembersChangedEvent. -
Method Summary
Modifier and TypeMethodDescriptionvoidfire(DataSetListener listener) Calls the appropriate method of the listener for this event.List<? extends OsmPrimitive>Returns list of primitives modified by this event.Returns the relation affected by the change.getType()Returns the type of dataset changed event.Methods inherited from class org.openstreetmap.josm.data.osm.event.AbstractDatasetChangedEvent
getDataset, toString
-
Field Details
-
relation
-
-
Constructor Details
-
RelationMembersChangedEvent
Constructs a newRelationMembersChangedEvent.- Parameters:
dataSet- the dataset from which the event comes fromrelation- the relation affected by the change
-
-
Method Details
-
fire
Description copied from class:AbstractDatasetChangedEventCalls the appropriate method of the listener for this event.- Specified by:
firein classAbstractDatasetChangedEvent- Parameters:
listener- dataset listener to notify about this event
-
getRelation
Returns the relation affected by the change.- Returns:
- the relation affected by the change
-
getPrimitives
Description copied from class:AbstractDatasetChangedEventReturns list of primitives modified by this event.
WARNING This value might be incorrect in case ofDataChangedEvent. 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:
getPrimitivesin classAbstractDatasetChangedEvent- Returns:
- List of modified primitives
-
getType
Description copied from class:AbstractDatasetChangedEventReturns the type of dataset changed event.- Specified by:
getTypein classAbstractDatasetChangedEvent- Returns:
- the type of dataset changed event
-