Class IDataSelectionListener.AbstractSelectionEvent<O extends IPrimitive,N extends INode,W extends IWay<N>,R extends IRelation<?>,D extends OsmData<O,N,W,R>>
- java.lang.Object
-
- org.openstreetmap.josm.data.osm.event.IDataSelectionListener.AbstractSelectionEvent<O,N,W,R,D>
-
- Type Parameters:
O
- the base type of OSM primitivesN
- type representing OSM nodesW
- type representing OSM waysR
- type representing OSM relationsD
- The dataset type
- All Implemented Interfaces:
IDataSelectionListener.SelectionChangeEvent<O,N,W,R,D>
- Direct Known Subclasses:
IDataSelectionListener.SelectionAddEvent
,IDataSelectionListener.SelectionRemoveEvent
,IDataSelectionListener.SelectionReplaceEvent
,IDataSelectionListener.SelectionToggleEvent
- Enclosing interface:
- IDataSelectionListener<O extends IPrimitive,N extends INode,W extends IWay<N>,R extends IRelation<?>,D extends OsmData<O,N,W,R>>
public abstract static class IDataSelectionListener.AbstractSelectionEvent<O extends IPrimitive,N extends INode,W extends IWay<N>,R extends IRelation<?>,D extends OsmData<O,N,W,R>> extends Object implements IDataSelectionListener.SelectionChangeEvent<O,N,W,R,D>
The base class for selection events- Since:
- 12048, 17862 (generics)
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
AbstractSelectionEvent(D source, Set<O> old)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Set<O>
getOldSelection()
Gets the previous selectionD
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.event.IDataSelectionListener.SelectionChangeEvent
getAdded, getRemoved, getSelection, isNop
-
-
-
-
Constructor Detail
-
AbstractSelectionEvent
protected AbstractSelectionEvent(D source, Set<O> old)
-
-
Method Detail
-
getOldSelection
public Set<O> getOldSelection()
Description copied from interface:IDataSelectionListener.SelectionChangeEvent
Gets the previous selectionThis collection cannot be modified and will not change.
-
getSource
public D getSource()
Description copied from interface:IDataSelectionListener.SelectionChangeEvent
Gets the data set that triggered this selection event.
-
-