
UndoableEditEvent Ja va 1 .2
javax.swing .event serializable event
An event of this type is generated by a javax.swing .text.Document when an undoable edit
has occurred. The inherited getSource() method retur ns the Document object on which the
edit occurred, and getEdit() retur ns a description of the edit itself.
public class UndoableEditEvent extends java.util.EventObject {
// Public Constructors
public UndoableEditEvent(Object source, javax.swing .undo.UndoableEdit edit);
// Public Instance Methods
public javax.swing.undo.UndoableEdit getEdit();
}
Hierar chy: Object→ java.util.EventObject(Serializable)→ UndoableEditEvent
Passed To: UndoableEditListener.undoableEditHappened(),
javax.swing .text.AbstractDocument.fireUndoableEditUpdate(),
javax.swing .text.html.HTMLDocument.fireUndoableEditUpdate(),
javax.swing .undo.UndoManager.undoableEditHappened()
UndoableEditListener Ja va 1.2
javax.swing .event event listener
This interface defines the method that an object must implement in order to receive
notifications when an undoable edit occurs in a javax.swing .text.Document.
public abstract interface UndoableEditListener extends java.util.EventListener {
// Public Instance Methods
public abstract void undoableEditHappened(UndoableEditEvent e);
}
Hierar chy: (UndoableEditListener(java.util.EventListener))
Implementations: javax.swing .undo.UndoManager
Passed To: javax.swing .text.AbstractDocument.{addUndoableEditListener(), ...