Java Platform 1.2
Beta 4

Uses of Interface
com.sun.java.swing.undo.UndoableEdit

Packages that use UndoableEdit
com.sun.java.swing.event Provides for events fired by Swing components.  
com.sun.java.swing.text Provides classes and interfaces that deal with editable and noneditable text components.  
com.sun.java.swing.undo Provides support for undo/redo capabilities in an application such as a text editor.  
 

Uses of UndoableEdit in com.sun.java.swing.event
 

Methods in com.sun.java.swing.event that return UndoableEdit
 UndoableEdit UndoableEditEvent.getEdit()
           
 

Constructors in com.sun.java.swing.event with parameters of type UndoableEdit
UndoableEditEvent.UndoableEditEvent(Object source, UndoableEdit edit)
           
 

Uses of UndoableEdit in com.sun.java.swing.text
 

Classes in com.sun.java.swing.text that implement UndoableEdit
  AbstractDocument.DefaultDocumentEvent
          Stores document changes as the document is being modified.
static  AbstractDocument.ElementEdit
          An implementation of ElementChange that can be added to the document event.
 

Methods in com.sun.java.swing.text that return UndoableEdit
 UndoableEdit StringContent.insertString(int where, String str)
          Inserts a string into the content.
 UndoableEdit StringContent.remove(int where, int nitems)
          Removes part of the content. where + nitems must be < length().
 UndoableEdit GapContent.insertString(int where, String str)
          Inserts a string into the content.
 UndoableEdit GapContent.remove(int where, int nitems)
          Removes part of the content.
 UndoableEdit AbstractDocument.Content.insertString(int where, String str)
          Inserts a string of characters into the sequence.
 UndoableEdit AbstractDocument.Content.remove(int where, int nitems)
          Removes some portion of the sequence.
 

Methods in com.sun.java.swing.text with parameters of type UndoableEdit
 boolean AbstractDocument.DefaultDocumentEvent.addEdit(UndoableEdit anEdit)
          Adds a document edit.
 

Uses of UndoableEdit in com.sun.java.swing.undo
 

Classes in com.sun.java.swing.undo that implement UndoableEdit
  AbstractUndoableEdit
          An abstract implementation of UndoableEdit, implementing simple responses to all boolean methods in that interface.
  CompoundEdit
          A concrete subclass of AbstractUndoableEdit, used to assemble little UndoableEdits into great big ones.
  StateEdit
          StateEdit is a general edit for objects that change state.
  UndoManager
          Concrete subclass of CompoundEdit which can serve as an UndoableEditListener, consolidating the UndoableEditEvents from a variety of sources, and undoing or redoing them one at a time.
 

Methods in com.sun.java.swing.undo that return UndoableEdit
protected  UndoableEdit CompoundEdit.lastEdit()
          Returns the last UndoableEdit in edits, or null if edits is empty
protected  UndoableEdit UndoManager.editToBeUndone()
          Returns the the next significant edit to be undone if undo is called.
protected  UndoableEdit UndoManager.editToBeRedone()
          Returns the the next significant edit to be redone if redo is called.
 

Methods in com.sun.java.swing.undo with parameters of type UndoableEdit
 boolean AbstractUndoableEdit.addEdit(UndoableEdit anEdit)
          This default implementation returns false.
 boolean AbstractUndoableEdit.replaceEdit(UndoableEdit anEdit)
          This default implementation returns false.
 boolean CompoundEdit.addEdit(UndoableEdit anEdit)
          If this edit is inProgress, accepts anEdit and returns true.
protected  void UndoableEditSupport._postEdit(UndoableEdit e)
          Called only from postEdit and endUpdate.
 void UndoableEditSupport.postEdit(UndoableEdit e)
          DEADLOCK WARNING: Calling this method may call undoableEditHappened in all listeners.
 boolean UndoableEdit.addEdit(UndoableEdit anEdit)
          This UndoableEdit should absorb anEdit if it can.
 boolean UndoableEdit.replaceEdit(UndoableEdit anEdit)
          Return true if this UndoableEdit should replace anEdit.
protected  void UndoManager.undoTo(UndoableEdit edit)
          Undoes all changes from indexOfNextAdd to edit.
protected  void UndoManager.redoTo(UndoableEdit edit)
          Redoes all changes from indexOfNextAdd to edit.
 boolean UndoManager.addEdit(UndoableEdit anEdit)
          If inProgress, inserts anEdit at indexOfNextAdd, and removes any old edits that were at indexOfNextAdd or later.
 


Java Platform 1.2
Beta 4

Submit a bug or feature
Submit comments/suggestions about new javadoc look
Java is a trademark or registered trademark of Sun Microsystems, Inc. in the US and other countries.
Copyright 1993-1998 Sun Microsystems, Inc. 901 San Antonio Road,
Palo Alto, California, 94303, U.S.A. All Rights Reserved.
This documentation was generated with a post-Beta4 version of Javadoc.