src/net/java/sip/communicator/service/protocol/AbstractOperationSetMultiUserChat.java
/**
     * Delivers a <tt>LocalUserChatRoomPresenceChangeEvent</tt> to all
     * registered <tt>LocalUserChatRoomPresenceListener</tt>s.
     *
     * @param chatRoom the <tt>ChatRoom</tt> which has been joined, left, etc.
     * @param eventType the type of this event; one of LOCAL_USER_JOINED,
     * LOCAL_USER_LEFT, etc.
     * @param reason the reason
     * @param alternateAddress address of the new room, if old is destroyed.
     */
Delivers a LocalUserChatRoomPresenceChangeEvent to all
registered LocalUserChatRoomPresenceListeners.

@param chatRoom the ChatRoom which has been joined, left, etc.
@param eventType the type of this event; one of LOCAL_USER_JOINED,
LOCAL_USER_LEFT, etc.
@param reason the reason
@param alternateAddress address of the new room, if old is destroyed.
Delivers a LocalUserChatRoomPresenceChangeEvent to all registered LocalUserChatRoomPresenceListeners . @param chatRoom the ChatRoom which has been joined left etc . @param eventType the type of this event ; one of LOCAL_USER_JOINED LOCAL_USER_LEFT etc . @param reason the reason @param alternateAddress address of the new room if old is destroyed .
public void fireLocalUserPresenceEvent(
        ChatRoom chatRoom,
        String eventType,
        String reason,
        String alternateAddress)
    {
        LocalUserChatRoomPresenceChangeEvent evt
            = new LocalUserChatRoomPresenceChangeEvent( this,
                                                        chatRoom,
                                                        eventType,
                                                        reason,
                                                        alternateAddress);
        LocalUserChatRoomPresenceListener[] listeners;
        synchronized (presenceListeners)
        {
            listeners
                = presenceListeners
                    .toArray(
                        new LocalUserChatRoomPresenceListener[
                                presenceListeners.size()]);
        }
        for (LocalUserChatRoomPresenceListener listener : listeners)
            listener.localUserPresenceChanged(evt);
    }
public void fireLocalUserPresenceEvent ( ChatRoom chatRoom , String eventType , String reason , String alternateAddress ) { LocalUserChatRoomPresenceChangeEvent evt = new LocalUserChatRoomPresenceChangeEvent ( this , chatRoom , eventType , reason , alternateAddress ) ; LocalUserChatRoomPresenceListener [ ] listeners ; synchronized ( presenceListeners ) { listeners = presenceListeners . toArray ( new LocalUserChatRoomPresenceListener [ presenceListeners . size ( ) ] ) ; } for ( LocalUserChatRoomPresenceListener listener : listeners ) listener . localUserPresenceChanged ( evt ) ; }
Delivers a <tt>LocalUserChatRoomPresenceChangeEvent</tt> to all
 registered <tt>LocalUserChatRoomPresenceListener</tt>s.
Delivers a <tt > LocalUserChatRoomPresenceChangeEvent< / tt > to all registered <tt > LocalUserChatRoomPresenceListener< / tt > s .