com.nwoods.jgo
Class CompoundEdit
java.lang.Object
com.nwoods.jgo.AbstractUndoableEdit
com.nwoods.jgo.CompoundEdit
- All Implemented Interfaces:
- java.io.Serializable, UndoableEdit
- Direct Known Subclasses:
- JGoUndoManager.JGoCompoundEdit, UndoManager
- public class CompoundEdit
- extends AbstractUndoableEdit
This exists for compatibility with javax.swing.undo.CompoundEdit.
- See Also:
- Serialized Form
Field Summary |
protected java.util.Vector |
edits
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
edits
protected java.util.Vector edits
CompoundEdit
public CompoundEdit()
undo
public void undo()
throws CannotUndoException
- Specified by:
undo
in interface UndoableEdit
- Overrides:
undo
in class AbstractUndoableEdit
- Throws:
CannotUndoException
redo
public void redo()
throws CannotRedoException
- Specified by:
redo
in interface UndoableEdit
- Overrides:
redo
in class AbstractUndoableEdit
- Throws:
CannotRedoException
lastEdit
protected UndoableEdit lastEdit()
die
public void die()
- Specified by:
die
in interface UndoableEdit
- Overrides:
die
in class AbstractUndoableEdit
addEdit
public boolean addEdit(UndoableEdit anEdit)
- Specified by:
addEdit
in interface UndoableEdit
- Overrides:
addEdit
in class AbstractUndoableEdit
isInProgress
public boolean isInProgress()
end
public void end()
canUndo
public boolean canUndo()
- Specified by:
canUndo
in interface UndoableEdit
- Overrides:
canUndo
in class AbstractUndoableEdit
canRedo
public boolean canRedo()
- Specified by:
canRedo
in interface UndoableEdit
- Overrides:
canRedo
in class AbstractUndoableEdit
getPresentationName
public java.lang.String getPresentationName()
- Specified by:
getPresentationName
in interface UndoableEdit
- Overrides:
getPresentationName
in class AbstractUndoableEdit
getUndoPresentationName
public java.lang.String getUndoPresentationName()
- Specified by:
getUndoPresentationName
in interface UndoableEdit
- Overrides:
getUndoPresentationName
in class AbstractUndoableEdit
getRedoPresentationName
public java.lang.String getRedoPresentationName()
- Specified by:
getRedoPresentationName
in interface UndoableEdit
- Overrides:
getRedoPresentationName
in class AbstractUndoableEdit