public class ExternalContactSource extends java.lang.Object implements UIContactSource
Modifier and Type | Class and Description |
---|---|
class |
ExternalContactSource.SourceUIGroup
The SourceUIGroup is the implementation of the UIGroup for the
ExternalContactSource.
|
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
UI_CONTACT_DATA_KEY
The data key of the SourceContactDescriptor object used to store a
reference to this object in its corresponding Sourcecontact.
|
Constructor and Description |
---|
ExternalContactSource(ContactSourceService contactSource,
javax.swing.JTree contactListTree)
Creates an ExternalContactSource based on the given
ContactSourceService.
|
Modifier and Type | Method and Description |
---|---|
UIContact |
createUIContact(SourceContact sourceContact)
Returns the UIContact corresponding to the given
sourceContact.
|
java.util.Collection<SIPCommButton> |
getContactCustomActionButtons(SourceContact sourceContact)
Returns all custom action buttons for this meta contact.
|
java.util.Collection<javax.swing.JMenuItem> |
getContactCustomActionMenuItems(SourceContact sourceContact,
boolean initActions)
Returns all custom action menu items for this contact.
|
ContactSourceService |
getContactSourceService()
Returns the corresponding ContactSourceService.
|
java.util.Collection<javax.swing.JMenuItem> |
getGroupCustomActionMenuItems(boolean initActions)
Returns all custom action menu items for the contact source.
|
UIContact |
getUIContact(SourceContact sourceContact)
Returns the UIContact corresponding to the given
SourceContact.
|
UIGroup |
getUIGroup()
Returns the UI group for this contact source.
|
void |
removeUIContact(SourceContact sourceContact)
Removes the UIContact from the given sourceContact.
|
void |
setContactSourceIndex(int contactSourceIndex)
Sets the contact source index.
|
public static final java.lang.String UI_CONTACT_DATA_KEY
public ExternalContactSource(ContactSourceService contactSource, javax.swing.JTree contactListTree)
contactSource
- the ContactSourceService, on which this
ExternalContactSource is basedpublic ContactSourceService getContactSourceService()
getContactSourceService
in interface UIContactSource
public UIGroup getUIGroup()
getUIGroup
in interface UIContactSource
public UIContact createUIContact(SourceContact sourceContact)
createUIContact
in interface UIContactSource
sourceContact
- the SourceContact, for which we search a
corresponding UIContactpublic void removeUIContact(SourceContact sourceContact)
removeUIContact
in interface UIContactSource
sourceContact
- the SourceContact, which corresponding UI
contact we would like to removepublic UIContact getUIContact(SourceContact sourceContact)
getUIContact
in interface UIContactSource
sourceContact
- the SourceContact, which corresponding UI
contact we're looking forpublic java.util.Collection<SIPCommButton> getContactCustomActionButtons(SourceContact sourceContact)
public java.util.Collection<javax.swing.JMenuItem> getContactCustomActionMenuItems(SourceContact sourceContact, boolean initActions)
initActions
- if true the actions will be reloaded.sourceContact
- the contact.public java.util.Collection<javax.swing.JMenuItem> getGroupCustomActionMenuItems(boolean initActions)
initActions
- if true the actions will be reloaded.public void setContactSourceIndex(int contactSourceIndex)
setContactSourceIndex
in interface UIContactSource
contactSourceIndex
- the contact source index to set
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under Apache license.