public final class DeleteLayerAction extends javax.swing.AbstractAction implements IEnabledStateUpdating, Layer.LayerAction
| Modifier and Type | Field and Description |
|---|---|
private LayerListDialog.LayerListModel |
model |
| Constructor and Description |
|---|
DeleteLayerAction(LayerListDialog.LayerListModel model)
Creates a
DeleteLayerAction which will delete the currently selected layers in the layer dialog. |
| Modifier and Type | Method and Description |
|---|---|
void |
actionPerformed(java.awt.event.ActionEvent e) |
java.awt.Component |
createMenuComponent()
Creates and return the menu component.
|
boolean |
equals(java.lang.Object obj) |
int |
hashCode() |
boolean |
supportLayers(java.util.List<Layer> layers)
Determines if this action supports a given list of layers.
|
void |
updateEnabledState()
Called after the layer model has changed.
|
private final LayerListDialog.LayerListModel model
public DeleteLayerAction(LayerListDialog.LayerListModel model)
DeleteLayerAction which will delete the currently selected layers in the layer dialog.model - layer list modelpublic void actionPerformed(java.awt.event.ActionEvent e)
actionPerformed in interface java.awt.event.ActionListenerpublic void updateEnabledState()
IEnabledStateUpdatingupdateEnabledState in interface IEnabledStateUpdatingpublic java.awt.Component createMenuComponent()
Layer.LayerActioncreateMenuComponent in interface Layer.LayerActionpublic boolean supportLayers(java.util.List<Layer> layers)
Layer.LayerActionsupportLayers in interface Layer.LayerActionlayers - list of layerstrue if this action supports the given list of layers, false otherwisepublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Object