Java Platform 1.2

javax.swing.event
Interface DocumentListener

All Known Implementing Classes:
JTextComponent.AccessibleJTextComponent

public abstract interface DocumentListener
extends 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

Java Platform 1.2

Submit a bug or feature Version 1.2 of Java Platform API Specification
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.