javax.swing.event
Interface DocumentListener

All Superinterfaces:
EventListener
All Known Implementing Classes:
javax.swing.text.JTextComponent.AccessibleJTextComponent, javax.swing.JFormattedTextField.DocumentHandler, javax.swing.text.JTextComponent.InputMethodRequestsHandler, javax.swing.text.DefaultCaret.UpdateHandler

public interface DocumentListener
extends EventListener

Unsafe:


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

Method Detail

insertUpdate

public void insertUpdate(DocumentEvent e)
Enabled: Gives notification that there was an insert into the document. The range given by the DocumentEvent bounds the freshly inserted region.

Parameters:
e - the document event

removeUpdate

public void removeUpdate(DocumentEvent e)
Enabled: 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)
Enabled: Gives notification that an attribute or set of attributes changed.

Parameters:
e - the document event


comments?