Jitsi: the OpenSource Java VoIP and Instant Messaging client.

net.java.sip.communicator.service.protocol.event
Class ServerStoredDetailsChangeEvent

java.lang.Object
  extended by java.util.EventObject
      extended by net.java.sip.communicator.service.protocol.event.ServerStoredDetailsChangeEvent
All Implemented Interfaces:
Serializable

public class ServerStoredDetailsChangeEvent
extends EventObject

Instances of this class represent a change in the server stored details change that triggered them.

Author:
Damian Minkov
See Also:
Serialized Form

Field Summary
static int DETAIL_ADDED
          Indicates that the ServerStoredDetailsChangeEvent instance was triggered by adding a new detail.
static int DETAIL_REMOVED
          Indicates that the ServerStoredDetailsChangeEvent instance was triggered by the removal of an existing detail.
static int DETAIL_REPLACED
          Indicates that the ServerStoredDetailsChangeEvent instance was triggered by the fact a detail was replaced with new value.
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
ServerStoredDetailsChangeEvent(ProtocolProviderService source, int eventID, Object oldValue, Object newValue)
          Constructs a ServerStoredDetailsChangeEvent.
 
Method Summary
 int getEventID()
          Returns the event type id.
 Object getNewValue()
          Gets the new value for the event, expressed as an Object.
 Object getOldValue()
          Gets the old value for the event, expressed as an Object.
 ProtocolProviderService getProvider()
          Returns the provider that has generated this event
 
Methods inherited from class java.util.EventObject
getSource, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

DETAIL_ADDED

public static final int DETAIL_ADDED
Indicates that the ServerStoredDetailsChangeEvent instance was triggered by adding a new detail.

See Also:
Constant Field Values

DETAIL_REMOVED

public static final int DETAIL_REMOVED
Indicates that the ServerStoredDetailsChangeEvent instance was triggered by the removal of an existing detail.

See Also:
Constant Field Values

DETAIL_REPLACED

public static final int DETAIL_REPLACED
Indicates that the ServerStoredDetailsChangeEvent instance was triggered by the fact a detail was replaced with new value.

See Also:
Constant Field Values
Constructor Detail

ServerStoredDetailsChangeEvent

public ServerStoredDetailsChangeEvent(ProtocolProviderService source,
                                      int eventID,
                                      Object oldValue,
                                      Object newValue)
Constructs a ServerStoredDetailsChangeEvent.

Parameters:
source - The object on which the Event initially occurred.
eventID - the event ID
oldValue - old value
newValue - new value
Throws:
IllegalArgumentException - if source is null.
Method Detail

getProvider

public ProtocolProviderService getProvider()
Returns the provider that has generated this event

Returns:
the provider that generated the event.

getNewValue

public Object getNewValue()
Gets the new value for the event, expressed as an Object.

Returns:
The new value for the event, expressed as an Object.

getOldValue

public Object getOldValue()
Gets the old value for the event, expressed as an Object.

Returns:
The old value for the event, expressed as an Object.

getEventID

public int getEventID()
Returns the event type id.

Returns:
the event ID

Jitsi: the OpenSource Java VoIP and Instant Messaging client.

Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under LGPL license.