org.openstreetmap.josm.gui.dialogs
Class LayerListDialog.MergeAction

java.lang.Object
  extended by javax.swing.AbstractAction
      extended by org.openstreetmap.josm.gui.dialogs.LayerListDialog.MergeAction
All Implemented Interfaces:
java.awt.event.ActionListener, java.io.Serializable, java.lang.Cloneable, java.util.EventListener, javax.swing.Action, LayerListDialog.IEnabledStateUpdating
Enclosing class:
LayerListDialog

public final class LayerListDialog.MergeAction
extends javax.swing.AbstractAction
implements LayerListDialog.IEnabledStateUpdating

The action to merge the currently selected layer into another layer.

See Also:
Serialized Form

Field Summary
private  Layer layer
           
 
Fields inherited from class javax.swing.AbstractAction
changeSupport, enabled
 
Fields inherited from interface javax.swing.Action
ACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, DISPLAYED_MNEMONIC_INDEX_KEY, LARGE_ICON_KEY, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SELECTED_KEY, SHORT_DESCRIPTION, SMALL_ICON
 
Constructor Summary
LayerListDialog.MergeAction()
           
LayerListDialog.MergeAction(Layer layer)
           
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent e)
           
protected  boolean isActiveLayer(Layer layer)
           
 void updateEnabledState()
           
 
Methods inherited from class javax.swing.AbstractAction
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

layer

private Layer layer
Constructor Detail

LayerListDialog.MergeAction

public LayerListDialog.MergeAction(Layer layer)
                            throws java.lang.IllegalArgumentException
Throws:
java.lang.IllegalArgumentException

LayerListDialog.MergeAction

public LayerListDialog.MergeAction()
Method Detail

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent e)
Specified by:
actionPerformed in interface java.awt.event.ActionListener

isActiveLayer

protected boolean isActiveLayer(Layer layer)

updateEnabledState

public void updateEnabledState()
Specified by:
updateEnabledState in interface LayerListDialog.IEnabledStateUpdating


JOSM