public class DeleteNodeAction extends AbstractTreeTableAction
TreeTable to delete
tree nodes. The action will delete all nodes that are currently selected in
the tree table. The action uses INodeEditPolicy to determine whether
a node is deletable and which command object to use to actually delete it.INodeEditPolicy.isDeletable(Object,
com.dlsc.flexgantt.model.treetable.ITreeTableModel),
INodeEditPolicy.getDeleteNodesCommand(java.util.List,
com.dlsc.flexgantt.model.treetable.ITreeTableModel),
Serialized FormtreeTablechangeSupport, 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 |
|---|
DeleteNodeAction(TreeTable table)
Constructs a new action.
|
| Modifier and Type | Method and Description |
|---|---|
void |
actionPerformed(ActionEvent evt) |
boolean |
isEnabled() |
getTreeTable, setTreeTablegetToolTipText, setToolTipTextaddPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, putValue, removePropertyChangeListener, setEnabledpublic DeleteNodeAction(TreeTable table)
table - the table on which the action will be performedpublic boolean isEnabled()
isEnabled in interface ActionisEnabled in class AbstractActionpublic void actionPerformed(ActionEvent evt)
Copyright © 2006–2020 Dirk Lemmermann Software & Consulting. All rights reserved.