|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object![]()
![]()
![]()
javax.swing.undo.AbstractUndoableEdit
![]()
![]()
![]()
javax.swing.text.AbstractDocument.ElementEdit
, DocumentEvent.ElementChange
, UndoableEdit


public static class AbstractDocument.ElementEdit


An implementation of ElementChange that can be added to the document event.
| Field Summary |
|---|
Fields inherited from class javax.swing.undo.AbstractUndoableEdit ![]() |
|---|
RedoName |
| Constructor Summary | |
|---|---|
AbstractDocument.ElementEdit
Constructs an edit record. |
|
| Method Summary | |
|---|---|
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. |
Methods inherited from class javax.swing.undo.AbstractUndoableEdit ![]() |
|---|
addEdit |
Methods inherited from class java.lang.Object ![]() |
|---|
clone |
| 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 added| Method Detail |
|---|

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 redo()
throws CannotRedoException

redo

in interface UndoableEdit

redo

in class AbstractUndoableEdit

CannotRedoException

- if the change cannot be redoneAbstractUndoableEdit.canRedo()


public void undo()
throws CannotUndoException

undo

in interface UndoableEdit

undo

in class AbstractUndoableEdit

CannotUndoException

- if the change cannot be undoneAbstractUndoableEdit.canUndo()

|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||