站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > NetBeans API Javadoc (Current Development Version)

GuardedDocumentEvent (Editor Library) - NetBeans API Javadoc (Current Development Version)

org.netbeans.modules.editor.lib/1 1.14.0 3

org.netbeans.editor
Class GuardedDocumentEvent

java.lang.Object
  extended by javax.swing.undo.AbstractUndoableEdit
      extended by javax.swing.undo.CompoundEdit
          extended by javax.swing.text.AbstractDocument.DefaultDocumentEvent
              extended by org.netbeans.editor.BaseDocumentEvent
                  extended by 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

Nested Class Summary
 
Nested classes/interfaces inherited from interface javax.swing.event.DocumentEvent
DocumentEvent.ElementChange, DocumentEvent.EventType
 
Field Summary
 
Fields inherited from class javax.swing.undo.CompoundEdit
edits
 
Fields inherited from class javax.swing.undo.AbstractUndoableEdit
RedoName, UndoName
 
Constructor Summary
GuardedDocumentEvent(GuardedDocument doc, int offset, int length, DocumentEvent.EventType type)
           
 
Method Summary
 void redo()
           
 void undo()
           
 
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
 
Methods inherited from class javax.swing.text.AbstractDocument.DefaultDocumentEvent
getDocument, getLength, getOffset, getPresentationName, getType, isSignificant
 
Methods inherited from class javax.swing.undo.CompoundEdit
lastEdit
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

GuardedDocumentEvent

public GuardedDocumentEvent(GuardedDocument doc,
                            int offset,
                            int length,
                            DocumentEvent.EventType type)
Method Detail

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

org.netbeans.modules.editor.lib/1 1.14.0 3

Built on May 28 2007.  |  Portions Copyright 1997-2007 Sun Microsystems, Inc. All rights reserved.