public class ProviderStatusChangeEvent
extends java.beans.PropertyChangeEvent
Constructor and Description |
---|
ProviderStatusChangeEvent(ProtocolProviderService source,
java.lang.String eventType,
PresenceStatus oldValue,
PresenceStatus newValue)
Creates an event instance indicating a change of the property
specified by eventType from oldValue to
newValue.
|
Modifier and Type | Method and Description |
---|---|
PresenceStatus |
getNewStatusValue()
Returns the status of the provider after this event took place.
|
PresenceStatus |
getOldStatusValue()
Returns the status of the provider before this event took place.
|
ProtocolProviderService |
getProvider()
Returns the provider that has generated this event
|
public ProviderStatusChangeEvent(ProtocolProviderService source, java.lang.String eventType, PresenceStatus oldValue, PresenceStatus newValue)
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.public ProtocolProviderService getProvider()
public PresenceStatus getOldStatusValue()
public PresenceStatus getNewStatusValue()
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under Apache license.