|
Open SiteSearch 4.1.1 Final |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--ORG.oclc.fmts.WebZFormatter | +--ORG.oclc.fmts.obi.ArchivefullFmt
The ArchivefullFmt class formats records from the ISP databases following the ARCHIVE database schema for display in the WebZ interface. The record will be displayed in a full format.
ArchivefullFmt 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 ArchivefullFmt 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 | |
ArchivefullFmt()
Create a ArchivefullFmt 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 |
protected void |
subjectOrdered(String separator,
DataDir dir,
String fields,
String subfields)
Format a string in data order |
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 |
protected String pathToImages
String containing the tag for access the TIFF image within the BER record.
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 trailer
String containing the label to be used at the end of a field
protected String termData
String containing the information for terminating a HTML string
protected String linkData
String containing information for a hotlink
protected String font
String containing the information for specifying a font in HTML
Constructor Detail |
public ArchivefullFmt()
Method Detail |
public String doFormat(Object userObject, Vector records)
userObject
- a user Object. This is userStateObject(WebZ)records
- a vector of record Objects. For use in WebZ, this is a
vector of DataDir objectsprotected final void subjectOrdered(String separator, DataDir dir, String fields, String subfields)
separator
- a String to use between individual data fieldsdir
- a DataDir containing the BER datafields
- a String containing the tags for the fields to be processedsubfields
- a String containing the tags for the subfields within the fields
to be processedprotected String label(String text)
Creates a label from some text
text
- a String that contains the text to be made into a labelprotected void formatTags(DataDir dir, boolean doHotLinks, boolean doBookMarkLink, boolean doImageLink)
Formats the data from specific tags and adds it to the HTML
dir
- a DataDir that contains the record to be formatteddoHotLinks
- a boolean that specifies whether or not to generate a hotlinkdoBookMarkLink
- a boolean that specifies whether or not to generate a link
to a bookmarkdoImageLink
- a boolean that specifies whether or not to generate a link to an
image
|
Open SiteSearch 4.1.1 Final |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |