All Packages  Class Hierarchy  This Package  Previous  Next  Index  

Interface java.awt.swing.event.DocumentEvent

public interface DocumentEvent
Interface for document change notifications.


Class Index

 o DocumentEvent.ElementChange
Describes changes made to an element.

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.

 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.

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

All Packages  Class Hierarchy  This Package  Previous  Next  Index  

Submit a bug or feature