com.dlsc.flexgantt.swing.action.treetable
Class DeleteNodeAction
java.lang.Object
javax.swing.AbstractAction
com.dlsc.flexgantt.swing.action.AbstractFlexGanttAction
com.dlsc.flexgantt.swing.action.treetable.AbstractTreeTableAction
com.dlsc.flexgantt.swing.action.treetable.DeleteNodeAction
- All Implemented Interfaces:
- java.awt.event.ActionListener, java.io.Serializable, java.lang.Cloneable, java.util.EventListener, javax.swing.Action
public class DeleteNodeAction
- extends AbstractTreeTableAction
An action that can be used in the context of the 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.
- Since:
- 1.0
- Author:
- Dirk Lemmermann
- See Also:
INodeEditPolicy.isDeletable(Object,
com.dlsc.flexgantt.model.treetable.ITreeTableModel)
,
INodeEditPolicy.getDeleteNodeCommand(Object,
com.dlsc.flexgantt.model.treetable.ITreeTableModel)
,
Serialized Form
Fields inherited from class javax.swing.AbstractAction |
changeSupport, enabled |
Fields inherited from interface javax.swing.Action |
ACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SHORT_DESCRIPTION, SMALL_ICON |
Methods inherited from class javax.swing.AbstractAction |
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, putValue, removePropertyChangeListener, setEnabled |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DeleteNodeAction
public DeleteNodeAction(TreeTable table)
- Constructs a new action.
- Parameters:
table
- the table on which the action will be performed- Since:
- 1.0
isEnabled
public boolean isEnabled()
- Specified by:
isEnabled
in interface javax.swing.Action
- Overrides:
isEnabled
in class javax.swing.AbstractAction
actionPerformed
public void actionPerformed(java.awt.event.ActionEvent evt)