Jitsi: the OpenSource Java VoIP and Instant Messaging client.

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

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.MetaContactRenamedEvent
All Implemented Interfaces:
Serializable

public class MetaContactRenamedEvent
extends MetaContactPropertyChangeEvent

Indicates that a meta contact has chaned its display name.

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
MetaContactRenamedEvent(MetaContact source, String oldDisplayName, String newDisplayName)
          Creates an instance of this event using the specified arguments.
 
Method Summary
 String getNewDisplayName()
          Returns the display name of the source meta contact as it is now, after the change.
 String getOldDisplayName()
          Returns the display name 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

MetaContactRenamedEvent

public MetaContactRenamedEvent(MetaContact source,
                               String oldDisplayName,
                               String newDisplayName)
Creates an instance of this event using the specified arguments.

Parameters:
source - the MetaContact that this event is about.
oldDisplayName - the new display name of this meta contact.
newDisplayName - the old display name of this meta contact.
Method Detail

getNewDisplayName

public String getNewDisplayName()
Returns the display name of the source meta contact as it is now, after the change.

Returns:
the new display name of the meta contact.

getOldDisplayName

public String getOldDisplayName()
Returns the display name of the source meta contact as it was now, before the change.

Returns:
the meta contact name as it was before the change.

Jitsi: the OpenSource Java VoIP and Instant Messaging client.

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