| java.lang.Object org.jivesoftware.util.PropertyEventDispatcher
PropertyEventDispatcher | public class PropertyEventDispatcher (Code) | | Dispatches property events. Each event has a
EventType type and optional parameters, as follows:
Event Type | Extra Params |
EventType.property_set property_set | A param named value that
has the value of the property set. |
EventType.property_deleted property_deleted | None |
EventType.xml_property_set xml_property_set | A param named value that
has the value of the property set. |
EventType.xml_property_deleted xml_property_deleted | None |
author: Matt Tucker |
Inner Class :public enum EventType | |
addListener | public static void addListener(PropertyEventListener listener)(Code) | | Registers a listener to receive events.
Parameters: listener - the listener. |
dispatchEvent | public static void dispatchEvent(String property, EventType eventType, Map<String, Object> params)(Code) | | Dispatches an event to all listeners.
Parameters: property - the property. Parameters: eventType - the event type. Parameters: params - event parameters. |
removeListener | public static void removeListener(PropertyEventListener listener)(Code) | | Unregisters a listener to receive events.
Parameters: listener - the listener. |
|
|