public class ContactPresenceStatusChangeEvent
extends java.beans.PropertyChangeEvent
Constructor and Description |
---|
ContactPresenceStatusChangeEvent(Contact source,
ProtocolProviderService sourceProvider,
ContactGroup parentGroup,
PresenceStatus oldValue,
PresenceStatus newValue)
Creates an event instance indicating that the specified source contact
has changed status from oldValue to newValue.
|
ContactPresenceStatusChangeEvent(Contact source,
ProtocolProviderService sourceProvider,
ContactGroup parentGroup,
PresenceStatus oldValue,
PresenceStatus newValue,
boolean resourceChanged)
Creates an event instance indicating that the specified source contact
has changed status from oldValue to newValue.
|
Modifier and Type | Method and Description |
---|---|
PresenceStatus |
getNewStatus()
Returns the status of the provider after this event took place.
|
PresenceStatus |
getOldStatus()
Returns the status of the provider before this event took place.
|
ContactGroup |
getParentGroup()
Returns (if applicable) the group containing the contact that cause this
event.
|
Contact |
getSourceContact()
Returns the provider that the source contact belongs to.
|
ProtocolProviderService |
getSourceProvider()
Returns the provider that the source contact belongs to.
|
boolean |
isResourceChanged()
When the event fired is change in the resource of the contact will
return true.
|
java.lang.String |
toString()
Returns a String representation of this ContactPresenceStatusChangeEvent
|
public ContactPresenceStatusChangeEvent(Contact source, ProtocolProviderService sourceProvider, ContactGroup parentGroup, PresenceStatus oldValue, PresenceStatus newValue)
source
- the provider that generated the eventsourceProvider
- the protocol provider that the contact belongs to.parentGroup
- the group containing the contact that caused this
event (to be set as null in cases where groups are not supported);oldValue
- the status the source countact was in before enetering
the new state.newValue
- the status the source contact is currently in.public ContactPresenceStatusChangeEvent(Contact source, ProtocolProviderService sourceProvider, ContactGroup parentGroup, PresenceStatus oldValue, PresenceStatus newValue, boolean resourceChanged)
source
- the provider that generated the eventsourceProvider
- the protocol provider that the contact belongs to.parentGroup
- the group containing the contact that caused this
event (to be set as null in cases where groups are not supported);oldValue
- the status the source countact was in before enetering
the new state.newValue
- the status the source contact is currently in.public ProtocolProviderService getSourceProvider()
public Contact getSourceContact()
public PresenceStatus getOldStatus()
public PresenceStatus getNewStatus()
public ContactGroup getParentGroup()
public java.lang.String toString()
toString
in class java.beans.PropertyChangeEvent
public boolean isResourceChanged()
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under Apache license.