From 129b2604e3fad0fc317f898114ff6bfa79961740 Mon Sep 17 00:00:00 2001 From: ray Date: Sat, 1 May 2004 01:40:34 +0000 Subject: [PATCH] git-svn-id: https://samskivert.googlecode.com/svn/trunk@1423 6335cc39-0255-0410-8fd6-9bcaacd3b74c --- .../swing/event/DocumentAdapter.java | 41 +++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 projects/samskivert/src/java/com/samskivert/swing/event/DocumentAdapter.java diff --git a/projects/samskivert/src/java/com/samskivert/swing/event/DocumentAdapter.java b/projects/samskivert/src/java/com/samskivert/swing/event/DocumentAdapter.java new file mode 100644 index 00000000..ebf737d6 --- /dev/null +++ b/projects/samskivert/src/java/com/samskivert/swing/event/DocumentAdapter.java @@ -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(); + } +}