Package jaxe
Class JaxeUndoManager
- java.lang.Object
-
- javax.swing.undo.AbstractUndoableEdit
-
- javax.swing.undo.CompoundEdit
-
- javax.swing.undo.UndoManager
-
- jaxe.JaxeUndoManager
-
- All Implemented Interfaces:
java.io.Serializable
,java.util.EventListener
,javax.swing.event.UndoableEditListener
,javax.swing.undo.UndoableEdit
public class JaxeUndoManager extends javax.swing.undo.UndoManager
UndoManager to recognise a modified document- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description JaxeUndoManager(JaxeDocument doc)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
addEdit(javax.swing.undo.UndoableEdit anEdit)
void
redo()
void
undo()
-
Methods inherited from class javax.swing.undo.UndoManager
canRedo, canUndo, canUndoOrRedo, discardAllEdits, editToBeRedone, editToBeUndone, end, getLimit, getRedoPresentationName, getUndoOrRedoPresentationName, getUndoPresentationName, redoTo, setLimit, toString, trimEdits, trimForLimit, undoableEditHappened, undoOrRedo, undoTo
-
-
-
-
Constructor Detail
-
JaxeUndoManager
public JaxeUndoManager(JaxeDocument doc)
-
-
Method Detail
-
addEdit
public boolean addEdit(javax.swing.undo.UndoableEdit anEdit)
- Specified by:
addEdit
in interfacejavax.swing.undo.UndoableEdit
- Overrides:
addEdit
in classjavax.swing.undo.UndoManager
-
undo
public void undo() throws javax.swing.undo.CannotUndoException
- Specified by:
undo
in interfacejavax.swing.undo.UndoableEdit
- Overrides:
undo
in classjavax.swing.undo.UndoManager
- Throws:
javax.swing.undo.CannotUndoException
-
redo
public void redo() throws javax.swing.undo.CannotRedoException
- Specified by:
redo
in interfacejavax.swing.undo.UndoableEdit
- Overrides:
redo
in classjavax.swing.undo.UndoManager
- Throws:
javax.swing.undo.CannotRedoException
-
-