Open SiteSearch 4.1.1
Final

ORG.oclc.gadgets
Class SearchHeader

java.lang.Object
  |
  +--ORG.oclc.gadgets.SearchHeader
Direct Known Subclasses:
RBSearchHeader, rssSearchHeader, SaveSearchHeader, TermFinderHeader, ThesNavButtons

public class SearchHeader
extends Object
implements GadgetBuilder

The SearchHeader class is a gadget that builds the HTML for the search screen headers displayed in the SiteSearch OBI. The HTML is generated to contain the current database chosen and the related topics or databases in the topic area depending on the database name. It uses the parameters contained in a RequestManager object to build the output. If an error occurs, an empty string("") is returned.


Field Summary
protected  StyleTable style
           
protected  UserStateObject user
           
 
Constructor Summary
SearchHeader()
          Constructs a SearchHeader object.
 
Method Summary
 String buildit(RequestManager rMngr, String name)
          Generates a String containing the HTML for the search screen headers using the parameters containined in the RequestManager object and the name of the gadget.
protected  String header(String label, String displayName)
           
protected  String relatedTopics(Vector userList, String db)
           
 String toString()
          Generates a String representation of the object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

style

protected StyleTable style

user

protected UserStateObject user
Constructor Detail

SearchHeader

public SearchHeader()
Constructs a SearchHeader object.
Method Detail

buildit

public String buildit(RequestManager rMngr,
                      String name)
Generates a String containing the HTML for the search screen headers using the parameters containined in the RequestManager object and the name of the gadget.
Specified by:
buildit in interface GadgetBuilder
Parameters:
rMngr - object containing input parameters for the request.
name - the name of the gadget - the section name in the configuration file defining the particular gadget.
Returns:
String

toString

public String toString()
Generates a String representation of the object.
Specified by:
toString in interface GadgetBuilder
Returns:
String
Overrides:
toString in class Object

header

protected String header(String label,
                        String displayName)

relatedTopics

protected String relatedTopics(Vector userList,
                               String db)

Open SiteSearch 4.1.1
Final