public class InsertElementCommand extends AbstractTransaction
Modifier and Type | Field and Description |
---|---|
protected Node |
element |
protected Node |
parent |
protected Node |
position |
commandManager, committed
version
Constructor and Description |
---|
InsertElementCommand(CommandManager commandManager,
Node parent,
Node position,
Node element)
Constructor
|
Modifier and Type | Method and Description |
---|---|
protected void |
doCancel() |
protected void |
doExecute() |
protected void |
doUndo() |
Element |
getElement()
Get the element
|
Element |
getModifiedElement() |
void |
move(int x,
int y) |
cancel, commit, execute, undo
getVersion, setVersion
protected Node parent
protected Node element
protected Node position
public InsertElementCommand(CommandManager commandManager, Node parent, Node position, Node element)
commandManager
- - The command managerparent
- - The parent nodeposition
- - The positionelement
- - The new elementpublic void move(int x, int y)
move
in class AbstractTransaction
public Element getElement()
protected void doCancel()
doCancel
in class AbstractTransaction
protected void doExecute()
doExecute
in class AbstractTransaction
protected void doUndo()
doUndo
in class AbstractTransaction
public Element getModifiedElement()
Copyright © 2014 Uppsala University and Aalborg University. All Rights Reserved.