|
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
java.beans.PropertyChangeEvent
net.java.sip.communicator.service.protocol.event.ContactPresenceStatusChangeEvent
public class ContactPresenceStatusChangeEvent
Instances of this class represent a change in the status of a particular contact.
| Field Summary |
|---|
| Fields inherited from class java.util.EventObject |
|---|
source |
| Constructor Summary | |
|---|---|
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. |
|
| Method Summary | |
|---|---|
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. |
String |
toString()
Returns a String representation of this ContactPresenceStatusChangeEvent |
| Methods inherited from class java.beans.PropertyChangeEvent |
|---|
getNewValue, getOldValue, getPropagationId, getPropertyName, setPropagationId |
| 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 |
| Constructor Detail |
|---|
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.| Method Detail |
|---|
public ProtocolProviderService getSourceProvider()
public Contact getSourceContact()
public PresenceStatus getOldStatus()
public PresenceStatus getNewStatus()
public ContactGroup getParentGroup()
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 | |||||||||