Jitsi: the OpenSource Java VoIP and Instant Messaging client.

net.java.sip.communicator.service.contactlist.event
Class MetaContactPropertyChangeEvent

java.lang.Object
  extended by java.util.EventObject
      extended by java.beans.PropertyChangeEvent
          extended by net.java.sip.communicator.service.contactlist.event.MetaContactPropertyChangeEvent
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
MetaContactAvatarUpdateEvent, MetaContactModifiedEvent, MetaContactMovedEvent, MetaContactRenamedEvent

public abstract class MetaContactPropertyChangeEvent
extends PropertyChangeEvent

An abstract event used for meta contact events indicating moving the meta contact or changing its name.

Author:
Emil Ivov
See Also:
Serialized Form

Field Summary
static String META_CONTACT_AVATAR_UPDATE
          Indicates that the MetaContactEvent instance was triggered by the update of an Avatar for one of its encapsulated contacts.
static String META_CONTACT_MODIFIED
          Indicates that the meta contact has been modified.
static String META_CONTACT_MOVED
          Indicates that the source meta contact has moved from one location to another.
static String META_CONTACT_RENAMED
          Indicates that the meta contact has been renamed.
static String PROTO_CONTACT_ADDED
          Indicates that the MetaContactEvent instance was triggered by the a protocol specific contact to a new MetaContact parent.
static String PROTO_CONTACT_MODIFIED
          Indicates that the meta contact has been modified.
static String PROTO_CONTACT_MOVED
          Indicates that the MetaContactEvent instance was triggered by moving addition of a protocol specific contact to an existing MetaContact.
static String PROTO_CONTACT_REMOVED
          Indicates that the MetaContactEvent instance was triggered by the removal of a protocol specific contact from an existing MetaContact.
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
MetaContactPropertyChangeEvent(MetaContact source, String eventName, Object oldValue, Object newValue)
          Creates an instnace of this event.
 
Method Summary
 MetaContact getSourceMetaContact()
          Returns a reference to the MetaContact that this event is about
 
Methods inherited from class java.beans.PropertyChangeEvent
getNewValue, getOldValue, getPropagationId, getPropertyName, setPropagationId
 
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

META_CONTACT_MOVED

public static final String META_CONTACT_MOVED
Indicates that the source meta contact has moved from one location to another. The old and new values contain the previous and the new parent group of this meta contact.

See Also:
Constant Field Values

META_CONTACT_RENAMED

public static final String META_CONTACT_RENAMED
Indicates that the meta contact has been renamed. The old and new value arguments contain the old and new names of this contact.

See Also:
Constant Field Values

PROTO_CONTACT_REMOVED

public static final String PROTO_CONTACT_REMOVED
Indicates that the MetaContactEvent instance was triggered by the removal of a protocol specific contact from an existing MetaContact.

See Also:
Constant Field Values

PROTO_CONTACT_ADDED

public static final String PROTO_CONTACT_ADDED
Indicates that the MetaContactEvent instance was triggered by the a protocol specific contact to a new MetaContact parent.

See Also:
Constant Field Values

PROTO_CONTACT_MOVED

public static final String PROTO_CONTACT_MOVED
Indicates that the MetaContactEvent instance was triggered by moving addition of a protocol specific contact to an existing MetaContact.

See Also:
Constant Field Values

META_CONTACT_AVATAR_UPDATE

public static final String META_CONTACT_AVATAR_UPDATE
Indicates that the MetaContactEvent instance was triggered by the update of an Avatar for one of its encapsulated contacts.

See Also:
Constant Field Values

PROTO_CONTACT_MODIFIED

public static final String PROTO_CONTACT_MODIFIED
Indicates that the meta contact has been modified. The old and new value arguments contain the old and new values of the modification.

See Also:
Constant Field Values

META_CONTACT_MODIFIED

public static final String META_CONTACT_MODIFIED
Indicates that the meta contact has been modified. The old and new value arguments contain the old and new values of the modification.

See Also:
Constant Field Values
Constructor Detail

MetaContactPropertyChangeEvent

public MetaContactPropertyChangeEvent(MetaContact source,
                                      String eventName,
                                      Object oldValue,
                                      Object newValue)
Creates an instnace of this event.

Parameters:
source - the MetaContact that this event is about.
eventName - one of the META_CONTACT_XXXED String strings indicating the exact typ of this event.
oldValue - the value of the changed property before the change had occurred.
newValue - the value of the changed property after the chagne has occurred.
Method Detail

getSourceMetaContact

public MetaContact getSourceMetaContact()
Returns a reference to the MetaContact that this event is about

Returns:
the MetaContact that this event is about.

Jitsi: the OpenSource Java VoIP and Instant Messaging client.

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