org.tbee.swing
Class DelayedDocumentListener
java.lang.Object
org.tbee.swing.DelayedDocumentListener
- All Implemented Interfaces:
- java.awt.event.ActionListener, java.util.EventListener, javax.swing.event.DocumentListener
public class DelayedDocumentListener
- extends java.lang.Object
- implements javax.swing.event.DocumentListener, java.awt.event.ActionListener
Wrap your DocumentListner inside this class and register with Document.
it notifies your listener after specified delay. if they are more changes
occurred within this delay, it still notifies you only once for last change.
Usage:
document.addDocumentListener(new DelayedDocumentListener(yourDocumentListener, delay));
|
Field Summary |
static java.lang.String |
SOURCECODE_VERSION
Standard variable for determining version of a class file. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SOURCECODE_VERSION
public static final java.lang.String SOURCECODE_VERSION
- Standard variable for determining version of a class file.
- See Also:
- Constant Field Values
DelayedDocumentListener
public DelayedDocumentListener(javax.swing.event.DocumentListener delegate)
DelayedDocumentListener
public DelayedDocumentListener(javax.swing.event.DocumentListener delegate,
int delay)
changedUpdate
public void changedUpdate(javax.swing.event.DocumentEvent e)
- Specified by:
changedUpdate in interface javax.swing.event.DocumentListener
insertUpdate
public void insertUpdate(javax.swing.event.DocumentEvent e)
- Specified by:
insertUpdate in interface javax.swing.event.DocumentListener
removeUpdate
public void removeUpdate(javax.swing.event.DocumentEvent e)
- Specified by:
removeUpdate in interface javax.swing.event.DocumentListener
actionPerformed
public void actionPerformed(java.awt.event.ActionEvent e)
- Specified by:
actionPerformed in interface java.awt.event.ActionListener
Copyright © 2010 KnowledgePlaza. All Rights Reserved.