All Packages Class Hierarchy This Package Previous Next Index
Interface java.awt.swing.event.DocumentEvent
- public interface DocumentEvent
Interface for document change notifications.
DocumentEvent.ElementChange- Describes changes made to an element.
getChange(Element)
- Gets the change information for the given element.
getDocument()
- Gets the document that sourced the change event.
getEdit()
- Fetches the undo/redo record associated with
this edit.
getLength()
- Returns the length of the change.
getOffset()
- Returns the offset within the document of the start
of the change.
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.
getEdit
public abstract UndoableEdit getEdit()
- Fetches the undo/redo record associated with
this edit.
- Returns:
- the record
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