nextapp.echo.text
Interface Document

All Known Implementing Classes:
AbstractDocument, StringDocument

public interface Document

A model for text components.


Method Summary
 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.
 

Method Detail

addDocumentListener

void addDocumentListener(DocumentListener l)
Adds a listener which will be notified of changes to the document.

Parameters:
l - The listener to add.

getText

java.lang.String getText()
Returns the text of the document.

Returns:
The text of the document.

setText

void setText(java.lang.String text)
Sets the text of the document.

Parameters:
text - The new text of the document.

removeDocumentListener

void removeDocumentListener(DocumentListener l)
Removes a listener from being notified of changes to the document.

Parameters:
l - The listener to remove.