Overview | Package | Class | Use | Tree | Deprecated | Index | Help
| Swing 1.1
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## javax.swing.event
Interface DocumentListener

All Known Implementing Classes:
  JTextComponent.AccessibleJTextComponent

public abstract interface DocumentListener
extends java.util.EventListener

Interface for an observer to register to receive notifications of changes to a text document.

Method Summary
`void` | `changedUpdate(DocumentEvent e)` Gives notification that an attribute or set of attributes changed.
`void` | `insertUpdate(DocumentEvent e)` Gives notification that there was an insert into the document.
`void` | `removeUpdate(DocumentEvent e)` Gives notification that a portion of the document has been removed.

Method Detail

### insertUpdate

    public void insertUpdate(DocumentEvent e)

  Gives notification that there was an insert into the document. The given range bounds the freshly inserted region.
  Parameters:
    `e` - the document event

### removeUpdate

    public void removeUpdate(DocumentEvent e)

  Gives notification that a portion of the document has been removed. The range is given in terms of what the view last saw (that is, before updating sticky positions).
  Parameters:
    `e` - the document event

### changedUpdate

    public void changedUpdate(DocumentEvent e)

  Gives notification that an attribute or set of attributes changed.
  Parameters:
    `e` - the document event

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
| Swing 1.1
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Submit a bug or feature
Java is a trademark or registered trademark of Sun Microsystems, Inc. in the US and other countries.
Copyright 1993-1998 Sun Microsystems, Inc. 901 San Antonio Road,
Palo Alto, California, 94303, U.S.A. All Rights Reserved.