public class UIFilterQuery extends FilterQuery implements ContactQueryListener, MetaContactQueryListener
Constructor and Description |
---|
UIFilterQuery(ContactList contactList)
Creates an instance of UIFilterQuery by specifying the parent
ContactList.
|
Modifier and Type | Method and Description |
---|---|
void |
addContactQuery(java.lang.Object contactQuery)
Adds the given contactQuery to the list of filterQueries.
|
void |
cancel()
Cancels this filter query.
|
void |
close()
Closes this query to indicate that no more contact sub-queries would be
added to it.
|
void |
contactChanged(ContactChangedEvent event)
Indicates that a contact has been updated after a search.
|
void |
contactReceived(ContactReceivedEvent event)
Indicates that a contact has been received as a result of a query.
|
void |
contactRemoved(ContactRemovedEvent event)
Indicates that a contact has been removed after a search.
|
boolean |
containsQuery(java.lang.Object query)
Verifies if the given query is contained in this filter query.
|
boolean |
isCanceled()
Indicates if this query is canceled.
|
boolean |
isRunning()
Indicates if this query is canceled.
|
boolean |
isSucceeded()
Indicates if this query has succeeded.
|
void |
metaContactQueryStatusChanged(MetaContactQueryStatusEvent event)
Indicates that a query has changed its status.
|
void |
metaContactReceived(MetaContactQueryEvent event)
Indicates that a MetaContact has been received for a search in
the MetaContactListService.
|
void |
metaGroupReceived(MetaGroupQueryEvent event)
Indicates that a MetaGroup has been received from a search in
the MetaContactListService.
|
void |
queryStatusChanged(ContactQueryStatusEvent event)
Indicates that a query has changed its status.
|
void |
removeQuery(ContactQuery query)
Removes the given query from this filter query, updates the related data
and notifies interested parties if this was the last query to process.
|
void |
setQueryListener(FilterQueryListener l)
Sets the given FilterQueryListener.
|
void |
setSucceeded(boolean isSucceeded)
Sets the isSucceeded property.
|
getMaxResultShown, setMaxResultShown
public UIFilterQuery(ContactList contactList)
contactList
- the ContactList on which the query is
performedpublic void addContactQuery(java.lang.Object contactQuery)
addContactQuery
in class FilterQuery
contactQuery
- the ContactQuery to addpublic void setSucceeded(boolean isSucceeded)
setSucceeded
in class FilterQuery
isSucceeded
- indicates if this query has succeededpublic boolean isSucceeded()
isSucceeded
in class FilterQuery
public boolean isCanceled()
isCanceled
in class FilterQuery
public boolean isRunning()
isRunning
in class FilterQuery
public void cancel()
cancel
in class FilterQuery
public void close()
close
in class FilterQuery
public void setQueryListener(FilterQueryListener l)
setQueryListener
in class FilterQuery
l
- the FilterQueryListener to setpublic void queryStatusChanged(ContactQueryStatusEvent event)
queryStatusChanged
in interface ContactQueryListener
event
- the ContactQueryStatusEvent that notified uspublic void removeQuery(ContactQuery query)
removeQuery
in class FilterQuery
query
- the ContactQuery to remove.public void metaContactQueryStatusChanged(MetaContactQueryStatusEvent event)
metaContactQueryStatusChanged
in interface MetaContactQueryListener
event
- the ContactQueryStatusEvent that notified uspublic boolean containsQuery(java.lang.Object query)
containsQuery
in class FilterQuery
query
- the query we're looking forpublic void contactReceived(ContactReceivedEvent event)
contactReceived
in interface ContactQueryListener
event
- the ContactReceivedEvent that notified uspublic void contactRemoved(ContactRemovedEvent event)
contactRemoved
in interface ContactQueryListener
event
- the ContactQueryEvent containing information
about the received SourceContactpublic void contactChanged(ContactChangedEvent event)
contactChanged
in interface ContactQueryListener
event
- the ContactQueryEvent containing information
about the updated SourceContactpublic void metaContactReceived(MetaContactQueryEvent event)
MetaContactQueryListener
metaContactReceived
in interface MetaContactQueryListener
event
- the received MetaContactQueryEventpublic void metaGroupReceived(MetaGroupQueryEvent event)
MetaContactQueryListener
metaGroupReceived
in interface MetaContactQueryListener
event
- the MetaGroupQueryEvent that has been received
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under Apache license.