Package org.openstreetmap.josm.actions
Class JosmAction.ActiveLayerChangeAdapter
- java.lang.Object
-
- org.openstreetmap.josm.actions.JosmAction.ActiveLayerChangeAdapter
-
- All Implemented Interfaces:
MainLayerManager.ActiveLayerChangeListener
- Enclosing class:
- JosmAction
protected class JosmAction.ActiveLayerChangeAdapter extends java.lang.Object implements MainLayerManager.ActiveLayerChangeListener
Adapter for layer change events. Runs updateEnabledState() whenever the active layer changed.
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
ActiveLayerChangeAdapter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
activeOrEditLayerChanged(MainLayerManager.ActiveLayerChangeEvent e)
Called whenever the active or edit layer changed.java.lang.String
toString()
-
-
-
Constructor Detail
-
ActiveLayerChangeAdapter
protected ActiveLayerChangeAdapter()
-
-
Method Detail
-
activeOrEditLayerChanged
public void activeOrEditLayerChanged(MainLayerManager.ActiveLayerChangeEvent e)
Description copied from interface:MainLayerManager.ActiveLayerChangeListener
Called whenever the active or edit layer changed.You can be sure that this layer is still contained in this set.
Listeners are called in the EDT thread and you can manipulate the layer manager in the current thread.
- Specified by:
activeOrEditLayerChanged
in interfaceMainLayerManager.ActiveLayerChangeListener
- Parameters:
e
- The change event.
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-