javax.swing
Class JFormattedTextField.DocumentHandler

java.lang.Object
  extended byjavax.swing.JFormattedTextField.DocumentHandler
All Implemented Interfaces:
DocumentListener, EventListener, Serializable
Enclosing class:
JFormattedTextField

private class JFormattedTextField.DocumentHandler
extends Object
implements DocumentListener, Serializable

Sets the dirty state as the document changes.


Constructor Summary
private JFormattedTextField.DocumentHandler()
           
 
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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JFormattedTextField.DocumentHandler

private JFormattedTextField.DocumentHandler()
Method Detail

insertUpdate

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

Specified by:
insertUpdate in interface DocumentListener
Parameters:
e - the document event

removeUpdate

public void removeUpdate(DocumentEvent e)
Description copied from interface: DocumentListener
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).

Specified by:
removeUpdate in interface DocumentListener
Parameters:
e - the document event

changedUpdate

public void changedUpdate(DocumentEvent e)
Description copied from interface: DocumentListener
Gives notification that an attribute or set of attributes changed.

Specified by:
changedUpdate in interface DocumentListener
Parameters:
e - the document event