git-svn-id: https://samskivert.googlecode.com/svn/trunk@1423 6335cc39-0255-0410-8fd6-9bcaacd3b74c

This commit is contained in:
ray
2004-05-01 01:40:34 +00:00
parent 3ef365ba4c
commit 129b2604e3
@@ -0,0 +1,41 @@
//
// $Id: DocumentAdapter.java,v 1.1 2004/05/01 01:40:34 ray Exp $
package com.samskivert.swing.event;
import javax.swing.event.DocumentEvent;
import javax.swing.event.DocumentListener;
/**
* A DocumentAdapter for focusing DocumentListener events into a pinpoint
* of easy wonderosity.
* Or you can override each of the DocumentListener methods as you wish.
*/
public class DocumentAdapter implements DocumentListener
{
/**
* A handy-dandy method you can override to just do *something* whenever
* the document changes.
*/
public void documentChanged ()
{
}
// documentation inherited from interface DocumentListener
public void changedUpdate (DocumentEvent e)
{
documentChanged();
}
// documentation inherited from interface DocumentListener
public void insertUpdate (DocumentEvent e)
{
documentChanged();
}
// documentation inherited from interface DocumentListener
public void removeUpdate (DocumentEvent e)
{
documentChanged();
}
}