public abstract class AbstractDocument extends java.lang.Object implements Document, java.io.Serializable
| Modifier and Type | Field and Description |
|---|---|
protected EventListenerList |
listenerList
Listener storage facility.
|
| Constructor and Description |
|---|
AbstractDocument()
Default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addDocumentListener(DocumentListener l)
Adds a listener which will be notified of changes to the document.
|
void |
fireDocumentUpdate(DocumentEvent e)
Notifies listeners about an update to the document.
|
void |
removeDocumentListener(DocumentListener l)
Removes a listener from being notified of changes to the document.
|
protected EventListenerList listenerList
public void addDocumentListener(DocumentListener l)
addDocumentListener in interface Documentl - the listener to addDocument.addDocumentListener(DocumentListener)public void fireDocumentUpdate(DocumentEvent e)
e - an event describing the changes to the documentpublic void removeDocumentListener(DocumentListener l)
removeDocumentListener in interface Documentl - the listener to removeDocument.removeDocumentListener(DocumentListener)