public abstract class AbstractDocumentEdit extends java.lang.Object implements javax.swing.undo.UndoableEdit
| Constructor and Description | 
|---|
| AbstractDocumentEdit() | 
| Modifier and Type | Method and Description | 
|---|---|
| boolean | addEdit(javax.swing.undo.UndoableEdit edit) | 
| boolean | canRedo() | 
| boolean | canUndo() | 
| void | die() | 
| boolean | getIsSubedit() | 
| java.lang.String | getRedoPresentationName() | 
| java.lang.String | getUndoPresentationName() | 
| boolean | isSignificant() | 
| void | redo()Default implementation that just calls  registerDocumentChange()if this edit is not a subedit. | 
| protected abstract void | registerDocumentChange()Inheriting classes should, e.g., inform document listeners here. | 
| boolean | replaceEdit(javax.swing.undo.UndoableEdit edit) | 
| void | setIsSubedit(boolean isSubedit)Indicates whether this edit is independent or part of another edit. | 
| void | undo()Default implementation that just calls  registerDocumentChange()if this edit is not a subedit. | 
public AbstractDocumentEdit()
public boolean getIsSubedit()
public void setIsSubedit(boolean isSubedit)
public boolean addEdit(javax.swing.undo.UndoableEdit edit)
addEdit in interface javax.swing.undo.UndoableEditpublic boolean canRedo()
canRedo in interface javax.swing.undo.UndoableEditpublic boolean canUndo()
canUndo in interface javax.swing.undo.UndoableEditpublic void die()
die in interface javax.swing.undo.UndoableEditpublic java.lang.String getRedoPresentationName()
getRedoPresentationName in interface javax.swing.undo.UndoableEditpublic java.lang.String getUndoPresentationName()
getUndoPresentationName in interface javax.swing.undo.UndoableEditpublic boolean isSignificant()
isSignificant in interface javax.swing.undo.UndoableEditpublic boolean replaceEdit(javax.swing.undo.UndoableEdit edit)
replaceEdit in interface javax.swing.undo.UndoableEditprotected abstract void registerDocumentChange()
public void redo() throws javax.swing.undo.CannotRedoException
registerDocumentChange() if this edit is not a subedit.
 Inheriting classes would have to overwrite this method to perform there document changes but should
 call the inherited methods at the end of the implementation.redo in interface javax.swing.undo.UndoableEditjavax.swing.undo.CannotRedoExceptionpublic void undo() throws javax.swing.undo.CannotUndoException
registerDocumentChange() if this edit is not a subedit.
 Inheriting classes would have to overwrite this method to undo there document changes but should
 call the inherited methods at the end of the implementation.undo in interface javax.swing.undo.UndoableEditjavax.swing.undo.CannotUndoException