public class MacOSXAddrBookSourceContact extends GenericSourceContact implements EditableSourceContact
contactDetails
DATA_ID
Constructor and Description |
---|
MacOSXAddrBookSourceContact(ContactSourceService contactSource,
java.lang.String displayName,
java.util.List<ContactDetail> contactDetails)
Initializes a new AddrBookSourceContact instance.
|
Modifier and Type | Method and Description |
---|---|
void |
addContactDetail(ContactDetail detail)
Adds a contact detail to the list of contact details.
|
int |
getIndex()
Returns the index of this source contact in its parent.
|
void |
lock()
Locks this object before adding or removing several contact details.
|
void |
removeContactDetail(ContactDetail detail)
Removes the given ContactDetail from the list of details for
this SourceContact.
|
void |
setDetails(java.util.List<ContactDetail> details)
Changes the details list with the supplied one.
|
void |
unlock()
Unlocks this object before after or removing several contact details.
|
void |
updated()
Function called by the native part (contact) when this contact has been
updated.
|
getContactAddress, getContactDetails, getContactDetails, getContactDetails, getContactSource, getDisplayDetails, getDisplayName, getImage, getPreferredContactDetail, getPresenceStatus, isDefaultImage, setContactAddress, setDisplayDetails, setDisplayName, setImage, setPresenceStatus
getData, setData
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getContactAddress, getContactDetails, getContactDetails, getContactDetails, getContactSource, getData, getDisplayDetails, getDisplayName, getImage, getPreferredContactDetail, getPresenceStatus, isDefaultImage, setContactAddress, setData
public MacOSXAddrBookSourceContact(ContactSourceService contactSource, java.lang.String displayName, java.util.List<ContactDetail> contactDetails)
contactSource
- the ContactSourceService which is creating
the new instancedisplayName
- the display name of the new instancecontactDetails
- the ContactDetails of the new instancepublic void addContactDetail(ContactDetail detail)
addContactDetail
in interface EditableSourceContact
detail
- the ContactDetail to addpublic void removeContactDetail(ContactDetail detail)
removeContactDetail
in interface EditableSourceContact
detail
- the ContactDetail to removepublic void setDetails(java.util.List<ContactDetail> details)
details
- the details.public void updated()
public void lock()
lock
in interface EditableSourceContact
public void unlock()
unlock
in interface EditableSourceContact
public int getIndex()
getIndex
in interface SourceContact
getIndex
in class GenericSourceContact
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under Apache license.