All Packages Class Hierarchy This Package Previous Next Index
Interface com.sun.java.swing.text.DocumentEvent
- public interface DocumentEvent
Interface for document change notifications.
-
childrenAdded(Element)
- The child elements that were added to the given
parent element.
-
childrenRemoved(Element)
- The child elements that were removed from the
given parent element.
-
elementsModified()
- The elements that were modified as a result of the
change to the document that caused the notification.
-
getDocument()
- The document that sourced the change event.
-
getEdit()
- Fetch the undo/redo record associated with
this edit.
-
getRange()
- The area within the document that changed.
-
isModified(Element)
- Determines if the given element has been modified
in terms of having children added or removed.
getRange
public abstract Range getRange()
- The area within the document that changed.
getDocument
public abstract Document getDocument()
- The document that sourced the change event.
getEdit
public abstract UndoableEdit getEdit()
- Fetch the undo/redo record associated with
this edit.
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
elementsModified
public abstract Element[] elementsModified()
- The elements that were modified as a result of the
change to the document that caused the notification.
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.
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