|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--harmonic.mz.data.ModelNode
|
+--harmonic.mz.undo.UndoRecord
|
+--harmonic.mz.undo.TreeUndo
Subclass of UndoRecord that stores how tree nodes are parented in database. Undoing will put the node back in its old location. Used for additons, removeals, and moves.
| Field Summary |
| Fields inherited from class harmonic.mz.undo.UndoRecord |
undo |
| Fields inherited from class harmonic.mz.data.ModelNode |
_fileRoot_, _thread_, ATTRIB_CONTROL_WIDGET, ATTRIB_LISTABLE, ATTRIB_PRESENTABLE, ATTRIB_PRIVATE, ATTRIB_REMOVEABLE, ATTRIB_RENAMEABLE, ATTRIB_SHOW_CONTEXT_MENU, ATTRIB_TYPE_FILTER, ATTRIB_USERGROUP, ATTRIB_VALUE_GROUP, ATTRIB_VE_LISTENER, bCustomCS, bDebug, bValid, name |
| Constructor Summary | |
TreeUndo(DataNode node)
Constructs a TreeUndo to store one node's state |
|
TreeUndo(FunctionStarter action,
DataNode node)
Constructs a TreeUndo to store one nodes state, named to follow given user action. |
|
TreeUndo(FunctionStarter action,
DataNode[] nodes)
Constructs a TreeUndo to store set of nodes state, named to follow given user action. |
|
TreeUndo(java.lang.String name,
DataNode node)
Constructs a TreeUndo to store one nodes state, with the given name. |
|
TreeUndo(java.lang.String name,
DataNode[] nodes)
Constructs a TreeUndo to store a set of nodes state, with the given name. |
|
| Method Summary | |
void |
addNode(ModelNode p)
Adds a node to this undo. |
UndoRecord |
makeRedo()
Creates a TreeUndo for doing the redo. |
void |
purgeFinal()
If undoes a delete, calls ModelNode.purgeFinal() for this nodes undo records. |
void |
undo()
Does the undo by reparenting the nodes of concern back to the the nodes they were under when the TreeUndo was created. |
| Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public TreeUndo(DataNode node)
public TreeUndo(FunctionStarter action,
DataNode node)
public TreeUndo(FunctionStarter action,
DataNode[] nodes)
public TreeUndo(java.lang.String name,
DataNode node)
public TreeUndo(java.lang.String name,
DataNode[] nodes)
| Method Detail |
public void addNode(ModelNode p)
public void undo()
undo in class UndoRecordpublic UndoRecord makeRedo()
makeRedo in class UndoRecordpublic void purgeFinal()
purgeFinal in interface DataNodepurgeFinal in class ModelNode
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||