org.openstreetmap.josm.gui.dialogs
Class LayerListDialog.DuplicateAction
java.lang.Object
javax.swing.AbstractAction
org.openstreetmap.josm.gui.dialogs.LayerListDialog.DuplicateAction
- 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.DuplicateAction
- extends javax.swing.AbstractAction
- implements LayerListDialog.IEnabledStateUpdating
The action to merge the currently selected layer into another layer.
- See Also:
- Serialized Form
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 |
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 |
layer
private Layer layer
LayerListDialog.DuplicateAction
public LayerListDialog.DuplicateAction(Layer layer)
throws java.lang.IllegalArgumentException
- Throws:
java.lang.IllegalArgumentException
LayerListDialog.DuplicateAction
public LayerListDialog.DuplicateAction()
duplicate
private void duplicate(Layer layer)
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