public abstract class AbstractDatasetChangedEvent extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
AbstractDatasetChangedEvent.DatasetEventType
Type of dataset changed event, returned by
getType() . |
Modifier and Type | Field and Description |
---|---|
protected DataSet |
dataSet
The dataset from which the event came from.
|
Modifier | Constructor and Description |
---|---|
protected |
AbstractDatasetChangedEvent(DataSet dataSet)
Constructs a new
AbstractDatasetChangedEvent . |
Modifier and Type | Method and Description |
---|---|
abstract void |
fire(DataSetListener listener)
Calls the appropriate method of the listener for this event.
|
DataSet |
getDataset()
Returns the dataset from which the event came from.
|
abstract java.util.Collection<? extends OsmPrimitive> |
getPrimitives()
Returns list of primitives modified by this event.
|
abstract AbstractDatasetChangedEvent.DatasetEventType |
getType()
Returns the type of dataset changed event.
|
java.lang.String |
toString() |
protected AbstractDatasetChangedEvent(DataSet dataSet)
AbstractDatasetChangedEvent
.dataSet
- the dataset from which the event came frompublic abstract void fire(DataSetListener listener)
listener
- dataset listener to notify about this eventpublic abstract java.util.Collection<? extends OsmPrimitive> getPrimitives()
DataChangedEvent
. It returns all primitives in the dataset
when this method is called (live list), not list of primitives when
the event was createdpublic DataSet getDataset()
public abstract AbstractDatasetChangedEvent.DatasetEventType getType()
public java.lang.String toString()
toString
in class java.lang.Object