Class DeleteLayerAction
java.lang.Object
javax.swing.AbstractAction
org.openstreetmap.josm.gui.dialogs.layer.DeleteLayerAction
- All Implemented Interfaces:
ActionListener,Serializable,Cloneable,EventListener,Action,IEnabledStateUpdating,Layer.LayerAction
public final class DeleteLayerAction
extends AbstractAction
implements IEnabledStateUpdating, Layer.LayerAction
The action to delete the currently selected layer
- See Also:
-
Field Summary
FieldsFields inherited from class javax.swing.AbstractAction
changeSupport, enabledFields 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
ConstructorsConstructorDescriptionCreates aDeleteLayerActionwhich will delete the currently selected layers in the layer dialog. -
Method Summary
Modifier and TypeMethodDescriptionvoidCreates and return the menu component.booleaninthashCode()booleansupportLayers(List<Layer> layers) Determines if this action supports a given list of layers.voidCalled after the layer model has changed.Methods inherited from class javax.swing.AbstractAction
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
-
Field Details
-
model
-
-
Constructor Details
-
DeleteLayerAction
Creates aDeleteLayerActionwhich will delete the currently selected layers in the layer dialog.- Parameters:
model- layer list model
-
-
Method Details
-
actionPerformed
- Specified by:
actionPerformedin interfaceActionListener
-
updateEnabledState
Description copied from interface:IEnabledStateUpdatingCalled after the layer model has changed.- Specified by:
updateEnabledStatein interfaceIEnabledStateUpdating
-
createMenuComponent
Description copied from interface:Layer.LayerActionCreates and return the menu component.- Specified by:
createMenuComponentin interfaceLayer.LayerAction- Returns:
- the menu component
-
supportLayers
Description copied from interface:Layer.LayerActionDetermines if this action supports a given list of layers.- Specified by:
supportLayersin interfaceLayer.LayerAction- Parameters:
layers- list of layers- Returns:
trueif this action supports the given list of layers,falseotherwise
-
equals
-
hashCode
-