NextApp Echo2
v2.1.0

nextapp.echo2.app.text
Interface Document

All Superinterfaces:
java.io.Serializable
All Known Implementing Classes:
AbstractDocument, StringDocument

public interface Document
extends java.io.Serializable

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. This method should return an empty string in the event the document contains no text. Null may not be returned.

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.

NextApp Echo2
v2.1.0