|
Jitsi: the OpenSource Java VoIP and Instant Messaging client. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.util.EventObject
net.java.sip.communicator.service.protocol.event.ChatRoomMemberPresenceChangeEvent
public class ChatRoomMemberPresenceChangeEvent
Dispatched to notify interested parties that a change in the presence of a chat room member has occurred. Changes may include the participant being kicked, join, left...
| Field Summary | |
|---|---|
static String |
MEMBER_JOINED
Indicates that this event was triggered as a result of the participant joining the source chat room. |
static String |
MEMBER_KICKED
Indicates that this event was triggered as a result of the participant being "kicked" out of the chat room. |
static String |
MEMBER_LEFT
Indicates that this event was triggered as a result of the participant leaving the source chat room. |
static String |
MEMBER_QUIT
Indicates that this event was triggered as a result of the participant being disconnected from the server brutally, or due to a ping timeout. |
static String |
REASON_USER_LIST
The well-known reason for a ChatRoomMemberPresenceChangeEvent to occur as part of an
operation which lists all users in a ChatRoom. |
| Fields inherited from class java.util.EventObject |
|---|
source |
| Constructor Summary | |
|---|---|
ChatRoomMemberPresenceChangeEvent(ChatRoom sourceRoom,
ChatRoomMember sourceMember,
ChatRoomMember actorMember,
String eventType,
String reason)
Creates a ChatRoomMemberPresenceChangeEvent representing that a change in the presence of a ChatRoomMember has occurred. |
|
ChatRoomMemberPresenceChangeEvent(ChatRoom sourceRoom,
ChatRoomMember sourceMember,
String eventType,
String reason)
Creates a ChatRoomMemberPresenceChangeEvent representing that a change in the presence of a ChatRoomMember has occurred. |
|
| Method Summary | |
|---|---|
ChatRoom |
getChatRoom()
Returns the chat room that produced this event. |
ChatRoomMember |
getChatRoomMember()
Returns the chat room member that this event is about. |
String |
getEventType()
Returns the type of this event which could be one of the MEMBER_XXX member field values. |
String |
getReason()
A reason String indicating a human readable reason for this event. |
boolean |
isReasonUserList()
Gets the indicator which determines whether this event has occurred with the well-known reason of listing all users in a ChatRoom. |
String |
toString()
Returns a String representation of this event. |
| 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 |
|---|
public static final String MEMBER_JOINED
public static final String MEMBER_LEFT
public static final String MEMBER_KICKED
public static final String MEMBER_QUIT
public static final String REASON_USER_LIST
ChatRoomMemberPresenceChangeEvent to occur as part of an
operation which lists all users in a ChatRoom.
| Constructor Detail |
|---|
public ChatRoomMemberPresenceChangeEvent(ChatRoom sourceRoom,
ChatRoomMember sourceMember,
String eventType,
String reason)
sourceRoom - the ChatRoom that produced this eventsourceMember - the ChatRoomMember that this event is abouteventType - the event type; one of the MEMBER_XXX constantsreason - the reason explaining why this event might have occurred
public ChatRoomMemberPresenceChangeEvent(ChatRoom sourceRoom,
ChatRoomMember sourceMember,
ChatRoomMember actorMember,
String eventType,
String reason)
sourceRoom - the ChatRoom that produced this eventsourceMember - the ChatRoomMember who this event is aboutactorMember - the ChatRoomMember who participated as an
actor in the new event. For example, in the case of a
MEMBER_KICKED event the actorMember is the moderator
who kicked the sourceMember.eventType - the event type; one of the MEMBER_XXX constantsreason - the reason explaining why this event might have occurred| Method Detail |
|---|
public ChatRoom getChatRoom()
public ChatRoomMember getChatRoomMember()
public String getReason()
public boolean isReasonUserList()
ChatRoom.
ChatRoom i.e.
getReason() returns a value of REASON_USER_LIST;
otherwise, falsepublic String getEventType()
public String toString()
toString in class EventObject
|
Jitsi: the OpenSource Java VoIP and Instant Messaging client. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||