|
Jitsi: the OpenSource Java VoIP and Instant Messaging client. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.java.sip.communicator.impl.gui.main.contactlist.SearchFilter
public class SearchFilter
The SearchFilter is a ContactListFilter that filters the contact list content by a filter string.
| Field Summary | |
|---|---|
static int |
DEFAULT_SOURCE
The default contact source search type. |
static int |
HISTORY_SOURCE
The history contact source search type. |
| Constructor Summary | |
|---|---|
SearchFilter(MetaContactListSource contactListSource)
Creates an instance of SearchFilter. |
|
| Method Summary | |
|---|---|
ContactQuery |
applyFilter(ExternalContactSource contactSource)
Applies this filter to the given contactSource. |
void |
applyFilter(FilterQuery filterQuery)
Applies this filter to the default contact source. |
Collection<ExternalContactSource> |
getContactSources()
Returns the list of ExternalContactSource this filter searches in. |
boolean |
hasDefaultSource()
Indicates if this filter contains a default source. |
boolean |
isMatching(UIContact uiContact)
Indicates if the given uiGroup matches this filter. |
boolean |
isMatching(UIGroup uiGroup)
For all groups we return false. |
void |
setFilterString(String filter)
Creates the SearchFilter by specifying the string used for filtering. |
void |
setSearchSourceType(int searchSourceType)
Sets the search source type: DEFAULT_SOURCE or HISTORY_SOURCE. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int DEFAULT_SOURCE
public static final int HISTORY_SOURCE
| Constructor Detail |
|---|
public SearchFilter(MetaContactListSource contactListSource)
| Method Detail |
|---|
public void applyFilter(FilterQuery filterQuery)
applyFilter in interface ContactListFilterfilterQuery - the query that tracks this filter.public ContactQuery applyFilter(ExternalContactSource contactSource)
contactSource - the ExternalContactSource to apply the
filter to
public boolean isMatching(UIContact uiContact)
isMatching in interface ContactListFilteruiContact - the UIGroup to check
public boolean isMatching(UIGroup uiGroup)
isMatching in interface ContactListFilteruiGroup - the UIGroup to check
public void setFilterString(String filter)
filter - the String used for filteringpublic void setSearchSourceType(int searchSourceType)
searchSourceType - the type of the search source to setpublic Collection<ExternalContactSource> getContactSources()
public boolean hasDefaultSource()
|
Jitsi: the OpenSource Java VoIP and Instant Messaging client. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||