Package org.openstreetmap.josm.data.osm
Interface DataSelectionListener
-
- All Known Implementing Classes:
AddSelectionToRelations,AdvancedPreference.UnclearableOsmDataLayer,ChangesetInSelectionListModel,ConflictDialog,CorrelationSupportLayer,DrawAction,ImproveWayAccuracyAction,JosmAction.SelectionChangeAdapter,MapStatus,MemberTableModel,MultipolygonCache,OsmDataLayer,PropertiesDialog,SelectionEventManager,SelectionListDialog.SelectionListModel,SelectionListDialog.ShowHistoryAction,SelectionTableModel,SimplifyWayAction.SimplifyWayDataSelectionListener,TaggingPresetSelector,UserListDialog,ValidatorDialog
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface public interface DataSelectionListener
This is a listener that listens to selection change events in the data set.- Since:
- 12048
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classDataSelectionListener.AbstractSelectionEventThe base class for selection eventsstatic classDataSelectionListener.SelectionAddEventPrimitives are added to the selectionstatic interfaceDataSelectionListener.SelectionChangeEventThe event that is fired when the selection changed.static classDataSelectionListener.SelectionRemoveEventPrimitives are removed from the selectionstatic classDataSelectionListener.SelectionReplaceEventThe selection is replaced by a new selectionstatic classDataSelectionListener.SelectionToggleEventToggle the selected state of a primitive
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidselectionChanged(DataSelectionListener.SelectionChangeEvent event)Called whenever the selection is changed.
-
-
-
Method Detail
-
selectionChanged
void selectionChanged(DataSelectionListener.SelectionChangeEvent event)
Called whenever the selection is changed. You get notified about the new selection, the elements that were added and removed and the layer that triggered the event.- Parameters:
event- The selection change event.- See Also:
DataSelectionListener.SelectionChangeEvent
-
-