public class InsertElementCommand extends AbstractTransaction
| Modifier and Type | Field and Description |
|---|---|
protected Node |
element |
protected Node |
parent |
protected Node |
position |
commandManager, committedversion| 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, undogetVersion, setVersionprotected 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 AbstractTransactionpublic Element getElement()
protected void doCancel()
doCancel in class AbstractTransactionprotected void doExecute()
doExecute in class AbstractTransactionprotected void doUndo()
doUndo in class AbstractTransactionpublic Element getModifiedElement()
Copyright © 2014 Uppsala University and Aalborg University. All Rights Reserved.