Jitsi: the OpenSource Java VoIP and Instant Messaging client.

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

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

public class ChatRoomLocalUserRoleChangeEvent
extends EventObject

Dispatched to notify interested parties that a change in our role in the source chat room has occurred. Changes may include us 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
ChatRoomLocalUserRoleChangeEvent(ChatRoom sourceRoom, ChatRoomMemberRole previousRole, ChatRoomMemberRole newRole)
          Creates a ChatRoomLocalUserRoleChangeEvent representing that a change in local participant role in the source chat room has occured.
 
Method Summary
 ChatRoomMemberRole getNewRole()
          Returns the new role the local participant get.
 ChatRoomMemberRole getPreviousRole()
          Returns the previous role that local participant had.
 ChatRoom getSourceChatRoom()
          Returns the ChatRoom, where this event occured.
 
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

ChatRoomLocalUserRoleChangeEvent

public ChatRoomLocalUserRoleChangeEvent(ChatRoom sourceRoom,
                                        ChatRoomMemberRole previousRole,
                                        ChatRoomMemberRole newRole)
Creates a ChatRoomLocalUserRoleChangeEvent representing that a change in local participant role in the source chat room has occured.

Parameters:
sourceRoom - the ChatRoom that produced the event
previousRole - the previous role that local participant had
newRole - the new role that local participant get
Method Detail

getNewRole

public ChatRoomMemberRole getNewRole()
Returns the new role the local participant get.

Returns:
newRole the new role the local participant get

getPreviousRole

public ChatRoomMemberRole getPreviousRole()
Returns the previous role that local participant had.

Returns:
previousRole the previous role that local participant had

getSourceChatRoom

public ChatRoom getSourceChatRoom()
Returns the ChatRoom, where this event occured.

Returns:
the ChatRoom, where this event occured

Jitsi: the OpenSource Java VoIP and Instant Messaging client.

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