当前页面:
在线文档首页 >
NetBeans API Javadoc (Current Development Version)
GuardedDocumentEvent (Editor Library) - NetBeans API Javadoc (Current Development Version)
org.netbeans.editor
Class GuardedDocumentEvent
java.lang.Object
javax.swing.undo.AbstractUndoableEdit
javax.swing.undo.CompoundEdit
javax.swing.text.AbstractDocument.DefaultDocumentEvent
org.netbeans.editor.BaseDocumentEvent
org.netbeans.editor.GuardedDocumentEvent
- All Implemented Interfaces:
- Serializable, DocumentEvent, UndoableEdit
public class GuardedDocumentEvent
- extends BaseDocumentEvent
Attempt to insert or remove from the guarded block has been done.
- See Also:
- Serialized Form
Methods inherited from class org.netbeans.editor.BaseDocumentEvent |
addEdit, canMerge, canRedo, canUndo, die, end, findEdit, getChange, getChars, getDrawLayerName, getDrawLayerVisibility, getLFCount, getLine, getRedoPresentationName, getSyntaxUpdateOffset, getText, getUndoPresentationName, isInProgress, isInRedo, isInUndo, replaceEdit, toString |
GuardedDocumentEvent
public GuardedDocumentEvent(GuardedDocument doc,
int offset,
int length,
DocumentEvent.EventType type)
undo
public void undo()
throws CannotUndoException
- Specified by:
undo
in interface UndoableEdit
- Overrides:
undo
in class BaseDocumentEvent
- Throws:
CannotUndoException
redo
public void redo()
throws CannotRedoException
- Specified by:
redo
in interface UndoableEdit
- Overrides:
redo
in class BaseDocumentEvent
- Throws:
CannotRedoException