| |||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public static class AbstractDocument.ElementEdit extends AbstractUndoableEdit implements DocumentEvent.ElementChange
An implementation of ElementChange that can be added to the document event.
Field Summary |
---|
Fields inherited from class javax.swing.undo.AbstractUndoableEdit |
---|
RedoName, UndoName |
Constructor Summary | |
---|---|
AbstractDocument.ElementEdit(Element e, int index, Element[] removed, Element[] added) Constructs an edit record. |
Method Summary | |
---|---|
Element[] |
Gets a list of children that were added. |
Element[] |
Gets a list of children that were removed. |
Element |
Returns the underlying element. |
int |
getIndex() Returns the index into the list of elements. |
void |
redo() Redoes a change. |
void |
undo() Undoes a change. |
Methods inherited from class javax.swing.undo.AbstractUndoableEdit |
---|
addEdit, canRedo, canUndo, die, getPresentationName, getRedoPresentationName, getUndoPresentationName, isSignificant, redo, replaceEdit, toString, undo |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AbstractDocument.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 addedMethod Detail |
---|
public Element[] getChildrenAdded()
public Element[] getChildrenRemoved()
public Element getElement()
public int getIndex()
public void redo() throws CannotRedoException
redo
in class AbstractUndoableEdit
CannotRedoException
- if the change cannot be redonepublic void undo() throws CannotUndoException
undo
in class AbstractUndoableEdit
CannotUndoException
- if the change cannot be undone
| |||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |