Interface java.awt.swing.event.DocumentEvent
- Implementing Classes:
- AbstractDocument.DefaultDocumentEvent
- public interface DocumentEvent
Interface for document change notifications.
getOffset
public int getOffset()
- Returns the offset within the document of the start
of the change.
- Returns:
- the offset
getLength
public int getLength()
- Returns the length of the change.
- Returns:
- the length
getDocument
public Document getDocument()
- Gets the document that sourced the change event.
getType
public DocumentEvent.EventType getType()
- Gets the type of event.
getChange
public 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
Submit a bug or feature
Submit comments/suggestions about new javadoc look.
Java is a trademark or registered trademark of Sun Microsystems, Inc. in the US and other countries.
Copyright 1993-1998 Sun Microsystems, Inc. 901 San Antonio Road, Palo Alto, California, 94303, U.S.A. All Rights Reserved.