public class MUCServicePropertyEventDispatcher extends Object
type
and optional parameters, as follows:
Event Type | Extra Params |
---|---|
property_set | A param named value that has the value of the property set. |
property_deleted | None |
Modifier and Type | Class and Description |
---|---|
static class |
MUCServicePropertyEventDispatcher.EventType
Represents valid event types.
|
Modifier and Type | Method and Description |
---|---|
static void |
addListener(MUCServicePropertyEventListener listener)
Registers a listener to receive events.
|
static void |
dispatchEvent(String service,
String property,
MUCServicePropertyEventDispatcher.EventType eventType,
Map<String,Object> params)
Dispatches an event to all listeners.
|
static void |
removeListener(MUCServicePropertyEventListener listener)
Unregisters a listener to receive events.
|
public static void addListener(MUCServicePropertyEventListener listener)
listener
- the listener.public static void removeListener(MUCServicePropertyEventListener listener)
listener
- the listener.public static void dispatchEvent(String service, String property, MUCServicePropertyEventDispatcher.EventType eventType, Map<String,Object> params)
service
- the subdomain of the MUC service the property is set for.property
- the property.eventType
- the event type.params
- event parameters.Copyright © 2003-2008 Jive Software.