public final class LayerListDialog.DuplicateAction extends AbstractAction implements LayerListDialog.IEnabledStateUpdating
Modifier and Type | Field and Description |
---|---|
private Layer |
layer |
changeSupport, enabled
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 and Description |
---|
LayerListDialog.DuplicateAction()
Constructs a new
DuplicateAction . |
LayerListDialog.DuplicateAction(Layer layer)
Constructs a new
DuplicateAction . |
Modifier and Type | Method and Description |
---|---|
void |
actionPerformed(ActionEvent e) |
private void |
duplicate(Layer layer) |
protected boolean |
isActiveLayer(Layer layer) |
void |
updateEnabledState() |
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
public LayerListDialog.DuplicateAction(Layer layer) throws IllegalArgumentException
DuplicateAction
.layer
- the layerIllegalArgumentException
- if layer
is nullpublic LayerListDialog.DuplicateAction()
DuplicateAction
.public void actionPerformed(ActionEvent e)
actionPerformed
in interface ActionListener
protected boolean isActiveLayer(Layer layer)
public void updateEnabledState()
updateEnabledState
in interface LayerListDialog.IEnabledStateUpdating