NextApp Echo2
v2.1.0.rc2

nextapp.echo2.app.text
Interface Document

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

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

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

Parameters:
l - The listener to add.

getText

public java.lang.String getText()
Returns the text of the document. This method should return ab empty string in the event the document contains no text. Null may not be returned.

Returns:
The text of the document.

setText

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

Parameters:
text - The new text of the document.

removeDocumentListener

public 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.rc2