Jitsi: the OpenSource Java VoIP and Instant Messaging client.

net.java.sip.communicator.service.protocol.event
Class ChatRoomMemberPropertyChangeEvent

java.lang.Object
  extended by java.util.EventObject
      extended by java.beans.PropertyChangeEvent
          extended by net.java.sip.communicator.service.protocol.event.ChatRoomMemberPropertyChangeEvent
All Implemented Interfaces:
Serializable

public class ChatRoomMemberPropertyChangeEvent
extends PropertyChangeEvent

A ChatRoomMemberPropertyChangeEvent is issued whenever a chat room member property has changed (such as the nickname for example). Event codes defined in this class describe properties whose changes are being announced through this event.

Author:
Emil Ivov, Stephane Remy
See Also:
Serialized Form

Field Summary
static String MEMBER_NICKNAME
          The nick name of the ChatRoomMember property.
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
ChatRoomMemberPropertyChangeEvent(ChatRoomMember source, ChatRoom memberChatRoom, String propertyName, Object oldValue, Object newValue)
          Creates a ChatRoomMemberPropertyChangeEvent indicating that a change has occurred for property propertyName in the source chat room member and that its value has changed from oldValue to newValue.
 
Method Summary
 ChatRoom getMemberChatRoom()
          Returns the chat room, to which the corresponding member belongs.
 ChatRoomMember getSourceChatRoomMember()
          Returns the member of the chat room, for which this event is about.
 String toString()
          Returns a String representation of this event.
 
Methods inherited from class java.beans.PropertyChangeEvent
getNewValue, getOldValue, getPropagationId, getPropertyName, setPropagationId
 
Methods inherited from class java.util.EventObject
getSource
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

MEMBER_NICKNAME

public static final String MEMBER_NICKNAME
The nick name of the ChatRoomMember property.

See Also:
Constant Field Values
Constructor Detail

ChatRoomMemberPropertyChangeEvent

public ChatRoomMemberPropertyChangeEvent(ChatRoomMember source,
                                         ChatRoom memberChatRoom,
                                         String propertyName,
                                         Object oldValue,
                                         Object newValue)
Creates a ChatRoomMemberPropertyChangeEvent indicating that a change has occurred for property propertyName in the source chat room member and that its value has changed from oldValue to newValue.

Parameters:
source - the ChatRoomMember whose property has changed.
memberChatRoom - the ChatRoom of the member
propertyName - the name of the property that has changed.
oldValue - the value of the property before the change occurred.
newValue - the value of the property after the change.
Method Detail

getSourceChatRoomMember

public ChatRoomMember getSourceChatRoomMember()
Returns the member of the chat room, for which this event is about.

Returns:
the ChatRoomMember for which this event is about

getMemberChatRoom

public ChatRoom getMemberChatRoom()
Returns the chat room, to which the corresponding member belongs.

Returns:
the chat room, to which the corresponding member belongs

toString

public String toString()
Returns a String representation of this event.

Overrides:
toString in class EventObject
Returns:
String representation of this event

Jitsi: the OpenSource Java VoIP and Instant Messaging client.

Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under LGPL license.