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
-
JDocumentEvent(Document, Range, UndoableEdit)
- Construct a change record.
-
addedChild(Element, Element)
- Note that a child element was added into a parent
element.
-
childrenAdded(Element)
-
-
childrenRemoved(Element)
-
-
elementsModified()
-
-
getDocument()
-
-
getEdit()
-
-
getRange()
-
-
isModified(Element)
-
-
removedChild(Element, Element)
- Note that a child element was removed from a parent
element.
-
toString()
-
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.
addedChild
public void addedChild(Element parent,
Element child)
- Note that a child element was added into a parent
element.
removedChild
public void removedChild(Element parent,
Element child)
- Note that a child element was removed from a parent
element.
getEdit
public UndoableEdit getEdit()
- See Also:
- getEdit
getRange
public Range getRange()
- See Also:
- getRange
getDocument
public Document getDocument()
- See Also:
- getDocument
isModified
public boolean isModified(Element elem)
- See Also:
- isModified
elementsModified
public Element[] elementsModified()
- See Also:
- elementsModified
childrenRemoved
public Element[] childrenRemoved(Element parent)
- See Also:
- childrenRemoved
childrenAdded
public Element[] childrenAdded(Element parent)
- See Also:
- childrenAdded
toString
public String toString()
- Overrides:
- toString in class Object
All Packages Class Hierarchy This Package Previous Next Index