public class GapBranchElement.Edit extends AbstractUndoableEdit implements DocumentEvent.ElementChange
RedoName, UndoName
Constructor and Description |
---|
Edit(int index,
Element[] childrenRemoved,
Element[] childrenAdded) |
Modifier and Type | Method and Description |
---|---|
Element[] |
getChildrenAdded() |
Element[] |
getChildrenRemoved() |
Element |
getElement() |
int |
getIndex() |
void |
redo() |
void |
undo() |
addEdit, canRedo, canUndo, die, getPresentationName, getRedoPresentationName, getUndoPresentationName, isSignificant, replaceEdit, toString
public Element getElement()
getElement
in interface DocumentEvent.ElementChange
public int getIndex()
getIndex
in interface DocumentEvent.ElementChange
public Element[] getChildrenRemoved()
getChildrenRemoved
in interface DocumentEvent.ElementChange
public Element[] getChildrenAdded()
getChildrenAdded
in interface DocumentEvent.ElementChange
public void undo() throws CannotUndoException
undo
in interface UndoableEdit
undo
in class AbstractUndoableEdit
CannotUndoException
public void redo() throws CannotRedoException
redo
in interface UndoableEdit
redo
in class AbstractUndoableEdit
CannotRedoException
Built on June 4 2024. | Copyright © 2017-2024 Apache Software Foundation. All Rights Reserved.