public interface ContactList extends ContactQueryListener, MetaContactQueryListener
Modifier and Type | Method and Description |
---|---|
void |
addContact(ContactQuery query,
UIContact contact,
UIGroup group,
boolean isSorted)
Adds the given contact to this list.
|
void |
addContact(UIContact contact,
UIGroup group,
boolean isContactSorted,
boolean isGroupSorted)
Adds the given contact to this list.
|
void |
addContactListListener(ContactListListener listener)
Adds a listener for ContactListEvents.
|
void |
addContactSource(ContactSourceService contactSource)
Adds the given contact source to the list of available contact sources.
|
void |
addGroup(UIGroup group,
boolean isSorted)
Adds the given group to this list.
|
FilterQuery |
applyDefaultFilter()
Applies the default filter.
|
FilterQuery |
applyFilter(ContactListFilter filter)
Applies the given filter.
|
java.awt.Component |
getComponent()
Returns the actual component corresponding to the contact list.
|
java.util.Collection<UIContact> |
getContacts(UIGroup group)
Returns a collection of all direct child UIContacts of the given
UIGroup.
|
UIContactSource |
getContactSource(ContactSourceService contactSource)
Returns the ExternalContactSource corresponding to the given
ContactSourceService.
|
java.util.Collection<UIContactSource> |
getContactSources()
Returns the list of registered contact sources to search in.
|
java.util.List<UIContactSource> |
getContactSources(int type)
Returns all UIContactSources of the given type.
|
ContactListFilter |
getCurrentFilter()
Returns the currently applied filter.
|
FilterQuery |
getCurrentFilterQuery()
Returns the currently applied filter.
|
ContactListFilter |
getDefaultFilter()
Gets the default filter for this contact list.
|
UIContact |
getSelectedContact()
Returns the currently selected UIContact.
|
java.util.List<UIContact> |
getSelectedContacts()
Returns the list of selected contacts.
|
UIGroup |
getSelectedGroup()
Returns the currently selected UIGroup if there's one.
|
boolean |
isContactButtonsVisible()
Shows/hides buttons shown in contact row.
|
boolean |
isEmpty()
Indicates if this contact list is empty.
|
void |
refreshContact(UIContact uiContact)
Refreshes the given UIContact.
|
void |
removeAll()
Removes all entries in this contact list.
|
void |
removeAllContactSources()
Removes all stored contact sources.
|
void |
removeContact(UIContact contact)
Removes the node corresponding to the given MetaContact from
this list.
|
void |
removeContact(UIContact contact,
boolean removeEmptyGroup)
Removes the node corresponding to the given MetaContact from
this list.
|
void |
removeContactListListener(ContactListListener listener)
Removes a listener previously added with addContactListListener.
|
void |
removeContactSource(ContactSourceService contactSource)
Removes the given contact source from the list of available contact
sources.
|
void |
removeGroup(UIGroup group)
Removes the given group and its children from the list.
|
void |
removeSelection()
Removes the current selection.
|
void |
selectFirstContact()
Selects the first found contact node from the beginning of the contact
list.
|
void |
setContactButtonsVisible(boolean isVisible)
Shows/hides buttons shown in contact row.
|
void |
setDefaultFilter(ContactListFilter filter)
Sets the default filter to the given filter.
|
void |
setDragEnabled(boolean isEnabled)
Enables/disables drag operations on this contact list.
|
void |
setMultipleSelectionEnabled(boolean isEnabled)
Enables/disables multiple selection.
|
void |
setRightButtonMenuEnabled(boolean isEnabled)
Enables/disables the right mouse click menu.
|
void |
setSelectedContact(UIContact uiContact)
Selects the given UIContact in the contact list.
|
void |
setSelectedGroup(UIGroup uiGroup)
Selects the given UIGroup in the contact list.
|
contactChanged, contactReceived, contactRemoved, queryStatusChanged
metaContactQueryStatusChanged, metaContactReceived, metaGroupReceived
java.awt.Component getComponent()
java.util.Collection<UIContactSource> getContactSources()
UIContactSource getContactSource(ContactSourceService contactSource)
contactSource
- the ContactSourceService, which
corresponding external source implementation we're looking forvoid addContactSource(ContactSourceService contactSource)
contactSource
- the ContactSourceServicevoid removeContactSource(ContactSourceService contactSource)
contactSource
- void removeAllContactSources()
void setDefaultFilter(ContactListFilter filter)
filter
- the ContactListFilter to set as defaultContactListFilter getDefaultFilter()
java.util.List<UIContactSource> getContactSources(int type)
type
- the type of sources we're looking forvoid addGroup(UIGroup group, boolean isSorted)
group
- the UIGroup to addisSorted
- indicates if the contact should be sorted regarding to
the GroupNode policyvoid removeGroup(UIGroup group)
group
- the UIGroup to removevoid addContact(UIContact contact, UIGroup group, boolean isContactSorted, boolean isGroupSorted)
contact
- the UIContact to addgroup
- the UIGroup to add toisContactSorted
- indicates if the contact should be sorted
regarding to the GroupNode policyisGroupSorted
- indicates if the group should be sorted regarding to
the GroupNode policy in case it doesn't exist and should be
addedvoid addContact(ContactQuery query, UIContact contact, UIGroup group, boolean isSorted)
query
- the ContactQuery that adds the given contactcontact
- the UIContact to addgroup
- the UIGroup to add toisSorted
- indicates if the contact should be sorted regarding to
the GroupNode policyvoid removeContact(UIContact contact, boolean removeEmptyGroup)
contact
- the UIContact to removeremoveEmptyGroup
- whether we should delete the group if is emptyvoid removeContact(UIContact contact)
contact
- the UIContact to removevoid removeAll()
java.util.Collection<UIContact> getContacts(UIGroup group)
group
- the parent UIGroupContactListFilter getCurrentFilter()
FilterQuery getCurrentFilterQuery()
FilterQuery applyFilter(ContactListFilter filter)
filter
- the ContactListFilter to apply.FilterQuery applyDefaultFilter()
UIContact getSelectedContact()
java.util.List<UIContact> getSelectedContacts()
UIGroup getSelectedGroup()
void setSelectedContact(UIContact uiContact)
uiContact
- the contact to selectvoid setSelectedGroup(UIGroup uiGroup)
uiGroup
- the group to selectvoid selectFirstContact()
void removeSelection()
void addContactListListener(ContactListListener listener)
listener
- the listener to addvoid removeContactListListener(ContactListListener listener)
listener
- the listener to removevoid refreshContact(UIContact uiContact)
uiContact
- the contact to refreshboolean isEmpty()
void setContactButtonsVisible(boolean isVisible)
isVisible
- true to show contact buttons, false -
otherwise.boolean isContactButtonsVisible()
void setMultipleSelectionEnabled(boolean isEnabled)
isEnabled
- true to enable multiple selection,
false - otherwisevoid setDragEnabled(boolean isEnabled)
isEnabled
- true to enable drag operations, false
otherwisevoid setRightButtonMenuEnabled(boolean isEnabled)
isEnabled
- true to enable right button menu,
false otherwise.
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under Apache license.