swingwtx.swing.text
Class AbstractDocument.ElementEdit

java.lang.Object
  extended byswingwtx.swing.undo.AbstractUndoableEdit
      extended byswingwtx.swing.text.AbstractDocument.ElementEdit
All Implemented Interfaces:
DocumentEvent.ElementChange, UndoableEdit
Enclosing class:
AbstractDocument

public static class AbstractDocument.ElementEdit
extends AbstractUndoableEdit
implements DocumentEvent.ElementChange


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

Constructor Detail

AbstractDocument.ElementEdit

public AbstractDocument.ElementEdit(Element e,
                                    int index,
                                    Element[] removed,
                                    Element[] added)
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

redo

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

undo

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