public static class AbstractDocument.ElementEdit extends AbstractUndoableEdit implements DocumentEvent.ElementChange
RedoName, UndoName| Constructor and Description | 
|---|
| ElementEdit(Element e,
           int index,
           Element[] removed,
           Element[] added)Constructs an edit record. | 
| Modifier and Type | Method and Description | 
|---|---|
| Element[] | getChildrenAdded()Gets a list of children that were added. | 
| Element[] | getChildrenRemoved()Gets a list of children that were removed. | 
| Element | getElement()Returns the underlying element. | 
| int | getIndex()Returns the index into the list of elements. | 
| void | redo()Redoes a change. | 
| void | undo()Undoes a change. | 
addEdit, canRedo, canUndo, die, getPresentationName, getRedoPresentationName, getUndoPresentationName, isSignificant, replaceEdit, toStringpublic ElementEdit(Element e, int index, Element[] removed, Element[] added)
e - the elementindex - the index into the model >= 0removed - a set of elements that were removedadded - a set of elements that were addedpublic Element getElement()
getElement in interface DocumentEvent.ElementChangepublic int getIndex()
getIndex in interface DocumentEvent.ElementChangepublic Element[] getChildrenRemoved()
getChildrenRemoved in interface DocumentEvent.ElementChangepublic Element[] getChildrenAdded()
getChildrenAdded in interface DocumentEvent.ElementChangepublic void redo()
          throws CannotRedoException
redo in interface UndoableEditredo in class AbstractUndoableEditCannotRedoException - if the change cannot be redoneAbstractUndoableEdit.canRedo()public void undo()
          throws CannotUndoException
undo in interface UndoableEditundo in class AbstractUndoableEditCannotUndoException - if the change cannot be undoneAbstractUndoableEdit.canUndo() Submit a bug or feature 
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
 Copyright © 1993, 2016, Oracle and/or its affiliates.  All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.