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 getLength()
Returns the length of the change.
 o getOffset()
Returns the offset within the document of the start of the change.
 o getType()
Gets the type of event.

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 getType
 public abstract DocumentEvent. EventType getType()
Gets the type of event.

 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