KickJava   Java API By Example, From Geeks To Geeks.

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


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
12  * ConversionListener interface It is abstract and implements
13  * every method of the listener with an empty implementation
14  *
15  * @author Brian Pontarelli
16  */

17 public abstract class ConversionListenerAdapter implements ConversionListener {
18
19     /**
20      * This handle method is called when the property value being set is going
21      * to be auto-converted but has not been converted yet.
22      */

23     public void handlePreConversion(ConversionEvent event) {}
24
25     /**
26      * This handle method is called when the property value being set has just been
27      * successfully auto-converted
28      */

29     public void handlePostConversion(ConversionEvent event) {}
30
31     /**
32      * This handle method is called when the property value being set has been
33      * converted and the conversion failed
34      */

35     public void handleFailedConversion(ConversionEvent event) {}
36 }
37
Popular Tags