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.UndoableEdit
getUndoPresentationName
in class javax.swing.undo.AbstractUndoableEdit
public java.lang.String getRedoPresentationName()
getRedoPresentationName
in interface javax.swing.undo.UndoableEdit
getRedoPresentationName
in class javax.swing.undo.AbstractUndoableEdit
public void undo()
undo
in interface javax.swing.undo.UndoableEdit
undo
in class javax.swing.undo.AbstractUndoableEdit
public void redo()
redo
in interface javax.swing.undo.UndoableEdit
redo
in class javax.swing.undo.AbstractUndoableEdit