net.java.sip.communicator.service.protocol.event
Class ProviderStatusChangeEvent
java.lang.Object
java.util.EventObject
java.beans.PropertyChangeEvent
net.java.sip.communicator.service.protocol.event.ProviderStatusChangeEvent
- All Implemented Interfaces:
- Serializable
public class ProviderStatusChangeEvent
- extends PropertyChangeEvent
Instances of this class represent a change in the status of the provider
that triggerred them.
- Author:
- Emil Ivov
- See Also:
- Serialized Form
ProviderStatusChangeEvent
public ProviderStatusChangeEvent(ProtocolProviderService source,
String eventType,
PresenceStatus oldValue,
PresenceStatus newValue)
- Creates an event instance indicating a change of the property
specified by eventType from oldValue to
newValue.
- Parameters:
source - the provider that generated the eventeventType - the type of the newly created event.oldValue - the status the source provider was int before entering
the new state.newValue - the status the source provider is currently in.
getProvider
public ProtocolProviderService getProvider()
- Returns the provider that has generated this event
- Returns:
- the provider that generated the event.
getOldStatusValue
public PresenceStatus getOldStatusValue()
- Returns the status of the provider before this event took place.
- Returns:
- a PresenceStatus instance indicating the event the source
provider was in before it entered its new state.
getNewStatusValue
public PresenceStatus getNewStatusValue()
- Returns the status of the provider after this event took place.
(i.e. at the time the event is being dispatched).
- Returns:
- a PresenceStatus instance indicating the event the source
provider is in after the status change occurred.
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under LGPL license.