All Packages  Class Hierarchy  This Package  Previous  Next  Index

Interface com.sun.java.swing.event.DocumentEvent

public interface DocumentEvent
Interface for document change notifications.


Method Index

 o getChange(Element)
Gets the change information for the given element.
 o getDocument()
Gets the document that sourced the change event.
 o getEdit()
Fetches the undo/redo record associated with this edit.
 o getLength()
Returns the length of the change.
 o getOffset()
Returns the offset within the document of the start of the change.

Methods

 o getOffset
 public abstract int getOffset()
Returns the offset within the document of the start of the change.

Returns:
the offset
 o getLength
 public abstract int getLength()
Returns the length of the change.

Returns:
the length
 o getDocument
 public abstract Document getDocument()
Gets the document that sourced the change event.

Returns:
s the document
 o getEdit
 public abstract UndoableEdit getEdit()
Fetches the undo/redo record associated with this edit.

Returns:
the record
 o getChange
 public abstract DocumentEvent. ElementChange getChange(Element elem)
Gets the change information for the given element. The change information describes what elements were added and removed and the location. If there were no changes, null is returned.

Returns:
the change information, or null if the element was not modified

All Packages  Class Hierarchy  This Package  Previous  Next  Index