Package org.openstreetmap.josm.data.osm
Class DataSelectionListener.AbstractSelectionEvent
- java.lang.Object
-
- org.openstreetmap.josm.data.osm.DataSelectionListener.AbstractSelectionEvent
-
- All Implemented Interfaces:
DataSelectionListener.SelectionChangeEvent
- Direct Known Subclasses:
DataSelectionListener.SelectionAddEvent
,DataSelectionListener.SelectionRemoveEvent
,DataSelectionListener.SelectionReplaceEvent
,DataSelectionListener.SelectionToggleEvent
- Enclosing interface:
- DataSelectionListener
public abstract static class DataSelectionListener.AbstractSelectionEvent extends java.lang.Object implements DataSelectionListener.SelectionChangeEvent
The base class for selection events- Since:
- 12048
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.Set<OsmPrimitive>
old
private DataSet
source
-
Constructor Summary
Constructors Modifier Constructor Description protected
AbstractSelectionEvent(DataSet source, java.util.Set<OsmPrimitive> old)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Set<OsmPrimitive>
getOldSelection()
Gets the previous selectionDataSet
getSource()
Gets the data set that triggered this selection event.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.openstreetmap.josm.data.osm.DataSelectionListener.SelectionChangeEvent
getAdded, getRemoved, getSelection, isNop
-
-
-
-
Field Detail
-
old
private final java.util.Set<OsmPrimitive> old
-
-
Constructor Detail
-
AbstractSelectionEvent
protected AbstractSelectionEvent(DataSet source, java.util.Set<OsmPrimitive> old)
-
-
Method Detail
-
getOldSelection
public java.util.Set<OsmPrimitive> getOldSelection()
Description copied from interface:DataSelectionListener.SelectionChangeEvent
Gets the previous selectionThis collection cannot be modified and will not change.
- Specified by:
getOldSelection
in interfaceDataSelectionListener.SelectionChangeEvent
- Returns:
- The old selection
-
getSource
public DataSet getSource()
Description copied from interface:DataSelectionListener.SelectionChangeEvent
Gets the data set that triggered this selection event.- Specified by:
getSource
in interfaceDataSelectionListener.SelectionChangeEvent
- Returns:
- The data set.
-
-