org.tbee.swing
Class DelayedDocumentListener
java.lang.Object
org.tbee.swing.DelayedDocumentListener
- All Implemented Interfaces:
- ActionListener, EventListener, DocumentListener
public class DelayedDocumentListener
- extends Object
- implements DocumentListener, 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));
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SOURCECODE_VERSION
public static final String SOURCECODE_VERSION
- Standard variable for determining version of a class file.
- See Also:
- Constant Field Values
DelayedDocumentListener
public DelayedDocumentListener(DocumentListener delegate)
DelayedDocumentListener
public DelayedDocumentListener(DocumentListener delegate,
int delay)
changedUpdate
public void changedUpdate(DocumentEvent e)
- Specified by:
changedUpdate in interface DocumentListener
insertUpdate
public void insertUpdate(DocumentEvent e)
- Specified by:
insertUpdate in interface DocumentListener
removeUpdate
public void removeUpdate(DocumentEvent e)
- Specified by:
removeUpdate in interface DocumentListener
actionPerformed
public void actionPerformed(ActionEvent e)
- Specified by:
actionPerformed in interface ActionListener
Copyright © 2012 KnowledgePlaza. All Rights Reserved.