All Packages  Class Hierarchy  This Package  Previous  Next  Index

Interface com.sun.java.swing.text.DocumentEvent

public interface DocumentEvent
Interface for document change notifications.


Method Index

 o childrenAdded(Element)
The child elements that were added to the given parent element.
 o childrenRemoved(Element)
The child elements that were removed from the given parent element.
 o elementsModified()
The elements that were modified as a result of the change to the document that caused the notification.
 o getDocument()
The document that sourced the change event.
 o getEdit()
Fetch the undo/redo record associated with this edit.
 o getRange()
The area within the document that changed.
 o isModified(Element)
Determines if the given element has been modified in terms of having children added or removed.

Methods

 o getRange
 public abstract Range getRange()
The area within the document that changed.

 o getDocument
 public abstract Document getDocument()
The document that sourced the change event.

 o getEdit
 public abstract UndoableEdit getEdit()
Fetch the undo/redo record associated with this edit.

 o isModified
 public abstract boolean isModified(Element elem)
Determines if the given element has been modified in terms of having children added or removed. If it has been modified, it will also appear in the array returned by the elementsModified method.

Parameters:
elem - The element to check
 o elementsModified
 public abstract Element[] elementsModified()
The elements that were modified as a result of the change to the document that caused the notification.

 o childrenRemoved
 public abstract Element[] childrenRemoved(Element parent)
The child elements that were removed from the given parent element. The parent element is expected to be one of the elements listed in the elementsModified method. The element array returned is sorted in the order that the elements used to lie in the document.

 o childrenAdded
 public abstract Element[] childrenAdded(Element parent)
The child elements that were added to the given parent element. The parent element is expected to be one of the elements given in the elementsModified method. The element array returned is sorted in the order that the elements lie in the document.


All Packages  Class Hierarchy  This Package  Previous  Next  Index