com.alee.utils.swing
Class IntDocumentChangeListener

java.lang.Object
  extended by com.alee.utils.swing.DocumentChangeListener
      extended by com.alee.utils.swing.IntDocumentChangeListener
All Implemented Interfaces:
java.util.EventListener, javax.swing.event.DocumentListener

public abstract class IntDocumentChangeListener
extends DocumentChangeListener

DocumentChangeListener extension that informs about integer value changes.

Author:
Mikle Garin

Constructor Summary
IntDocumentChangeListener()
           
 
Method Summary
 void documentChanged(javax.swing.event.DocumentEvent e)
          Informs that document has changed in some way.
abstract  void documentChanged(java.lang.Integer newValue, javax.swing.event.DocumentEvent e)
          Informs that integer value contained in the document has changed in some way.
 
Methods inherited from class com.alee.utils.swing.DocumentChangeListener
changedUpdate, getText, insertUpdate, removeUpdate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IntDocumentChangeListener

public IntDocumentChangeListener()
Method Detail

documentChanged

public void documentChanged(javax.swing.event.DocumentEvent e)
Informs that document has changed in some way.

Specified by:
documentChanged in class DocumentChangeListener
Parameters:
e - document event

documentChanged

public abstract void documentChanged(java.lang.Integer newValue,
                                     javax.swing.event.DocumentEvent e)
Informs that integer value contained in the document has changed in some way.

Parameters:
newValue - new integer value or null if value cannot be parsed
e - document event