public class WhiteboardParticipantChangeEvent
extends java.beans.PropertyChangeEvent
WHITEBOARD_PARTICIPANT_STATUS_CHANGE - indicates a change in the status of the participant.
WHITEBOARD_PARTICIPANT_DISPLAY_NAME_CHANGE - means that participant's display name has changed
WHITEBOARD_PARTICIPANT_IMAGE_CHANGE - participant updated photo.
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
WHITEBOARD_PARTICIPANT_DISPLAY_NAME_CHANGE
An event type indicating that the corresponding event is caused by a
change of the participant's display name.
|
static java.lang.String |
WHITEBOARD_PARTICIPANT_IMAGE_CHANGE
An event type indicating that the corresponding event is caused by a
change of the participant's photo/picture.
|
static java.lang.String |
WHITEBOARD_PARTICIPANT_STATE_CHANGE
An event type indicating that the corresponding event is caused by a
change of the WhiteboardParticipant's status.
|
Constructor and Description |
---|
WhiteboardParticipantChangeEvent(WhiteboardParticipant source,
java.lang.String type,
java.lang.Object oldValue,
java.lang.Object newValue)
Creates a WhiteboardParticipantChangeEvent with the specified source,
type, oldValue and newValue.
|
WhiteboardParticipantChangeEvent(WhiteboardParticipant source,
java.lang.String type,
java.lang.Object oldValue,
java.lang.Object newValue,
java.lang.String reason)
Creates a WhiteboardParticipantChangeEvent with the specified source,
type, oldValue and newValue.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getEventType()
Returns the type of this event.
|
java.lang.String |
getReasonString()
Returns a reason string further explaining the event (may be null).
|
WhiteboardParticipant |
getSourceWhiteboardParticipant()
Returns the WhiteboardParticipant that this event is about.
|
java.lang.String |
toString()
Returns a String representation of this WhiteboardParticipantChangeEvent.
|
public static final java.lang.String WHITEBOARD_PARTICIPANT_STATE_CHANGE
public static final java.lang.String WHITEBOARD_PARTICIPANT_DISPLAY_NAME_CHANGE
public static final java.lang.String WHITEBOARD_PARTICIPANT_IMAGE_CHANGE
public WhiteboardParticipantChangeEvent(WhiteboardParticipant source, java.lang.String type, java.lang.Object oldValue, java.lang.Object newValue)
source
- the participant that produced the event.type
- the type of the event
(i.e. address change, state change etc.).oldValue
- the value of the changed property
before the event occurrednewValue
- current value of the changed property.public WhiteboardParticipantChangeEvent(WhiteboardParticipant source, java.lang.String type, java.lang.Object oldValue, java.lang.Object newValue, java.lang.String reason)
source
- the participant that produced the event.type
- the type of the event (i.e. address change, state change
etc.).oldValue
- the value of the changed property before the event
occurrednewValue
- current value of the changed property.reason
- a string containing a human readable explanation for the
reason that triggerred this event (may be null).public java.lang.String getEventType()
public java.lang.String toString()
toString
in class java.beans.PropertyChangeEvent
public WhiteboardParticipant getSourceWhiteboardParticipant()
public java.lang.String getReasonString()
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under Apache license.