com.nwoods.jgo
Class AbstractUndoableEdit

java.lang.Object
  extended bycom.nwoods.jgo.AbstractUndoableEdit
All Implemented Interfaces:
java.io.Serializable, UndoableEdit
Direct Known Subclasses:
CompoundEdit, JGoDocumentChangedEdit

public class AbstractUndoableEdit
extends java.lang.Object
implements UndoableEdit, java.io.Serializable

This exists for compatibility with javax.swing.undo.AbstractUndoableEdit.

See Also:
Serialized Form

Constructor Summary
AbstractUndoableEdit()
           
 
Method Summary
 boolean addEdit(UndoableEdit anEdit)
           
 boolean canRedo()
           
 boolean canUndo()
           
 void die()
           
 java.lang.String getPresentationName()
           
 java.lang.String getRedoPresentationName()
           
 java.lang.String getUndoPresentationName()
           
 void redo()
           
 void undo()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractUndoableEdit

public AbstractUndoableEdit()
Method Detail

die

public void die()
Specified by:
die in interface UndoableEdit

undo

public void undo()
          throws CannotUndoException
Specified by:
undo in interface UndoableEdit
Throws:
CannotUndoException

canUndo

public boolean canUndo()
Specified by:
canUndo in interface UndoableEdit

redo

public void redo()
          throws CannotRedoException
Specified by:
redo in interface UndoableEdit
Throws:
CannotRedoException

canRedo

public boolean canRedo()
Specified by:
canRedo in interface UndoableEdit

addEdit

public boolean addEdit(UndoableEdit anEdit)
Specified by:
addEdit in interface UndoableEdit

getPresentationName

public java.lang.String getPresentationName()
Specified by:
getPresentationName in interface UndoableEdit

getUndoPresentationName

public java.lang.String getUndoPresentationName()
Specified by:
getUndoPresentationName in interface UndoableEdit

getRedoPresentationName

public java.lang.String getRedoPresentationName()
Specified by:
getRedoPresentationName in interface UndoableEdit