src/net/java/sip/communicator/impl/gui/main/chat/ChatPanel.java
/**
     * Notifies the user if any member of the chatroom changes nickname.
     *
     * @param event a <tt>ChatRoomMemberPropertyChangeEvent</tt> which carries
     * the specific of the change
     */
Notifies the user if any member of the chatroom changes nickname.
@param event a ChatRoomMemberPropertyChangeEvent which carries
the specific of the change
Notifies the user if any member of the chatroom changes nickname . @param event a ChatRoomMemberPropertyChangeEvent which carries the specific of the change
public void chatRoomPropertyChanged(ChatRoomMemberPropertyChangeEvent event)
    {
        if (ChatRoomMemberPropertyChangeEvent.MEMBER_NICKNAME.equals(event
            .getPropertyName()))
        {
            String message =
                GuiActivator.getResources().getI18NString(
                    "service.gui.CHAT_NICKNAME_CHANGE",
                    new String[]
                    { event.getOldValue().toString(),
                        event.getNewValue().toString() });
            this.conversationPanel.appendMessageToEnd(
                "<DIV identifier=\"message\" style=\"color:#707070;\">"
                    + StringEscapeUtils.escapeHtml4(message) + "</DIV>",
                ChatHtmlUtils.HTML_CONTENT_TYPE);
        }
    }
public void chatRoomPropertyChanged ( ChatRoomMemberPropertyChangeEvent event ) { if ( ChatRoomMemberPropertyChangeEvent . MEMBER_NICKNAME . equals ( event . getPropertyName ( ) ) ) { String message = GuiActivator . getResources ( ) . getI18NString ( "service.gui.CHAT_NICKNAME_CHANGE" , new String [ ] { event . getOldValue ( ) . toString ( ) , event . getNewValue ( ) . toString ( ) } ) ; this . conversationPanel . appendMessageToEnd ( "<DIV identifier=\"message\" style=\"color:#707070;\">" + StringEscapeUtils . escapeHtml4 ( message ) + "</DIV>" , ChatHtmlUtils . HTML_CONTENT_TYPE ) ; } }
Notifies the user if any member of the chatroom changes nickname.
Notifies the user if any member of the chatroom changes nickname .