Package ro.sync.ecss.extensions.api
Class AuthorUndoManager
java.lang.Object
javax.swing.undo.AbstractUndoableEdit
javax.swing.undo.CompoundEdit
javax.swing.undo.UndoManager
ro.sync.ecss.extensions.api.AuthorUndoManager
- All Implemented Interfaces:
Serializable
,EventListener
,UndoableEditListener
,UndoableEdit
Undo manager for Author edits. It allows to register listeners that are notified
when undoable edits occur.
- Since:
- 23.1
- See Also:
-
Field Summary
Fields inherited from class javax.swing.undo.CompoundEdit
edits
Fields inherited from class javax.swing.undo.AbstractUndoableEdit
RedoName, UndoName
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract void
addUndoableEditListener
(UndoableEditListener listener) Registers anUndoableEditListener
.abstract void
Remove a listener for undoable edits.Methods inherited from class javax.swing.undo.UndoManager
addEdit, canRedo, canUndo, canUndoOrRedo, discardAllEdits, editToBeRedone, editToBeUndone, end, getLimit, getRedoPresentationName, getUndoOrRedoPresentationName, getUndoPresentationName, redo, redoTo, setLimit, toString, trimEdits, trimForLimit, undo, undoableEditHappened, undoOrRedo, undoTo
Methods inherited from class javax.swing.undo.CompoundEdit
die, getPresentationName, isInProgress, isSignificant, lastEdit
Methods inherited from class javax.swing.undo.AbstractUndoableEdit
replaceEdit
-
Constructor Details
-
AuthorUndoManager
public AuthorUndoManager()
-
-
Method Details
-
addUndoableEditListener
Registers anUndoableEditListener
. The listener is notified when an edit occurs, with the previous undoable edit.- Parameters:
listener
- The listener to be added
-
removeUndoableEditListener
Remove a listener for undoable edits.- Parameters:
listener
- The listener to be removed
-