jetweb is hosted by Hepforge, IPPP Durham

cedar.jetweb.html
Class HTMLPaperWriter

java.lang.Object
  extended by cedar.jetweb.html.HTMLWriter
      extended by cedar.jetweb.html.HTMLPaperWriter

public class HTMLPaperWriter
extends HTMLWriter

A bundle of utilities for producing HTML output for JetWeb applications.

Version:
$Date: 2006-02-28 21:12:05 +0000 (Tue, 28 Feb 2006) $ $Revision: 1025 $
Author:
Jon Butterworth

Field Summary
 
Fields inherited from class cedar.jetweb.html.HTMLWriter
dateFormat, dform, hidden, LISTLENGTH, modifiable, ofile, servletPath, verbose
 
Constructor Summary
HTMLPaperWriter(java.io.PrintWriter out, java.lang.String newservletpath)
           
HTMLPaperWriter(java.lang.String fname, java.lang.String newservletpath)
           
 
Method Summary
 void display(Paper paper)
          Write a Fitted Paper to html.
 void display(Paper paper, Fit fit)
          Write a Paper to HTML.
static java.lang.String getLink(Paper paper)
          return an http link to the paper on Spires.
static void paperBankToHTML()
          Write html files for all Papers in the paper bank.
static void writeGraphics(java.util.Map<java.lang.Integer,Paper> papers, Fit fit)
          write the graphics files associated with all the papers
 void writePaperForm(Paper paper, java.lang.String message)
          Write a form to modify a Paper
static void writePaperScreen(java.lang.String paperIdString, java.io.PrintWriter out, java.lang.String servletPath)
          Write out screen to modify a paper.
 void writePlotsForm(Paper paper, java.lang.String message)
          Write out the form which allows plots for this paper to be changed.
 
Methods inherited from class cedar.jetweb.html.HTMLWriter
close, display, displayList, endForm, endListPage, forwardTo, getWriter, listHiddenPars, listLogs, listPendingJobs, makeActionButtons, makeCommonForm, makeControlForm, makeRequestForm, makeSubmitButtons, setDateFormat, setHidden, setModifiable, setNumberFormat, setVerbose, startControlForm, startControlForm, startForm, writeDirChoiceForm, writeInputId, writeList, writeListContinued, writeOkCancel
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HTMLPaperWriter

public HTMLPaperWriter(java.io.PrintWriter out,
                       java.lang.String newservletpath)

HTMLPaperWriter

public HTMLPaperWriter(java.lang.String fname,
                       java.lang.String newservletpath)
Method Detail

paperBankToHTML

public static void paperBankToHTML()
                            throws JetWebException
Write html files for all Papers in the paper bank.

Throws:
JetWebException


writePaperScreen

public static void writePaperScreen(java.lang.String paperIdString,
                                    java.io.PrintWriter out,
                                    java.lang.String servletPath)
Write out screen to modify a paper.


getLink

public static java.lang.String getLink(Paper paper)
return an http link to the paper on Spires.


writePaperForm

public void writePaperForm(Paper paper,
                           java.lang.String message)
Write a form to modify a Paper

Parameters:
paper - The Paper to be modified.
out - The BufferedWriter to be written to.
message - A message to the user, printed below the file upload form.


writePlotsForm

public void writePlotsForm(Paper paper,
                           java.lang.String message)
                    throws JetWebException
Write out the form which allows plots for this paper to be changed.

Parameters:
paper - The Paper to be modified.
out - The BufferedWriter to be written to.
message - A message to the user, printed at the top of the form.
Throws:
JetWebException


display

public void display(Paper paper)
             throws JetWebException
Write a Fitted Paper to html.

Throws:
JetWebException


display

public void display(Paper paper,
                    Fit fit)
             throws JetWebException
Write a Paper to HTML.

Parameters:
paper - - the Paper to write.
fit - - the fit of this paper (may be null).
Throws:
JetWebException


writeGraphics

public static void writeGraphics(java.util.Map<java.lang.Integer,Paper> papers,
                                 Fit fit)
write the graphics files associated with all the papers