KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > inversoft > beans > PropertyListenerAdapter


1 /*
2  * Copyright (c) 2003, Inversoft
3  *
4  * This software is distribuable under the GNU Lesser General Public License.
5  * For more information visit gnu.org.
6  */

7 package com.inversoft.beans;
8
9
10 /**
11  * This class is a blank implementation of the PropertyListener
12  * interface. It is abstract and implements every method
13  * of the listener with an empty implementation
14  *
15  * @author Brian Pontarelli
16  */

17 public abstract class PropertyListenerAdapter implements PropertyListener {
18
19     /**
20      * This handle method is called when the property value is being retrieved
21      * by calling the getter for the property
22      */

23     public void handleGet(PropertyEvent event) {}
24
25     /**
26      * This handle method is called when the property value is being changed
27      * by calling the setter for the property
28      */

29     public void handleSet(PropertyEvent event) {}
30 }
31
Popular Tags