|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.xnap.search.SearchController
public class SearchController
Controls a search object. Groups search results.
Constructor Summary | |
---|---|
SearchController(Search search,
ListListener llResults,
StatusListener slStatus)
|
Method Summary | |
---|---|
void |
addListListener(ListListener listener)
listener is notified when a result is received,
regardless of any filters. |
SearchFilter |
getFilter()
|
int |
getResultCount()
|
Search |
getSearch()
Returns the search object that is controlled by this controller. |
java.lang.String |
getStatus()
|
boolean |
isDone()
|
void |
removeListListener(ListListener listener)
|
void |
resultReceived(SearchResult result)
Invoked when result is received. |
void |
setFilter(SearchFilter fiter)
|
void |
start()
|
void |
stateChanged(Search search)
Invoked when the state of search changes. |
void |
stop()
Cancels the controlled search. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SearchController(Search search, ListListener llResults, StatusListener slStatus)
Method Detail |
---|
public void addListListener(ListListener listener)
listener
is notified when a result is received,
regardless of any filters.
public SearchFilter getFilter()
public int getResultCount()
public Search getSearch()
public java.lang.String getStatus()
public boolean isDone()
public void removeListListener(ListListener listener)
addListListener(ListListener)
public void resultReceived(SearchResult result)
SearchHandler
result
is received.
resultReceived
in interface SearchHandler
public void setFilter(SearchFilter fiter)
public void stateChanged(Search search)
SearchHandler
search
changes.
stateChanged
in interface SearchHandler
public void start()
public void stop()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |