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

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