public class DeleteRelationshipAction extends AbstractLayerContainerAction
IRelationshipPolicy
to determine whether an
object can be deleted and also to lookup a command object that will perform
the actual deletion.LayerContainer.deleteSelectedRelationships()
,
IRelationship.isDeletable()
,
IRelationshipPolicy.isDeletable(com.dlsc.flexgantt.model.gantt.IRelationship,
IGanttChartModel)
,
IRelationshipPolicy.getDeleteRelationshipsCommand(java.util.Collection,
IGanttChartModel)
,
Serialized FormlayerContainer
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 |
---|
DeleteRelationshipAction(LayerContainer lc)
Constructs a new action.
|
Modifier and Type | Method and Description |
---|---|
void |
actionPerformed(ActionEvent evt) |
boolean |
isEnabled() |
getLayerContainer, setLayerContainer
getToolTipText, setToolTipText
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, putValue, removePropertyChangeListener, setEnabled
public DeleteRelationshipAction(LayerContainer lc)
lc
- the layer container on which to invoke the actionpublic boolean isEnabled()
isEnabled
in interface Action
isEnabled
in class AbstractAction
public void actionPerformed(ActionEvent evt)
Copyright © 2006–2016 Dirk Lemmermann Software & Consulting. All rights reserved.