|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.dlsc.flexgantt.command.AbstractCommand
com.dlsc.flexgantt.command.treetable.DefaultChangeKeyCommand
public class DefaultChangeKeyCommand
A command that will change the key value of a tree table node. This command
can only be used in situations where the tree table model is an instance of
DefaultTreeTableModel and the node implements ITreeTableNode.
INodeEditPolicy.isKeyEditable(Object,
com.dlsc.flexgantt.model.treetable.ITreeTableModel),
INodeEditPolicy.getChangeKeyCommand(Object,
com.dlsc.flexgantt.model.treetable.ITreeTableModel, Object),
Serialized Form| Constructor Summary | |
|---|---|
DefaultChangeKeyCommand(DefaultMutableTreeTableNode node,
DefaultTreeTableModel model,
java.lang.Object key)
Constructs a new command. |
|
| Method Summary | |
|---|---|
void |
executeCommand(IProgressMonitor monitor)
Executes the command. |
DefaultTreeTableModel |
getModel()
Returns the tree table model to which the node belongs. |
java.lang.Object |
getNewKey()
Returns the new key value. |
ITreeTableNode |
getNode()
Returns the node that was modified. |
java.lang.Object |
getOldKey()
Returns the old key value. |
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 DefaultChangeKeyCommand(DefaultMutableTreeTableNode node,
DefaultTreeTableModel model,
java.lang.Object key)
node - the node that will be modifiedmodel - the model to which the node belongskey - the new value of the node's keyITreeTableNode.setKey(Object)| Method Detail |
|---|
public void executeCommand(IProgressMonitor monitor)
ICommand
monitor - a progress monitorpublic void undoCommand(IProgressMonitor monitor)
ICommand
monitor - a progress monitorpublic DefaultTreeTableModel getModel()
public java.lang.Object getNewKey()
public java.lang.Object getOldKey()
public ITreeTableNode getNode()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||