NextApp Echo3
v3.0.b4

nextapp.echo.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 ab 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 Echo3
v3.0.b4