org.xnap.search
Class AbstractSearch

java.lang.Object
  extended by org.xnap.search.AbstractSearch
All Implemented Interfaces:
Search
Direct Known Subclasses:
DefaultLimeWireSearch, FreewaySearch, GiFTSearch, JTellaSearch, LibrarySearch, OpenNapSearch, OvernetSearch

public abstract class AbstractSearch
extends java.lang.Object
implements Search

This class is the default implementation for searches.


Constructor Summary
AbstractSearch(SearchFilter filter)
          Constructs the search object.
 
Method Summary
 javax.swing.Action[] getActions()
          Returns null.
 SearchFilter getFilter()
          Returns the search filter.
 java.lang.String getName()
          Returns the search text.
 boolean showTree()
          Returns false.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.xnap.search.Search
getStatus, isDone, start, stop
 

Constructor Detail

AbstractSearch

public AbstractSearch(SearchFilter filter)
Constructs the search object.

Parameters:
filter - the search filter
Method Detail

getActions

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

Specified by:
getActions in interface Search

getFilter

public SearchFilter getFilter()
Returns the search filter.

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

getName

public java.lang.String getName()
Returns the search text.

Specified by:
getName in interface Search

showTree

public boolean showTree()
Returns false.

Specified by:
showTree in interface Search


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