Open SiteSearch 4.1.1
Final

ORG.oclc.fmts.obi
Class ReservefullFmt

java.lang.Object
  |
  +--ORG.oclc.fmts.WebZFormatter
        |
        +--ORG.oclc.fmts.obi.ReservefullFmt
Direct Known Subclasses:
ReservebookMarkfullFmt, ReservemultiFullFmt

public class ReservefullFmt
extends WebZFormatter

The ReservebookMarkFmt class formats records from the ISP databases following the RESERVE database schema for display in the WebZ interface. The record will be displayed in a full format.

ReservebookMarkFmt uses the userObject and a Vector of records to return a formatted String that contains the HTML to display. This class is an extension of WebZFormatter which implements the RecordFormatter interface. That interface requires a doFormat method to do the work on the input userObject and a Vector of DataDirs.

Successful execution of ReservebookMarkFmt results in HTML that can be displayed in the WebZ interface. Unsuccessful execution will result in a null String being returned.


Field Summary
protected  String begLabel
           String containing the characters to be used before the label text - usually HTML
protected  String endLabel
           String containing the characters to be used after the label text - usually HTML
protected  String font
           String containing the information for specifying a font in HTML
protected  String linkData
           String containing information for a hotlink
protected  String pathToImages
           String containing the tag for access the TIFF image within the BER record.
protected  String termData
           String containing the information for terminating a HTML string
protected  String trailer
           String containing the label to be used at the end of a field
 
Fields inherited from class ORG.oclc.fmts.WebZFormatter
bookMarkFont, context, currecno, defaultTextFont, fmtUtil, fullrecno, j, otherWidgets, queryBad, queryNext, queryTarget, resultset, smallTextFont, styles, tempRecords, toprecno, user
 
Constructor Summary
ReservefullFmt()
          Create a ReservefullFmt object
 
Method Summary
 String doFormat(Object userObject, Vector records)
          Format multiple records passed in an input Vector
protected  void formatTags(DataDir dir, boolean doHotLinks, boolean doBookMarkLink, boolean doImageLink)
           Formats the data from specific tags and adds it to the HTML
protected  String label(String text)
           Creates a label from some text
 
Methods inherited from class ORG.oclc.fmts.WebZFormatter
addBookMark, addBookMark, addBookMark, init
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

pathToImages

protected String pathToImages

String containing the tag for access the TIFF image within the BER record.


begLabel

protected String begLabel

String containing the characters to be used before the label text - usually HTML


endLabel

protected String endLabel

String containing the characters to be used after the label text - usually HTML


trailer

protected String trailer

String containing the label to be used at the end of a field


linkData

protected String linkData

String containing information for a hotlink


font

protected String font

String containing the information for specifying a font in HTML


termData

protected String termData

String containing the information for terminating a HTML string

Constructor Detail

ReservefullFmt

public ReservefullFmt()
Create a ReservefullFmt object
Method Detail

doFormat

public String doFormat(Object userObject,
                       Vector records)
Format multiple records passed in an input Vector
Parameters:
userObject - a user Object. This is userStateObject(WebZ)
records - a vector of record Objects. For use in WebZ, this is a vector of DataDir objects
Overrides:
doFormat in class WebZFormatter

label

protected String label(String text)

Creates a label from some text

Parameters:
text - a String that contains the text to be made into a label
Returns:
String the text concatenated within the begLabel and endLabel strings

formatTags

protected void formatTags(DataDir dir,
                          boolean doHotLinks,
                          boolean doBookMarkLink,
                          boolean doImageLink)

Formats the data from specific tags and adds it to the HTML

Parameters:
dir - a DataDir that contains the record to be formatted
doHotLinks - a boolean that specifies whether or not to generate a hotlink
doBookMarkLink - a boolean that specifies whether or not to generate a link to a bookmark
doImageLink - a boolean that specifies whether or not to generate a link to an image
Returns:
void

Open SiteSearch 4.1.1
Final