public class MoveItemCommand extends ExecutableCommandWrapper implements ExecutableCommand
Moves an Item
below the specified parent in the Integrity database.
Usage:
new MoveItemCommand(myItem, newParent, InsertLocation.createLast()).execute();
Constructor and Description |
---|
MoveItemCommand(Item item,
Item newParent,
InsertLocation insertLocation)
Instantiates a command to move an item to a different location.
|
execute
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
execute
public MoveItemCommand(Item item, Item newParent, InsertLocation insertLocation)
item
- the item to be moved.newParent
- the parent item under which the item must be inserted.insertLocation
- the location below the parent where the item must be moved.