public class MetaContactRenamedEvent extends 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
Constructor and Description |
---|
MetaContactRenamedEvent(MetaContact source,
java.lang.String oldDisplayName,
java.lang.String newDisplayName)
Creates an instance of this event using the specified arguments.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getNewDisplayName()
Returns the display name of the source meta contact as it is now, after
the change.
|
java.lang.String |
getOldDisplayName()
Returns the display name of the source meta contact as it was now, before
the change.
|
getSourceMetaContact
public MetaContactRenamedEvent(MetaContact source, java.lang.String oldDisplayName, java.lang.String newDisplayName)
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.public java.lang.String getNewDisplayName()
public java.lang.String getOldDisplayName()
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under Apache license.