org.openstreetmap.josm.gui
Class MainMenu.PresetsMenuEnabler

java.lang.Object
  extended by org.openstreetmap.josm.gui.MainMenu.PresetsMenuEnabler
All Implemented Interfaces:
MapView.LayerChangeListener
Enclosing class:
MainMenu

static class MainMenu.PresetsMenuEnabler
extends java.lang.Object
implements MapView.LayerChangeListener


Field Summary
private  javax.swing.JMenu presetsMenu
           
 
Constructor Summary
MainMenu.PresetsMenuEnabler(javax.swing.JMenu presetsMenu)
           
 
Method Summary
 void activeLayerChange(Layer oldLayer, Layer newLayer)
          Notifies this listener that the active layer has changed.
 void layerAdded(Layer newLayer)
          Notifies this listener that a layer has been added.
 void layerRemoved(Layer oldLayer)
          Notifies this listener that a layer has been removed.
protected  void refreshEnabled()
          Refreshes the enabled state
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

presetsMenu

private javax.swing.JMenu presetsMenu
Constructor Detail

MainMenu.PresetsMenuEnabler

public MainMenu.PresetsMenuEnabler(javax.swing.JMenu presetsMenu)
Method Detail

refreshEnabled

protected void refreshEnabled()
Refreshes the enabled state


activeLayerChange

public void activeLayerChange(Layer oldLayer,
                              Layer newLayer)
Description copied from interface: MapView.LayerChangeListener
Notifies this listener that the active layer has changed.

Specified by:
activeLayerChange in interface MapView.LayerChangeListener
Parameters:
oldLayer - The previous active layer
newLayer - The new activer layer

layerAdded

public void layerAdded(Layer newLayer)
Description copied from interface: MapView.LayerChangeListener
Notifies this listener that a layer has been added.

Specified by:
layerAdded in interface MapView.LayerChangeListener
Parameters:
newLayer - The new added layer

layerRemoved

public void layerRemoved(Layer oldLayer)
Description copied from interface: MapView.LayerChangeListener
Notifies this listener that a layer has been removed.

Specified by:
layerRemoved in interface MapView.LayerChangeListener
Parameters:
oldLayer - The old removed layer


JOSM