public class PresenceFilter extends java.lang.Object implements ContactListFilter
Constructor and Description |
---|
PresenceFilter()
Creates an instance of PresenceFilter.
|
Modifier and Type | Method and Description |
---|---|
void |
applyFilter(FilterQuery filterQuery)
Applies this filter.
|
boolean |
isMatching(MetaContact metaContact)
Returns true if offline contacts are shown or if the given
MetaContact is online, otherwise returns false.
|
boolean |
isMatching(SourceContact contact)
Returns true if offline contacts are shown or if the given
MetaContact is online, otherwise returns false.
|
boolean |
isMatching(UIContact uiContact)
Indicates if the given uiContact is matching this filter.
|
boolean |
isMatching(UIGroup uiGroup)
Indicates if the given uiGroup is matching this filter.
|
boolean |
isShowOffline()
Returns true if offline contacts are shown, otherwise returns
false.
|
void |
setShowOffline(boolean isShowOffline)
Sets the show offline property.
|
public void applyFilter(FilterQuery filterQuery)
applyFilter
in interface ContactListFilter
filterQuery
- the query which keeps track of the filtering resultspublic boolean isMatching(UIContact uiContact)
isMatching
in interface ContactListFilter
uiContact
- the UIContact to checkpublic boolean isMatching(UIGroup uiGroup)
isMatching
in interface ContactListFilter
uiGroup
- the UIGroup to checkpublic void setShowOffline(boolean isShowOffline)
isShowOffline
- indicates if offline contacts are shownpublic boolean isShowOffline()
public boolean isMatching(MetaContact metaContact)
metaContact
- the MetaContact to checkpublic boolean isMatching(SourceContact contact)
contact
- the MetaContact to check
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under Apache license.