当前页面:
在线文档首页 >
NetBeans API Javadoc (Current Development Version)
GapBranchElement.Edit (Editor Utilities) - NetBeans API Javadoc (Current Development Version)
org.netbeans.lib.editor.util.swing
Class GapBranchElement.Edit
java.lang.Object
javax.swing.undo.AbstractUndoableEdit
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
GapBranchElement.Edit
public GapBranchElement.Edit(int index,
Element[] childrenRemoved,
Element[] childrenAdded)
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