| 
 | Java™ Platform Standard Ed. 6 | |||||||||
| PREV NEXT | FRAMES NO FRAMES | |||||||||
| Packages that use UndoableEdit | |
|---|---|
| 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 | |
|---|---|
|  UndoableEdit | UndoableEditEvent.getEdit()Returns the edit value. | 
| Constructors in javax.swing.event with parameters of type UndoableEdit | |
|---|---|
| UndoableEditEvent(Object source,
                  UndoableEdit edit)Constructs an UndoableEditEvent object. | |
| Uses of UndoableEdit in javax.swing.text | 
|---|
| Classes in javax.swing.text that implement UndoableEdit | |
|---|---|
|  class | AbstractDocument.DefaultDocumentEventStores document changes as the document is being modified. | 
| static class | AbstractDocument.ElementEditAn implementation of ElementChange that can be added to the document event. | 
| static class | DefaultStyledDocument.AttributeUndoableEditAn UndoableEdit used to remember AttributeSet changes to an Element. | 
| Methods in javax.swing.text that return UndoableEdit | |
|---|---|
|  UndoableEdit | StringContent.insertString(int where,
             String str)Inserts a string into the content. | 
|  UndoableEdit | GapContent.insertString(int where,
             String str)Inserts a string into the content. | 
|  UndoableEdit | AbstractDocument.Content.insertString(int where,
             String str)Inserts a string of characters into the sequence. | 
|  UndoableEdit | StringContent.remove(int where,
       int nitems)Removes part of the content. | 
|  UndoableEdit | GapContent.remove(int where,
       int nitems)Removes part of the content. | 
|  UndoableEdit | AbstractDocument.Content.remove(int where,
       int nitems)Removes some portion of the sequence. | 
| Methods in javax.swing.text with parameters of type UndoableEdit | |
|---|---|
|  boolean | AbstractDocument.DefaultDocumentEvent.addEdit(UndoableEdit anEdit)Adds a document edit. | 
| Uses of UndoableEdit in javax.swing.undo | 
|---|
| Classes in javax.swing.undo that implement UndoableEdit | |
|---|---|
|  class | AbstractUndoableEditAn abstract implementation of UndoableEdit,
 implementing simple responses to all boolean methods in
 that interface. | 
|  class | CompoundEditA concrete subclass of AbstractUndoableEdit, used to assemble little UndoableEdits into great big ones. | 
|  class | StateEditStateEdit is a general edit for objects that change state. | 
|  class | UndoManagerUndoManagermanages a list ofUndoableEdits,
 providing a way to undo or redo the appropriate edits. | 
| Fields in javax.swing.undo with type parameters of type UndoableEdit | |
|---|---|
| protected  Vector<UndoableEdit> | CompoundEdit.editsThe collection of UndoableEdits
 undone/redone en masse by thisCompoundEdit. | 
| Methods in javax.swing.undo that return UndoableEdit | |
|---|---|
| protected  UndoableEdit | UndoManager.editToBeRedone()Returns the the next significant edit to be redone if redois invoked. | 
| protected  UndoableEdit | UndoManager.editToBeUndone()Returns the the next significant edit to be undone if undois invoked. | 
| protected  UndoableEdit | CompoundEdit.lastEdit()Returns the last UndoableEditinedits, ornullifeditsis empty. | 
| Methods in javax.swing.undo with parameters of type UndoableEdit | |
|---|---|
| protected  void | UndoableEditSupport._postEdit(UndoableEdit e)Called only from postEditandendUpdate. | 
|  boolean | UndoManager.addEdit(UndoableEdit anEdit)Adds an UndoableEditto thisUndoManager, if it's possible. | 
|  boolean | CompoundEdit.addEdit(UndoableEdit anEdit)If this edit is inProgress,
 acceptsanEditand returns true. | 
|  boolean | AbstractUndoableEdit.addEdit(UndoableEdit anEdit)This default implementation returns false. | 
|  boolean | UndoableEdit.addEdit(UndoableEdit anEdit)Adds an UndoableEditto thisUndoableEdit. | 
|  void | UndoableEditSupport.postEdit(UndoableEdit e)DEADLOCK WARNING: Calling this method may call undoableEditHappenedin all listeners. | 
| protected  void | UndoManager.redoTo(UndoableEdit edit)Redoes all changes from the index of the next edit to edit, updating the index of the next edit appropriately. | 
|  boolean | AbstractUndoableEdit.replaceEdit(UndoableEdit anEdit)This default implementation returns false. | 
|  boolean | UndoableEdit.replaceEdit(UndoableEdit anEdit)Returns true if this UndoableEditshould replaceanEdit. | 
| protected  void | UndoManager.undoTo(UndoableEdit edit)Undoes all changes from the index of the next edit to edit, updating the index of the next edit appropriately. | 
| 
 | Java™ Platform Standard Ed. 6 | |||||||||
| PREV NEXT | FRAMES NO FRAMES | |||||||||
Copyright 2008 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.