|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.dlsc.flexgantt.command.AbstractCommand com.dlsc.flexgantt.command.treetable.DefaultNodeDeleteCommand
public class DefaultNodeDeleteCommand
A command that deletes a tree table node from the model. This command can
only be used in situations where the tree table model is an instance of
DefaultTreeTableModel
and the deleted child node and its parent node
are both implementors of the IMutableTreeTableNode
interface.
INodeEditPolicy.isDeletable(Object,
com.dlsc.flexgantt.model.treetable.ITreeTableModel)
,
INodeEditPolicy.getDeleteNodeCommand(Object,
com.dlsc.flexgantt.model.treetable.ITreeTableModel)
,
Serialized FormConstructor Summary | |
---|---|
DefaultNodeDeleteCommand(IMutableTreeTableNode child,
DefaultTreeTableModel model)
Constructs a new command. |
Method Summary | |
---|---|
void |
executeCommand(IProgressMonitor monitor)
Executes the command. |
int |
getChildIndex()
Returns the index of the deleted child node within the list of children of the parent node. |
IMutableTreeTableNode |
getChildNode()
Returns the deleted child node. |
DefaultTreeTableModel |
getModel()
Returns the model to which the parent and the child node belong. |
IMutableTreeTableNode |
getParentNode()
Returns the parent node of the node that will be / was deleted. |
void |
undoCommand(IProgressMonitor monitor)
Undos the command. |
Methods inherited from class com.dlsc.flexgantt.command.AbstractCommand |
---|
getName, isRedoable, isRelevant, isUndoable, redoCommand |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DefaultNodeDeleteCommand(IMutableTreeTableNode child, DefaultTreeTableModel model)
child
- the child node that will be deletedmodel
- the model to which the node belongsMethod Detail |
---|
public void executeCommand(IProgressMonitor monitor)
ICommand
monitor
- a progress monitorpublic void undoCommand(IProgressMonitor monitor)
ICommand
monitor
- a progress monitorpublic int getChildIndex()
public IMutableTreeTableNode getChildNode()
public DefaultTreeTableModel getModel()
public IMutableTreeTableNode getParentNode()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |