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

GapBranchElement.Edit (Editor Utilities) - NetBeans API Javadoc (Current Development Version)

org.netbeans.modules.editor.util/1 1.17

org.netbeans.lib.editor.util.swing
Class GapBranchElement.Edit

java.lang.Object
  extended by javax.swing.undo.AbstractUndoableEdit
      extended by org.netbeans.lib.editor.util.swing.GapBranchElement.Edit
All Implemented Interfaces:
Serializable, DocumentEvent.ElementChange, UndoableEdit
Enclosing class:
GapBranchElement

public class GapBranchElement.Edit
extends AbstractUndoableEdit
implements DocumentEvent.ElementChange

See Also:
Serialized Form

Field Summary
 
Fields inherited from class javax.swing.undo.AbstractUndoableEdit
RedoName, UndoName
 
Constructor Summary
GapBranchElement.Edit(int index, Element[] childrenRemoved, Element[] childrenAdded)
           
 
Method Summary
 Element[] getChildrenAdded()
           
 Element[] getChildrenRemoved()
           
 Element getElement()
           
 int getIndex()
           
 void redo()
           
 void undo()
           
 
Methods inherited from class javax.swing.undo.AbstractUndoableEdit
addEdit, canRedo, canUndo, die, getPresentationName, getRedoPresentationName, getUndoPresentationName, isSignificant, replaceEdit, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

GapBranchElement.Edit

public GapBranchElement.Edit(int index,
                             Element[] childrenRemoved,
                             Element[] childrenAdded)
Method Detail

getElement

public Element getElement()
Specified by:
getElement in interface DocumentEvent.ElementChange

getIndex

public int getIndex()
Specified by:
getIndex in interface DocumentEvent.ElementChange

getChildrenRemoved

public Element[] getChildrenRemoved()
Specified by:
getChildrenRemoved in interface DocumentEvent.ElementChange

getChildrenAdded

public Element[] getChildrenAdded()
Specified by:
getChildrenAdded in interface DocumentEvent.ElementChange

undo

public void undo()
          throws CannotUndoException
Specified by:
undo in interface UndoableEdit
Overrides:
undo in class AbstractUndoableEdit
Throws:
CannotUndoException

redo

public void redo()
          throws CannotRedoException
Specified by:
redo in interface UndoableEdit
Overrides:
redo in class AbstractUndoableEdit
Throws:
CannotRedoException

org.netbeans.modules.editor.util/1 1.17

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