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 FormlayerContainerchangeSupport, enabledACCELERATOR_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, setLayerContainergetToolTipText, setToolTipTextaddPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, putValue, removePropertyChangeListener, setEnabledpublic DeleteRelationshipAction(LayerContainer lc)
lc - the layer container on which to invoke the actionpublic boolean isEnabled()
isEnabled in interface ActionisEnabled in class AbstractActionpublic void actionPerformed(ActionEvent evt)
Copyright © 2006–2016 Dirk Lemmermann Software & Consulting. All rights reserved.