org.xnap.plugin.opennap.net
Class OpenNapBrowse

java.lang.Object
  extended by org.xnap.plugin.opennap.net.OpenNapBrowse
All Implemented Interfaces:
ExceptionListener, MessageListener, OpenNapBrowseInterface, Search

public class OpenNapBrowse
extends java.lang.Object
implements ExceptionListener, MessageListener, OpenNapBrowseInterface

Implements an OpenNap search on set of servers.


Constructor Summary
OpenNapBrowse(OpenNapUser user)
           
 
Method Summary
 void exceptionThrown(java.lang.Exception e)
           
 javax.swing.Action[] getActions()
          Returns null.
 SearchFilter getFilter()
          Returns null.
 java.lang.String getName()
          Returns the name of the user that is browsed.
 BrowseRequestMessage getRequest()
           
 java.lang.String getStatus()
          Returns a string that describes the current status.
 boolean isDone()
          Returns true, if this search can not be canceled.
 boolean isFailed()
          Returns true, if the browse failed.
 void messageReceived(ServerMessage msg)
           
 boolean showTree()
          Returns true.
 void start(SearchHandler handler)
          Starts this search.
 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

OpenNapBrowse

public OpenNapBrowse(OpenNapUser user)
Method Detail

exceptionThrown

public void exceptionThrown(java.lang.Exception e)
Specified by:
exceptionThrown in interface ExceptionListener

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

getRequest

public BrowseRequestMessage getRequest()

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

isFailed

public boolean isFailed()
Description copied from interface: OpenNapBrowseInterface
Returns true, if the browse failed.

Specified by:
isFailed in interface OpenNapBrowseInterface

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

messageReceived

public void messageReceived(ServerMessage msg)
Specified by:
messageReceived in interface MessageListener
See Also:
xnap.plugin.nap.net.msg.server.MessageListener#messageReceived(xnap.plugin.nap.net.msg.server.ServerMessage)


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