Jitsi: the OpenSource Java VoIP and Instant Messaging client.

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

java.lang.Object
  extended by java.util.EventObject
      extended by java.beans.PropertyChangeEvent
          extended by net.java.sip.communicator.service.contactlist.event.MetaContactPropertyChangeEvent
              extended by net.java.sip.communicator.service.contactlist.event.MetaContactAvatarUpdateEvent
All Implemented Interfaces:
Serializable

public class MetaContactAvatarUpdateEvent
extends MetaContactPropertyChangeEvent

Indicates that a meta contact has changed or added an avatar.

Author:
Emil Ivov
See Also:
Serialized Form

Field Summary
 
Fields inherited from class net.java.sip.communicator.service.contactlist.event.MetaContactPropertyChangeEvent
META_CONTACT_AVATAR_UPDATE, META_CONTACT_MODIFIED, META_CONTACT_MOVED, META_CONTACT_RENAMED, PROTO_CONTACT_ADDED, PROTO_CONTACT_MODIFIED, PROTO_CONTACT_MOVED, PROTO_CONTACT_REMOVED
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
MetaContactAvatarUpdateEvent(MetaContact source, byte[] oldAvatar, byte[] newAvatar)
          Creates an instance of this event using the specified arguments.
 
Method Summary
 byte[] getNewAvatar()
          Returns the updated avatar of the source meta contact as it is now, after the change.
 byte[] getOldAvatar()
          Returns the previously active avatar of the source meta contact as it was now, before the change.
 
Methods inherited from class net.java.sip.communicator.service.contactlist.event.MetaContactPropertyChangeEvent
getSourceMetaContact
 
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
 

Constructor Detail

MetaContactAvatarUpdateEvent

public MetaContactAvatarUpdateEvent(MetaContact source,
                                    byte[] oldAvatar,
                                    byte[] newAvatar)
Creates an instance of this event using the specified arguments.

Parameters:
source - the MetaContact that this event is about.
oldAvatar - the new avatar just of this meta contact.
newAvatar - the old avatar that just got replaced or null.
Method Detail

getNewAvatar

public byte[] getNewAvatar()
Returns the updated avatar of the source meta contact as it is now, after the change.

Returns:
the newly changed avatar for this meta contact.

getOldAvatar

public byte[] getOldAvatar()
Returns the previously active avatar of the source meta contact as it was now, before the change.

Returns:
the avatar that got replaced by the new one.

Jitsi: the OpenSource Java VoIP and Instant Messaging client.

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