net.java.sip.communicator.service.contactlist.event
Class MetaContactAvatarUpdateEvent
java.lang.Object
java.util.EventObject
java.beans.PropertyChangeEvent
net.java.sip.communicator.service.contactlist.event.MetaContactPropertyChangeEvent
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
|
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. |
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.
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.
Distributable under LGPL license.