|
||||||||||
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.DefaultChangeValueCommand
public class DefaultChangeValueCommand
A command that will change a column 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.isValueEditable(Object,
com.dlsc.flexgantt.model.treetable.ITreeTableModel, int)
,
INodeEditPolicy.getChangeValueCommand(Object,
com.dlsc.flexgantt.model.treetable.ITreeTableModel, Object, int)
,
Serialized FormConstructor Summary | |
---|---|
DefaultChangeValueCommand(DefaultMutableTreeTableNode node,
DefaultTreeTableModel model,
java.lang.Object value,
int index)
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 |
getNewValue()
Returns the new column value. |
ITreeTableNode |
getNode()
Returns the node that was modified. |
java.lang.Object |
getOldValue()
Returns the old column value. |
int |
getValueIndex()
Returns the model index under which the new value gets stored. |
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 DefaultChangeValueCommand(DefaultMutableTreeTableNode node, DefaultTreeTableModel model, java.lang.Object value, int index)
node
- the node that will be modifiedmodel
- the model to which the node belongsvalue
- the new column valueindex
- the model index where the column value will be setITreeTableNode.setColumnValue(Object, int)
Method Detail |
---|
public void executeCommand(IProgressMonitor monitor)
ICommand
monitor
- a progress monitorpublic void undoCommand(IProgressMonitor monitor)
ICommand
monitor
- a progress monitorpublic DefaultTreeTableModel getModel()
public ITreeTableNode getNode()
public java.lang.Object getNewValue()
public java.lang.Object getOldValue()
public int getValueIndex()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |