VdexReload 1.1.3 API

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

java.lang.Object
  extended byuk.ac.reload.moonunit.dom.ReloadSchemaDocument.UndoableDeleteAction
All Implemented Interfaces:
UndoableAction
Direct Known Subclasses:
ReloadSchemaDocument.UndoableCutAction
Enclosing class:
ReloadSchemaDocument

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

Handles Undo/Redo for Deleting Elements


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

Constructor Detail

ReloadSchemaDocument.UndoableDeleteAction

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

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

undo

public void undo()
Undo's remove by adding the element at the given index

Specified by:
undo in interface UndoableAction

redo

public void redo()
Redo's add by removing the element

Specified by:
redo in interface UndoableAction

getName

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

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

VdexReload 1.1.3 API