Package kiyut.sketsa.undo
Class DOMUndoableEdit
- java.lang.Object
-
- javax.swing.undo.AbstractUndoableEdit
-
- kiyut.sketsa.undo.DOMUndoableEdit
-
- All Implemented Interfaces:
Serializable,UndoableEdit
public class DOMUndoableEdit extends AbstractUndoableEdit
Implementation of DOMUndoableEdit- Author:
- KIYUT
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class javax.swing.undo.AbstractUndoableEdit
RedoName, UndoName
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidredo()voidundo()-
Methods inherited from class javax.swing.undo.AbstractUndoableEdit
addEdit, canRedo, canUndo, die, getPresentationName, getRedoPresentationName, getUndoPresentationName, isSignificant, replaceEdit, toString
-
-
-
-
Constructor Detail
-
DOMUndoableEdit
public DOMUndoableEdit(String type, Node node, Node relatedNode, String prevValue, String newValue, String attrName, short attrChange)
Creates a new instance of DOMUndoableEdit- Parameters:
type- DOM Mutation Event typenode- the NoderelatedNode- the related NodeprevValue- The prevValuenewValue- The newValueattrName- Attribute NameattrChange- Attribute Change
-
-
Method Detail
-
undo
public void undo() throws CannotUndoException- Specified by:
undoin interfaceUndoableEdit- Overrides:
undoin classAbstractUndoableEdit- Throws:
CannotUndoException
-
redo
public void redo() throws CannotRedoException- Specified by:
redoin interfaceUndoableEdit- Overrides:
redoin classAbstractUndoableEdit- Throws:
CannotRedoException
-
-