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