Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

jbreport.render
Class BasicHTMLRenderer  view BasicHTMLRenderer download BasicHTMLRenderer.java

java.lang.Object
  extended byjbreport.core.DefaultReportVisitor
      extended byjbreport.render.BasicHTMLRenderer
All Implemented Interfaces:
jbreport.core.ReportVisitor

public class BasicHTMLRenderer
extends jbreport.core.DefaultReportVisitor

This will render the document in a basic html format. This is mainly to be used for debugging.

Version:
$Revision: 1.1.1.1 $

Field Summary
private static java.lang.String BR
          The no-break space html character
private  int offset
          The offset from the current depth
private  java.io.PrintWriter out
          The writer that will be used to output formatted html data
private  jbreport.ReportStylesheet stylesheet
          The stylesheet for this document
 
Fields inherited from class jbreport.core.DefaultReportVisitor
 
Constructor Summary
BasicHTMLRenderer(java.io.PrintWriter out)
           
 
Method Summary
private  void appendStyleValue(java.lang.StringBuffer buf, java.lang.String objectType, jbreport.ReportElement elem, java.lang.String paramType)
           
private  jbreport.ReportElement getHeaderForCell(jbreport.ReportElement tableRow, int cell)
           
 void visitAggregate(jbreport.ReportElement elem, jbreport.core.ReportVisitorState state)
           
 void visitDocument(jbreport.ReportElement elem, jbreport.core.ReportVisitorState state)
           
 void visitFragment(jbreport.ReportElement elem, jbreport.core.ReportVisitorState state)
           
 void visitInclude(jbreport.ReportElement elem, jbreport.core.ReportVisitorState state)
           
 void visitQueryBoundResult(jbreport.ReportElement elem, jbreport.core.ReportVisitorState state)
           
 void visitTable(jbreport.ReportElement elem, jbreport.core.ReportVisitorState state)
           
 void visitTableHeaderItem(jbreport.ReportElement elem, jbreport.core.ReportVisitorState state)
           
 void visitTableHeaderRow(jbreport.ReportElement elem, jbreport.core.ReportVisitorState state)
           
 void visitTableRow(jbreport.ReportElement elem, jbreport.core.ReportVisitorState state)
           
 void visitTLine(jbreport.ReportElement elem, jbreport.core.ReportVisitorState state)
           
private  void writeln(java.lang.StringBuffer data, jbreport.core.ReportVisitorState state)
           
private  void writeln(java.lang.String data, jbreport.core.ReportVisitorState state)
           
 
Methods inherited from class jbreport.core.DefaultReportVisitor
addChild, visitDatasource, visitGroup, visitQuery, visitReportComposite, visitReportSection, visitRepository, visitSectionBreak, visitStyle, visitStylesheet
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

BR

private static final java.lang.String BR
The no-break space html character

See Also:
Constant Field Values

out

private java.io.PrintWriter out
The writer that will be used to output formatted html data


offset

private int offset
The offset from the current depth


stylesheet

private jbreport.ReportStylesheet stylesheet
The stylesheet for this document

Constructor Detail

BasicHTMLRenderer

public BasicHTMLRenderer(java.io.PrintWriter out)
Method Detail

visitDocument

public void visitDocument(jbreport.ReportElement elem,
                          jbreport.core.ReportVisitorState state)
                   throws jbreport.ReportException

visitFragment

public void visitFragment(jbreport.ReportElement elem,
                          jbreport.core.ReportVisitorState state)
                   throws jbreport.ReportException

visitInclude

public void visitInclude(jbreport.ReportElement elem,
                         jbreport.core.ReportVisitorState state)
                  throws jbreport.ReportException

visitQueryBoundResult

public void visitQueryBoundResult(jbreport.ReportElement elem,
                                  jbreport.core.ReportVisitorState state)
                           throws jbreport.ReportException

visitTLine

public void visitTLine(jbreport.ReportElement elem,
                       jbreport.core.ReportVisitorState state)
                throws jbreport.ReportException

visitTable

public void visitTable(jbreport.ReportElement elem,
                       jbreport.core.ReportVisitorState state)
                throws jbreport.ReportException

visitTableHeaderRow

public void visitTableHeaderRow(jbreport.ReportElement elem,
                                jbreport.core.ReportVisitorState state)
                         throws jbreport.ReportException

visitTableHeaderItem

public void visitTableHeaderItem(jbreport.ReportElement elem,
                                 jbreport.core.ReportVisitorState state)
                          throws jbreport.ReportException

visitTableRow

public void visitTableRow(jbreport.ReportElement elem,
                          jbreport.core.ReportVisitorState state)
                   throws jbreport.ReportException

getHeaderForCell

private jbreport.ReportElement getHeaderForCell(jbreport.ReportElement tableRow,
                                                int cell)
                                         throws jbreport.ReportException

visitAggregate

public void visitAggregate(jbreport.ReportElement elem,
                           jbreport.core.ReportVisitorState state)
                    throws jbreport.ReportException

writeln

private void writeln(java.lang.String data,
                     jbreport.core.ReportVisitorState state)

writeln

private void writeln(java.lang.StringBuffer data,
                     jbreport.core.ReportVisitorState state)

appendStyleValue

private void appendStyleValue(java.lang.StringBuffer buf,
                              java.lang.String objectType,
                              jbreport.ReportElement elem,
                              java.lang.String paramType)
                       throws jbreport.ReportException