public class UndoableMoveGroup
extends javax.swing.undo.AbstractUndoableEdit
| Constructor and Description |
|---|
UndoableMoveGroup(GroupSelector gs,
GroupTreeNode groupsRoot,
GroupTreeNode moveNode,
GroupTreeNode newParent,
int newChildIndex) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getRedoPresentationName() |
java.lang.String |
getUndoPresentationName() |
void |
redo() |
void |
undo() |
public UndoableMoveGroup(GroupSelector gs, GroupTreeNode groupsRoot, GroupTreeNode moveNode, GroupTreeNode newParent, int newChildIndex)
moveNode - The node which is being moved. At the time of construction of
this object, it must not have moved yet.newParent - The new parent node to which moveNode will be moved.newChildIndex - The child index at newParent to which moveNode
will be moved.public java.lang.String getUndoPresentationName()
getUndoPresentationName in interface javax.swing.undo.UndoableEditgetUndoPresentationName in class javax.swing.undo.AbstractUndoableEditpublic java.lang.String getRedoPresentationName()
getRedoPresentationName in interface javax.swing.undo.UndoableEditgetRedoPresentationName in class javax.swing.undo.AbstractUndoableEditpublic void undo()
undo in interface javax.swing.undo.UndoableEditundo in class javax.swing.undo.AbstractUndoableEditpublic void redo()
redo in interface javax.swing.undo.UndoableEditredo in class javax.swing.undo.AbstractUndoableEdit