org.opengts.war.report.presentation
Class ReportHeader

java.lang.Object
  extended by org.opengts.war.report.presentation.ReportHeader

public class ReportHeader
extends java.lang.Object


Constructor Summary
  ReportHeader(ReportTable rptTable)
           
protected ReportHeader(ReportTable rptTable, HeaderRowTemplate... hr)
           
 
Method Summary
 void writeCallback(OutputProvider out, int level, ReportData rd)
          Sends the first line of the report to the callback method
 void writeCSV(java.io.PrintWriter out, int level, ReportData rptData)
          Writes the first line of the CSV file containing the column descriptions
 void writeHTML(java.io.PrintWriter out, int level, ReportData rptData)
           
 void writeXLS(ReportSpreadsheet rptSS, int level, ReportData rptData)
          Writes the headert rows of the XLS file containing the column descriptions
 void writeXML(java.io.PrintWriter out, int level, ReportData rptData)
          Writes the header portion of the XML file containing the column descriptions
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ReportHeader

public ReportHeader(ReportTable rptTable)

ReportHeader

protected ReportHeader(ReportTable rptTable,
                       HeaderRowTemplate... hr)
Method Detail

writeHTML

public void writeHTML(java.io.PrintWriter out,
                      int level,
                      ReportData rptData)
               throws ReportException
Throws:
ReportException

writeXML

public void writeXML(java.io.PrintWriter out,
                     int level,
                     ReportData rptData)
              throws ReportException
Writes the header portion of the XML file containing the column descriptions

Parameters:
out - The stream to which the output is written
level - The recursion level
rptData - The Report attributes
Throws:
ReportException

writeCSV

public void writeCSV(java.io.PrintWriter out,
                     int level,
                     ReportData rptData)
              throws ReportException
Writes the first line of the CSV file containing the column descriptions

Parameters:
out - The stream to which the output is written
level - The recursion level
rptData - The Report attributes
Throws:
ReportException

writeXLS

public void writeXLS(ReportSpreadsheet rptSS,
                     int level,
                     ReportData rptData)
              throws ReportException
Writes the headert rows of the XLS file containing the column descriptions

Parameters:
rptSS - The spreadsheet instance to which the header is written
level - The recursion level
rptData - The Report attributes
Throws:
ReportException

writeCallback

public void writeCallback(OutputProvider out,
                          int level,
                          ReportData rd)
                   throws ReportException
Sends the first line of the report to the callback method

Parameters:
out - The stream to which the output is written
level - The recursion level
rd - The Report attributes
Throws:
ReportException