jetweb is hosted by Hepforge, IPPP Durham

cedar.jetweb.html
Class HTMLProcessWriter

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

public class HTMLProcessWriter
extends HTMLWriter

A class containg a BufferedWriter and various methods for writing MCProcessTypes and Collisions.

Version:
$Date: 2006-04-14 14:23:21 +0100 (Fri, 14 Apr 2006) $ $Revision: 1104 $
Author:
Jon Butterworth

Field Summary
 
Fields inherited from class cedar.jetweb.html.HTMLWriter
dateFormat, dform, hidden, LISTLENGTH, modifiable, ofile, servletPath, verbose
 
Constructor Summary
HTMLProcessWriter(java.io.BufferedWriter out, java.lang.String newServletPath)
           
HTMLProcessWriter(java.io.PrintWriter out, java.lang.String newServletPath)
          Start a new html stream.
HTMLProcessWriter(java.lang.String filename, java.lang.String newServletPath)
          Start a new html stream.
 
Method Summary
 void write(Collision collision)
          Write out a Collision
 void write(MCProcessType proc)
          Write out an MCProcessType to HTML
static void writeAll(boolean modifiable, java.io.PrintWriter out)
          Write out all the known MCProcessTypes in a table.
 void writeMCProcessSelector(java.lang.String modelIdString)
          Write the screen which will all the process to be selected.
 
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

HTMLProcessWriter

public HTMLProcessWriter(java.io.PrintWriter out,
                         java.lang.String newServletPath)
Start a new html stream. This does nothing except assign the output stream and the path which will be used to refer back to the current servlet. This version writes output to the given PrintWriter.

Parameters:
out - - output writer
newServletPath - required for links back


HTMLProcessWriter

public HTMLProcessWriter(java.io.BufferedWriter out,
                         java.lang.String newServletPath)

HTMLProcessWriter

public HTMLProcessWriter(java.lang.String filename,
                         java.lang.String newServletPath)
Start a new html stream. This does nothing except assign the output stream and the path which will be used to refer back to the current servlet. This version writes output to the given file. (Deletes any existing file with the same name).

Parameters:
filename - for output file
newServletPath - required for links on output html page

Method Detail

writeAll

public static void writeAll(boolean modifiable,
                            java.io.PrintWriter out)
                     throws JetWebException
Write out all the known MCProcessTypes in a table.

Parameters:
modifiable. - is the table a web form or not?
Throws:
JetWebException


write

public void write(MCProcessType proc)
           throws JetWebException
Write out an MCProcessType to HTML

Throws:
JetWebException


write

public void write(Collision collision)
           throws java.io.IOException
Write out a Collision

Throws:
java.io.IOException


writeMCProcessSelector

public void writeMCProcessSelector(java.lang.String modelIdString)
                            throws JetWebException
Write the screen which will all the process to be selected.

Throws:
JetWebException