NextApp Echo3
v3.0.b4

nextapp.echo.app.text
Class StringDocument

java.lang.Object
  extended by nextapp.echo.app.text.AbstractDocument
      extended by nextapp.echo.app.text.StringDocument
All Implemented Interfaces:
java.io.Serializable, Document

public class StringDocument
extends AbstractDocument

A simple implementation of a document that holds a single String of text.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class nextapp.echo.app.text.AbstractDocument
listenerList
 
Constructor Summary
StringDocument()
          Creates a new StringDocument.
 
Method Summary
 java.lang.String getText()
          Returns the text held in the document.
 void setText(java.lang.String text)
          Sets the text held in the document.
 
Methods inherited from class nextapp.echo.app.text.AbstractDocument
addDocumentListener, fireDocumentUpdate, removeDocumentListener
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StringDocument

public StringDocument()
Creates a new StringDocument.

Method Detail

getText

public java.lang.String getText()
Returns the text held in the document.

Returns:
the text
See Also:
Document.getText()

setText

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

Parameters:
text - the new text
See Also:
Document.setText(String)

NextApp Echo3
v3.0.b4