VdexReload 1.1.3 API

uk.ac.reload.moonunit.dom
Class ReloadSchemaDocument.UndoableAddAction

java.lang.Object
  extended byuk.ac.reload.moonunit.dom.ReloadSchemaDocument.UndoableAddAction
All Implemented Interfaces:
UndoableAction
Direct Known Subclasses:
ReloadSchemaDocument.UndoableCopyAction, ReloadSchemaDocument.UndoablePasteAction
Enclosing class:
ReloadSchemaDocument

protected class ReloadSchemaDocument.UndoableAddAction
extends java.lang.Object
implements UndoableAction

Handles Undo/Redo for Adding Elements


Constructor Summary
ReloadSchemaDocument.UndoableAddAction(org.jdom.Element parent, org.jdom.Element element)
          Constructor
 
Method Summary
 java.lang.String getName()
          Gets the name of the add element
 void redo()
          Redo's the add by adding the element at the given index
 void undo()
          Undo's the add by removing the element
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ReloadSchemaDocument.UndoableAddAction

public ReloadSchemaDocument.UndoableAddAction(org.jdom.Element parent,
                                              org.jdom.Element element)
Constructor

Parameters:
parent - the parent element element the element to add
Method Detail

undo

public void undo()
Undo's the add by removing the element

Specified by:
undo in interface UndoableAction

redo

public void redo()
Redo's the add by adding the element at the given index

Specified by:
redo in interface UndoableAction

getName

public java.lang.String getName()
Gets the name of the add element

Specified by:
getName in interface UndoableAction
Returns:
the name associated with this action

VdexReload 1.1.3 API