org.openstreetmap.josm.gui.dialogs
Class LayerListDialog.DeleteLayerAction
java.lang.Object
javax.swing.AbstractAction
org.openstreetmap.josm.gui.dialogs.LayerListDialog.DeleteLayerAction
- All Implemented Interfaces:
- java.awt.event.ActionListener, java.io.Serializable, java.lang.Cloneable, java.util.EventListener, javax.swing.Action, LayerListDialog.IEnabledStateUpdating, Layer.LayerAction
- Enclosing class:
- LayerListDialog
public final class LayerListDialog.DeleteLayerAction
- extends javax.swing.AbstractAction
- implements LayerListDialog.IEnabledStateUpdating, Layer.LayerAction
The action to delete the currently selected 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 |
finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
LayerListDialog.DeleteLayerAction
public LayerListDialog.DeleteLayerAction()
- Creates a
LayerListDialog.DeleteLayerAction
which will delete the currently
selected layers in the layer dialog.
enforceUploadOrSaveModifiedData
protected boolean enforceUploadOrSaveModifiedData(java.util.List<Layer> selectedLayers)
actionPerformed
public void actionPerformed(java.awt.event.ActionEvent e)
- Specified by:
actionPerformed
in interface java.awt.event.ActionListener
updateEnabledState
public void updateEnabledState()
- Specified by:
updateEnabledState
in interface LayerListDialog.IEnabledStateUpdating
createMenuComponent
public java.awt.Component createMenuComponent()
- Specified by:
createMenuComponent
in interface Layer.LayerAction
supportLayers
public boolean supportLayers(java.util.List<Layer> layers)
- Specified by:
supportLayers
in interface Layer.LayerAction
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in class java.lang.Object
hashCode
public int hashCode()
- Overrides:
hashCode
in class java.lang.Object
JOSM