Jitsi: the OpenSource Java VoIP and Instant Messaging client.

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

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

public class WhiteboardSessionPresenceChangeEvent
extends EventObject

Dispatched to notify interested parties that a change in our presence in the source whiteboard has occured. Changes may include us being joined, left, etc.

Author:
Yana Stamcheva
See Also:
Serialized Form

Field Summary
static String LOCAL_USER_DROPPED
          Indicates that this event was triggered as a result of the local participant beeing disconnected from the server brutally, or ping timeout.
static String LOCAL_USER_JOIN_FAILED
          Indicates that this event was triggered as a result of the local participant failed to join a whiteboard.
static String LOCAL_USER_JOINED
          Indicates that this event was triggered as a result of the local participant joining a whiteboard.
static String LOCAL_USER_KICKED
          Indicates that this event was triggered as a result of the local participant being kicked from a whiteboard.
static String LOCAL_USER_LEFT
          Indicates that this event was triggered as a result of the local participant leaving a whiteboard.
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
WhiteboardSessionPresenceChangeEvent(OperationSetWhiteboarding source, WhiteboardSession session, String eventType, String reason)
          Creates a WhiteboardSessionPresenceChangeEvent representing that a change in local participant presence in the source white-board has occured.
 
Method Summary
 String getEventType()
          Returns the type of this event which could be one of the LOCAL_USER_XXX member fields.
 String getReason()
          A reason string indicating a human readable reason for this event.
 OperationSetWhiteboarding getWhiteboardOpSet()
          Returns the OperationSetWhiteboarding, where this event has occurred.
 WhiteboardSession getWhiteboardSession()
          Returns the WhiteboardSession, that this event is about.
 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

LOCAL_USER_JOINED

public static final String LOCAL_USER_JOINED
Indicates that this event was triggered as a result of the local participant joining a whiteboard.

See Also:
Constant Field Values

LOCAL_USER_JOIN_FAILED

public static final String LOCAL_USER_JOIN_FAILED
Indicates that this event was triggered as a result of the local participant failed to join a whiteboard.

See Also:
Constant Field Values

LOCAL_USER_LEFT

public static final String LOCAL_USER_LEFT
Indicates that this event was triggered as a result of the local participant leaving a whiteboard.

See Also:
Constant Field Values

LOCAL_USER_KICKED

public static final String LOCAL_USER_KICKED
Indicates that this event was triggered as a result of the local participant being kicked from a whiteboard.

See Also:
Constant Field Values

LOCAL_USER_DROPPED

public static final String LOCAL_USER_DROPPED
Indicates that this event was triggered as a result of the local participant beeing disconnected from the server brutally, or ping timeout.

See Also:
Constant Field Values
Constructor Detail

WhiteboardSessionPresenceChangeEvent

public WhiteboardSessionPresenceChangeEvent(OperationSetWhiteboarding source,
                                            WhiteboardSession session,
                                            String eventType,
                                            String reason)
Creates a WhiteboardSessionPresenceChangeEvent representing that a change in local participant presence in the source white-board has occured.

Parameters:
source - the OperationSetWhiteboarding, which produced this event
session - the WhiteboardSession that this event is about
eventType - the type of this event.
reason - the reason explaining why this event might have occurred
Method Detail

getWhiteboardOpSet

public OperationSetWhiteboarding getWhiteboardOpSet()
Returns the OperationSetWhiteboarding, where this event has occurred.

Returns:
the OperationSetWhiteboarding, where this event has occurred

getWhiteboardSession

public WhiteboardSession getWhiteboardSession()
Returns the WhiteboardSession, that this event is about.

Returns:
the WhiteboardSession, that this event is about

getReason

public String getReason()
A reason string indicating a human readable reason for this event.

Returns:
a human readable String containing the reason for this event, or null if no particular reason was specified

getEventType

public String getEventType()
Returns the type of this event which could be one of the LOCAL_USER_XXX member fields.

Returns:
one of the LOCAL_USER_XXX fields indicating the type of this event.

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.