public interface DocumentListener
extends java.util.EventListener
Implement BulkAwareDocumentListener.Simple
instead of this interface whenever possible to improve performance.
Modifier and Type | Field and Description |
---|---|
static ArrayFactory<DocumentListener> |
ARRAY_FACTORY |
static DocumentListener[] |
EMPTY_ARRAY |
Modifier and Type | Method and Description |
---|---|
default void |
beforeDocumentChange(DocumentEvent event)
Called before the text of the document is changed.
|
default void |
bulkUpdateFinished(Document document)
Notifies about
bulk mode being disabled. |
default void |
bulkUpdateStarting(Document document)
Notifies about
bulk mode being enabled. |
default void |
documentChanged(DocumentEvent event)
Called after the text of the document has been changed.
|
static final DocumentListener[] EMPTY_ARRAY
static final ArrayFactory<DocumentListener> ARRAY_FACTORY
default void beforeDocumentChange(DocumentEvent event)
event
- the event containing the information about the change.default void documentChanged(DocumentEvent event)
event
- the event containing the information about the change.default void bulkUpdateStarting(Document document)
bulk mode
being enabled.