Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## nextapp.echo2.app.text
Class StringDocument

    java.lang.Object
      nextapp.echo2.app.text.AbstractDocument
          nextapp.echo2.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.echo2.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.echo2.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)`

Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD