public class CallChangeEvent
extends java.beans.PropertyChangeEvent
CALL_STATE_CHANGE - indicates a change in the state of a Call.
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CALL_PARTICIPANTS_CHANGE
The type of CallChangeEvent which indicates that there was some
kind of change in the participants in the associated Call (e.g.
|
static java.lang.String |
CALL_STATE_CHANGE
The type of CallChangeEvent which indicates that the state of
the associated Call has changed.
|
Constructor and Description |
---|
CallChangeEvent(Call source,
java.lang.String type,
java.lang.Object oldValue,
java.lang.Object newValue)
Creates a CallChangeEvent with the specified source, type, oldValue and
newValue.
|
CallChangeEvent(Call source,
java.lang.String type,
java.lang.Object oldValue,
java.lang.Object newValue,
CallPeerChangeEvent cause)
Creates a CallChangeEvent with the specified source, type, oldValue and
newValue.
|
Modifier and Type | Method and Description |
---|---|
CallPeerChangeEvent |
getCause()
The event which was the cause for current event, like last peer
removed from call will hangup current call, if any, otherwise is null.
|
java.lang.String |
getEventType()
Returns the type of this event.
|
Call |
getSourceCall()
The Call on which the event has occurred.
|
java.lang.String |
toString()
Returns a String representation of this CallChangeEvent.
|
public static final java.lang.String CALL_STATE_CHANGE
public static final java.lang.String CALL_PARTICIPANTS_CHANGE
public CallChangeEvent(Call source, java.lang.String type, java.lang.Object oldValue, java.lang.Object newValue)
source
- the peer that produced the event.type
- the type of the event (the name of the property that has
changed).oldValue
- the value of the changed property before the event
occurrednewValue
- current value of the changed property.public CallChangeEvent(Call source, java.lang.String type, java.lang.Object oldValue, java.lang.Object newValue, CallPeerChangeEvent cause)
source
- the peer that produced the event.type
- the type of the event (the name of the property that has
changed).oldValue
- the value of the changed property before the event
occurrednewValue
- current value of the changed property.cause
- the event that causes this event, if any(null otherwise).public CallPeerChangeEvent getCause()
public java.lang.String getEventType()
public Call getSourceCall()
public java.lang.String toString()
toString
in class java.beans.PropertyChangeEvent
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under Apache license.