KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jivesoftware > util > PropertyEventListener


1 /**
2  * $RCSfile: PropertyEventListener.java,v $
3  * $Revision: 1.2 $
4  * $Date: 2005/07/26 17:10:33 $
5  *
6  * Copyright (C) 2004-2005 Jive Software. All rights reserved.
7  *
8  * This software is published under the terms of the GNU Public License (GPL),
9  * a copy of which is included in this distribution.
10  */

11
12 package org.jivesoftware.util;
13
14 import java.util.Map JavaDoc;
15
16 /**
17  * Interface to listen for property events. Use the
18  * {@link org.jivesoftware.util.PropertyEventDispatcher#addListener(PropertyEventListener)}
19  * method to register for events.
20  *
21  * @author Matt Tucker
22  */

23 public interface PropertyEventListener {
24
25     /**
26      * A property was set.
27      *
28      * @param property the property.
29      * @param params event parameters.
30      */

31     public void propertySet(String JavaDoc property, Map JavaDoc params);
32
33     /**
34      * A property was deleted.
35      *
36      * @param property the deleted.
37      * @param params event parameters.
38      */

39     public void propertyDeleted(String JavaDoc property, Map JavaDoc params);
40
41     /**
42      * An XML property was set.
43      *
44      * @param property the property.
45      * @param params event parameters.
46      */

47     public void xmlPropertySet(String JavaDoc property, Map JavaDoc params);
48
49     /**
50      * An XML property was deleted.
51      *
52      * @param property the property.
53      * @param params event parameters.
54      */

55     public void xmlPropertyDeleted(String JavaDoc property, Map JavaDoc params);
56
57 }
Popular Tags