All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class com.sun.java.swing.text.JDocumentEvent

java.lang.Object
   |
   +----com.sun.java.swing.text.JDocumentEvent

public class JDocumentEvent
extends Object
implements DocumentEvent
Stores document changes as the document is being modified. Can subsequently be used for change notification when done with the document modification transaction. This is used by the DocumentBase class and it's extensions for broadcasting change information to the document listeners.

See Also:
DocumentEvent, Document

Constructor Index

 o JDocumentEvent(Document, Range, UndoableEdit)
Construct a change record.

Method Index

 o addedChild(Element, Element)
Note that a child element was added into a parent element.
 o childrenAdded(Element)
 o childrenRemoved(Element)
 o elementsModified()
 o getDocument()
 o getEdit()
 o getRange()
 o isModified(Element)
 o removedChild(Element, Element)
Note that a child element was removed from a parent element.
 o toString()

Constructors

 o JDocumentEvent
 public JDocumentEvent(Document doc,
                       Range rng,
                       UndoableEdit e)
Construct a change record.

Parameters:
doc - Document that is being changed
rng - The area within the document being changed.
e - The edit history. This may be null if the associated document implementation doesn't support undo/redo of it's edits.

Methods

 o addedChild
 public void addedChild(Element parent,
                        Element child)
Note that a child element was added into a parent element.

 o removedChild
 public void removedChild(Element parent,
                          Element child)
Note that a child element was removed from a parent element.

 o getEdit
 public UndoableEdit getEdit()
See Also:
getEdit
 o getRange
 public Range getRange()
See Also:
getRange
 o getDocument
 public Document getDocument()
See Also:
getDocument
 o isModified
 public boolean isModified(Element elem)
See Also:
isModified
 o elementsModified
 public Element[] elementsModified()
See Also:
elementsModified
 o childrenRemoved
 public Element[] childrenRemoved(Element parent)
See Also:
childrenRemoved
 o childrenAdded
 public Element[] childrenAdded(Element parent)
See Also:
childrenAdded
 o toString
 public String toString()
Overrides:
toString in class Object

All Packages  Class Hierarchy  This Package  Previous  Next  Index