org.xnap.plugin.gift.net
Class GiFTSearch

java.lang.Object
  extended by org.xnap.search.AbstractSearch
      extended by org.xnap.plugin.gift.net.GiFTSearch
All Implemented Interfaces:
java.util.EventListener, SearchEventListener, Search

public class GiFTSearch
extends AbstractSearch
implements SearchEventListener

GiFTSearch

Version:
CVS $Id: GiFTSearch.java,v 1.4 2004/07/20 18:02:28 leist Exp $
Author:
Tammo van Lessen

Constructor Summary
GiFTSearch(SearchFilter filter, GiFTDaemon daemon)
          Constructor for GiFTSearch.
 
Method Summary
 java.lang.String getGID()
           
 java.lang.String getStatus()
          Returns a string that describes the current status.
 boolean isDone()
          Returns true, if this search is finished and can not be started again.
 void searchFinished(SearchControlEvent evt)
          Gets called if a search is finished
 void searchItemReceived(SearchItemEvent evt)
          Gets called if a search result is received
 void searchStarted(SearchControlEvent evt)
          Gets called if a search is started
 void setGID(java.lang.String string)
           
 void start(SearchHandler handler)
          Starts this search.
 void stop()
          Cancels this search.
 
Methods inherited from class org.xnap.search.AbstractSearch
getActions, getFilter, getName, showTree
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.xnap.plugin.gift.net.event.listener.SearchEventListener
getFilter
 

Constructor Detail

GiFTSearch

public GiFTSearch(SearchFilter filter,
                  GiFTDaemon daemon)
Constructor for GiFTSearch.

Parameters:
filter -
priority -
maxResults -
Method Detail

searchFinished

public void searchFinished(SearchControlEvent evt)
Description copied from interface: SearchEventListener
Gets called if a search is finished

Specified by:
searchFinished in interface SearchEventListener
Parameters:
evt - search event
See Also:
xnap.plugin.gift.net.event.listener.SearchEventListener#searchFinished(xnap.plugin.gift.net.event.SearchControlEvent)

searchItemReceived

public void searchItemReceived(SearchItemEvent evt)
Description copied from interface: SearchEventListener
Gets called if a search result is received

Specified by:
searchItemReceived in interface SearchEventListener
Parameters:
evt - search event
See Also:
xnap.plugin.gift.net.event.listener.SearchEventListener#searchItemReceived(xnap.plugin.gift.net.event.SearchItemEvent)

searchStarted

public void searchStarted(SearchControlEvent evt)
Description copied from interface: SearchEventListener
Gets called if a search is started

Specified by:
searchStarted in interface SearchEventListener
Parameters:
evt - search event
See Also:
xnap.plugin.gift.net.event.listener.SearchEventListener#searchStarted(xnap.plugin.gift.net.event.SearchControlEvent)

getStatus

public java.lang.String getStatus()
Description copied from interface: Search
Returns a string that describes the current status.

Specified by:
getStatus in interface Search
See Also:
xnap.search.Search#getStatus()

isDone

public boolean isDone()
Description copied from interface: Search
Returns true, if this search is finished and can not be started again.

Specified by:
isDone in interface Search
See Also:
xnap.search.Search#isDone()

start

public void start(SearchHandler handler)
Description copied from interface: Search
Starts this search.

Specified by:
start in interface Search
Parameters:
handler - the object that handles the results
See Also:
xnap.search.Search#start(xnap.search.SearchHandler)

stop

public void stop()
Description copied from interface: Search
Cancels this search.

Specified by:
stop in interface Search
See Also:
xnap.search.Search#stop()

getGID

public java.lang.String getGID()

setGID

public void setGID(java.lang.String string)
Parameters:
string -


Copyright © 2001-2005 XNap Team. All Rights Reserved.