addDocumentListener

open fun addDocumentListener(@NonNull documentListener: DocumentListener)

Adds a DocumentListener for listening to document events. If the listener has already been added previously, this method will be a no-op. Listeners registered with this method will be unregistered automatically in onDetach. Passing null is not allowed, and will result in an exception.

Parameters

documentListener

Listener to be notified of document events. May not be null.

See also