Uses of Interface
javax.swing.undo.UndoableEdit
-
Packages that use UndoableEdit Package Description javax.swing.event Provides for events fired by Swing components.javax.swing.text Provides classes and interfaces that deal with editable and noneditable text components.javax.swing.undo Allows developers to provide support for undo/redo in applications such as text editors. -
-
Uses of UndoableEdit in javax.swing.event
Methods in javax.swing.event that return UndoableEdit Modifier and Type Method Description UndoableEditUndoableEditEvent. getEdit()Returns the edit value.Constructors in javax.swing.event with parameters of type UndoableEdit Constructor Description UndoableEditEvent(Object source, UndoableEdit edit)Constructs an UndoableEditEvent object. -
Uses of UndoableEdit in javax.swing.text
Classes in javax.swing.text that implement UndoableEdit Modifier and Type Class Description classAbstractDocument.DefaultDocumentEventStores document changes as the document is being modified.static classAbstractDocument.ElementEditAn implementation of ElementChange that can be added to the document event.static classDefaultStyledDocument.AttributeUndoableEditAn UndoableEdit used to remember AttributeSet changes to an Element.Methods in javax.swing.text that return UndoableEdit Modifier and Type Method Description UndoableEditAbstractDocument.Content. insertString(int where, String str)Inserts a string of characters into the sequence.UndoableEditGapContent. insertString(int where, String str)Inserts a string into the content.UndoableEditStringContent. insertString(int where, String str)Inserts a string into the content.UndoableEditAbstractDocument.Content. remove(int where, int nitems)Removes some portion of the sequence.UndoableEditGapContent. remove(int where, int nitems)Removes part of the content.UndoableEditStringContent. remove(int where, int nitems)Removes part of the content.Methods in javax.swing.text with parameters of type UndoableEdit Modifier and Type Method Description booleanAbstractDocument.DefaultDocumentEvent. addEdit(UndoableEdit anEdit)Adds a document edit. -
Uses of UndoableEdit in javax.swing.undo
Classes in javax.swing.undo that implement UndoableEdit Modifier and Type Class Description classAbstractUndoableEditAn abstract implementation ofUndoableEdit, implementing simple responses to all boolean methods in that interface.classCompoundEditA concrete subclass of AbstractUndoableEdit, used to assemble little UndoableEdits into great big ones.classStateEditStateEdit is a general edit for objects that change state.classUndoManagerUndoManagermanages a list ofUndoableEdits, providing a way to undo or redo the appropriate edits.Fields in javax.swing.undo with type parameters of type UndoableEdit Modifier and Type Field Description protected Vector<UndoableEdit>CompoundEdit. editsThe collection ofUndoableEdits undone/redone en masse by thisCompoundEdit.Methods in javax.swing.undo that return UndoableEdit Modifier and Type Method Description protected UndoableEditUndoManager. editToBeRedone()Returns the next significant edit to be redone ifredois invoked.protected UndoableEditUndoManager. editToBeUndone()Returns the next significant edit to be undone ifundois invoked.protected UndoableEditCompoundEdit. lastEdit()Returns the lastUndoableEditinedits, ornullifeditsis empty.Methods in javax.swing.undo with parameters of type UndoableEdit Modifier and Type Method Description protected voidUndoableEditSupport. _postEdit(UndoableEdit e)Called only frompostEditandendUpdate.booleanAbstractUndoableEdit. addEdit(UndoableEdit anEdit)This default implementation returns false.booleanCompoundEdit. addEdit(UndoableEdit anEdit)If this edit isinProgress, acceptsanEditand returns true.booleanUndoableEdit. addEdit(UndoableEdit anEdit)Adds anUndoableEditto thisUndoableEdit.booleanUndoManager. addEdit(UndoableEdit anEdit)Adds anUndoableEditto thisUndoManager, if it's possible.voidUndoableEditSupport. postEdit(UndoableEdit e)DEADLOCK WARNING: Calling this method may callundoableEditHappenedin all listeners.protected voidUndoManager. redoTo(UndoableEdit edit)Redoes all changes from the index of the next edit toedit, updating the index of the next edit appropriately.booleanAbstractUndoableEdit. replaceEdit(UndoableEdit anEdit)This default implementation returns false.booleanUndoableEdit. replaceEdit(UndoableEdit anEdit)Returns true if thisUndoableEditshould replaceanEdit.protected voidUndoManager. undoTo(UndoableEdit edit)Undoes all changes from the index of the next edit toedit, updating the index of the next edit appropriately.
-