Jitsi: the OpenSource Java VoIP and Instant Messaging client.

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

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

public class ChatRoomMemberRoleChangeEvent
extends EventObject

Dispatched to notify interested parties that a change in a member role in the source room has occurred. Changes may include member being granted admin permissions, or other permissions.

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

Field Summary
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
ChatRoomMemberRoleChangeEvent(ChatRoom sourceRoom, ChatRoomMember sourceMember, ChatRoomMemberRole previousRole, ChatRoomMemberRole newRole)
          Creates a ChatRoomMemberRoleChangeEvent representing that a change in member role in the source chat room has occured.
 
Method Summary
 ChatRoomMemberRole getNewRole()
          Returns the new role given to the member that this event is about.
 ChatRoomMemberRole getPreviousRole()
          Returns the previous role the member that this event is about had.
 ChatRoom getSourceChatRoom()
          Returns the chat room that produced this event.
 ChatRoomMember getSourceMember()
          Returns the member that this event is about.
 
Methods inherited from class java.util.EventObject
getSource, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ChatRoomMemberRoleChangeEvent

public ChatRoomMemberRoleChangeEvent(ChatRoom sourceRoom,
                                     ChatRoomMember sourceMember,
                                     ChatRoomMemberRole previousRole,
                                     ChatRoomMemberRole newRole)
Creates a ChatRoomMemberRoleChangeEvent representing that a change in member role in the source chat room has occured.

Parameters:
sourceRoom - the ChatRoom that produced this event
sourceMember - the ChatRoomMember that this event is about
previousRole - the previous role that member had
newRole - the new role that member get
Method Detail

getNewRole

public ChatRoomMemberRole getNewRole()
Returns the new role given to the member that this event is about.

Returns:
the new role given to the member that this event is about

getPreviousRole

public ChatRoomMemberRole getPreviousRole()
Returns the previous role the member that this event is about had.

Returns:
the previous role the member that this event is about had

getSourceChatRoom

public ChatRoom getSourceChatRoom()
Returns the chat room that produced this event.

Returns:
the ChatRoom that produced this event

getSourceMember

public ChatRoomMember getSourceMember()
Returns the member that this event is about.

Returns:
the ChatRoomMember that this event is about

Jitsi: the OpenSource Java VoIP and Instant Messaging client.

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