Package | Description |
---|---|
org.netbeans.lib.editor.util.swing |
Modifier and Type | Field and Description |
---|---|
static DocumentListenerPriority |
DocumentListenerPriority.AFTER_CARET_UPDATE
Udpate that follows caret update.
|
static DocumentListenerPriority |
DocumentListenerPriority.CARET_UPDATE
Caret udpate gets notified as last.
|
static DocumentListenerPriority |
DocumentListenerPriority.DEFAULT
Default level is used for all listeners added
by regular
Document.addDocumentListener(
javax.swing.event.DocumentListener) method. |
static DocumentListenerPriority |
DocumentListenerPriority.FIRST
Level that gets notified first (before all other levels).
|
static DocumentListenerPriority |
DocumentListenerPriority.FOLD_UPDATE
Fold update gets notified prior default level.
|
static DocumentListenerPriority |
DocumentListenerPriority.LEXER
Lexer gets notified early to allow other levels to use the udpated
token list.
|
static DocumentListenerPriority |
DocumentListenerPriority.VIEW
Views are updated after default level and prior caret gets updated.
|
Modifier and Type | Method and Description |
---|---|
static void |
DocumentUtilities.addDocumentListener(Document doc,
DocumentListener listener,
DocumentListenerPriority priority)
Add document listener to document with given priority
or default to using regular
Document.addDocumentListener(DocumentListener)
if the given document is not listener priority aware. |
static boolean |
DocumentUtilities.addPriorityDocumentListener(Document doc,
DocumentListener listener,
DocumentListenerPriority priority)
Suitable for document implementations - adds document listener
to document with given priority and does not do anything
if the given document is not listener priority aware.
|
static void |
DocumentUtilities.removeDocumentListener(Document doc,
DocumentListener listener,
DocumentListenerPriority priority)
Remove document listener that was previously added to the document
with given priority or use default
Document.removeDocumentListener(DocumentListener)
if the given document is not listener priority aware. |
static boolean |
DocumentUtilities.removePriorityDocumentListener(Document doc,
DocumentListener listener,
DocumentListenerPriority priority)
Suitable for document implementations - removes document listener
from document with given priority and does not do anything
if the given document is not listener priority aware.
|