public interface Document
extends java.io.Serializable
| Modifier and Type | Method and Description |
|---|---|
void |
addDocumentListener(DocumentListener l)
Adds a listener which will be notified of changes to the document.
|
java.lang.String |
getText()
Returns the text of the document.
|
void |
removeDocumentListener(DocumentListener l)
Removes a listener from being notified of changes to the document.
|
void |
setText(java.lang.String text)
Sets the text of the document.
|
void addDocumentListener(DocumentListener l)
l - the listener to addjava.lang.String getText()
void setText(java.lang.String text)
text - the new text of the documentvoid removeDocumentListener(DocumentListener l)
l - the listener to remove