org.xnap.plugin.opennap.net
Class OpenNapMetaBrowse

java.lang.Object
  extended by org.xnap.plugin.opennap.net.OpenNapMetaBrowse
All Implemented Interfaces:
Search, SearchHandler

public class OpenNapMetaBrowse
extends java.lang.Object
implements SearchHandler, Search

Implements an OpenNap search on set of servers.


Nested Class Summary
 class OpenNapMetaBrowse.TryNextServerAction
           
 
Constructor Summary
OpenNapMetaBrowse(OpenNapUser user)
           
 
Method Summary
 javax.swing.Action[] getActions()
          Returns null.
 SearchFilter getFilter()
          Returns null.
 java.lang.String getName()
          Returns the name of the user that is browsed.
 java.lang.String getStatus()
          Returns a string that describes the current status.
 boolean isDone()
          Returns true, if this search can not be canceled.
 void resultReceived(SearchResult result)
          Invoked when result is received.
 boolean showTree()
          Returns true.
 void start(SearchHandler handler)
          Starts this search.
 void stateChanged(Search search)
          Invoked when the state of search changes.
 void stop()
          Cancels this search.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OpenNapMetaBrowse

public OpenNapMetaBrowse(OpenNapUser user)
Method Detail

getActions

public javax.swing.Action[] getActions()
Returns null.

Specified by:
getActions in interface Search

getFilter

public SearchFilter getFilter()
Returns null.

Specified by:
getFilter in interface Search
Returns:
null, if no filter was used; the filter, otherwise

getName

public java.lang.String getName()
Returns the name of the user that is browsed.

Specified by:
getName in interface Search

showTree

public boolean showTree()
Returns true.

Specified by:
showTree in interface Search

getStatus

public java.lang.String getStatus()
Returns a string that describes the current status.

Specified by:
getStatus in interface Search

isDone

public boolean isDone()
Returns true, if this search can not be canceled.

Specified by:
isDone in interface Search

resultReceived

public void resultReceived(SearchResult result)
Description copied from interface: SearchHandler
Invoked when result is received.

Specified by:
resultReceived in interface SearchHandler

stateChanged

public void stateChanged(Search search)
Invoked when the state of search changes.

Specified by:
stateChanged in interface SearchHandler

start

public void start(SearchHandler handler)
Starts this search.

Specified by:
start in interface Search
Parameters:
handler - the object that handles the results

stop

public void stop()
Cancels this search.

Specified by:
stop in interface Search


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