Package org.openstreetmap.josm.actions
Class JosmAction.SelectionChangeAdapter
- java.lang.Object
-
- org.openstreetmap.josm.actions.JosmAction.SelectionChangeAdapter
-
- All Implemented Interfaces:
DataSelectionListener
- Enclosing class:
- JosmAction
protected class JosmAction.SelectionChangeAdapter extends java.lang.Object implements DataSelectionListener
Adapter for selection change events. Runs updateEnabledState() whenever the selection changed.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.openstreetmap.josm.data.osm.DataSelectionListener
DataSelectionListener.AbstractSelectionEvent, DataSelectionListener.SelectionAddEvent, DataSelectionListener.SelectionChangeEvent, DataSelectionListener.SelectionRemoveEvent, DataSelectionListener.SelectionReplaceEvent, DataSelectionListener.SelectionToggleEvent
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
SelectionChangeAdapter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
selectionChanged(DataSelectionListener.SelectionChangeEvent event)
Called whenever the selection is changed.java.lang.String
toString()
-
-
-
Constructor Detail
-
SelectionChangeAdapter
protected SelectionChangeAdapter()
-
-
Method Detail
-
selectionChanged
public void selectionChanged(DataSelectionListener.SelectionChangeEvent event)
Description copied from interface:DataSelectionListener
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.- Specified by:
selectionChanged
in interfaceDataSelectionListener
- Parameters:
event
- The selection change event.- See Also:
DataSelectionListener.SelectionChangeEvent
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-