add Document Listener
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
document Listener
Listener to be notified of document events. May not be null
.