Interface com.sun.java.swing.event.DocumentEvent
- public interface DocumentEvent
Interface for document change notifications.
Method Index
- getChange(Element)
- Gets the change information for the given element.
- getDocument()
- Gets the document that sourced the change event.
- getLength()
- Returns the length of the change.
- getOffset()
- Returns the offset within the document of the start
of the change.
- getType()
- Gets the type of event.
Methods
getOffset
public abstract int getOffset()
- Returns the offset within the document of the start
of the change.
- Returns:
- the offset
getLength
public abstract int getLength()
- Returns the length of the change.
- Returns:
- the length
getDocument
public abstract Document getDocument()
- Gets the document that sourced the change event.
- Returns:
- s the document
getType
public abstract DocumentEvent. EventType getType()
- Gets the type of event.
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
