EspressChart
v 5.5

quadbase.common.param
Class CssHtmlWriter

java.lang.Object
  |
  +--java.io.Writer
        |
        +--java.io.PrintWriter
              |
              +--quadbase.common.param.HtmlWriter
                    |
                    +--quadbase.common.param.CssHtmlWriter

public class CssHtmlWriter
extends HtmlWriter

A Writer that writes CSS supported html code


Fields inherited from class java.io.PrintWriter
out
 
Fields inherited from class java.io.Writer
lock
 
Constructor Summary
CssHtmlWriter(java.io.PrintWriter out)
          Allocates a HtmlWriter that writes to out
 
Method Summary
 void body(java.lang.String cssClass)
          Prints the <BODY class="CLASS"> tag
 void center(java.lang.String cssClass)
          Prints the <CENTER class="CLASS"> tag
 void div(java.lang.String cssClass)
          Prints the <DIV class="CLASS"> tag
 void h1(java.lang.String cssClass)
          Prints the <H1 class="cssClass"> tag
 void h2(java.lang.String cssClass)
          Prints the <H2 class="cssClass"> tag
 void h3(java.lang.String cssClass)
          Prints the <H3 class="cssClass"> tag
 void head(java.lang.String cssClass)
          Prints the <HEAD class="CLASS"> tag
 void header(java.lang.String title, java.lang.String css)
          Prints the header information of a HTML document.
 void html(java.lang.String cssClass)
          Prints the <HTML class="CLASS"> tag
 void ol(java.lang.String cssClass)
          Prints the <OL class="cssClass"> tag
 void p(java.lang.String cssClass)
          Prints the <P class="cssClass"> tag
 void style(java.lang.String css)
          Prints the <link REL="stylesheet" TYPE="text/css" href="css"> tag.
 void table(java.lang.String cssClass)
          Prints the <TABLE class="CLASS"> tag
 void table(java.lang.String cssClass, java.lang.String inlineStyle)
          Prints the <TABLE class="CLASS"> tag
 void tableData(java.lang.String cssClass)
          Prints the <TD class="CLASS"> tag
 void tableRow(java.lang.String cssClass)
          Prints the <TR class="CLASS"> tag
 void title(java.lang.String cssClass)
          Prints the <HEAD class="CLASS"> tag
 
Methods inherited from class quadbase.common.param.HtmlWriter
body, bodyEnd, br, center, centerEnd, div, divEnd, font, font, fontEnd, footer, h1, h1End, h2, h2End, h3, h3End, head, headEnd, header, header, hr, html, htmlEnd, ol, olEnd, p, pEnd, table, tableData, tableDataEnd, tableEnd, tableRow, tableRowEnd, title, titleEnd
 
Methods inherited from class java.io.PrintWriter
checkError, close, flush, print, print, print, print, print, print, print, print, print, println, println, println, println, println, println, println, println, println, println, setError, write, write, write, write, write
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CssHtmlWriter

public CssHtmlWriter(java.io.PrintWriter out)
Allocates a HtmlWriter that writes to out
Parameters:
out - PrinterWriter to write out the outputs.
Method Detail

header

public void header(java.lang.String title,
                   java.lang.String css)
Prints the header information of a HTML document. Including <HTML>, <HEAD>, <TITLE>, and the <BODY> tags with a title. This HTML document will use a Cascading Style Sheet.
Parameters:
title - the title of this HTML document.
css - the name of the css style sheet to use

style

public void style(java.lang.String css)
Prints the <link REL="stylesheet" TYPE="text/css" href="css"> tag.
Parameters:
css - the name of the external css file

html

public void html(java.lang.String cssClass)
Prints the <HTML class="CLASS"> tag
Parameters:
class - the value of the class attribute in the tag

head

public void head(java.lang.String cssClass)
Prints the <HEAD class="CLASS"> tag
Parameters:
class - the value of the class attribute in the tag

title

public void title(java.lang.String cssClass)
Prints the <HEAD class="CLASS"> tag
Parameters:
class - the value of the class attribute in the tag

h1

public void h1(java.lang.String cssClass)
Prints the <H1 class="cssClass"> tag
Parameters:
class - the value of the class attribute in the tag

h2

public void h2(java.lang.String cssClass)
Prints the <H2 class="cssClass"> tag
Parameters:
class - the value of the class attribute in the tag

h3

public void h3(java.lang.String cssClass)
Prints the <H3 class="cssClass"> tag
Parameters:
class - the value of the class attribute in the tag

p

public void p(java.lang.String cssClass)
Prints the <P class="cssClass"> tag
Parameters:
class - the value of the class attribute in the tag

ol

public void ol(java.lang.String cssClass)
Prints the <OL class="cssClass"> tag
Parameters:
class - the value of the class attribute in the tag

body

public void body(java.lang.String cssClass)
Prints the <BODY class="CLASS"> tag
Overrides:
body in class HtmlWriter
Parameters:
class - the value of the class attribute in the tag

table

public void table(java.lang.String cssClass)
Prints the <TABLE class="CLASS"> tag
Parameters:
class - the value of the class attribute in the tag

table

public void table(java.lang.String cssClass,
                  java.lang.String inlineStyle)
Prints the <TABLE class="CLASS"> tag
Parameters:
class - the value of the class attribute in the tag

tableRow

public void tableRow(java.lang.String cssClass)
Prints the <TR class="CLASS"> tag
Parameters:
class - the value of the class attribute in the tag

tableData

public void tableData(java.lang.String cssClass)
Prints the <TD class="CLASS"> tag
Parameters:
class - the value of the class attribute in the tag

center

public void center(java.lang.String cssClass)
Prints the <CENTER class="CLASS"> tag
Parameters:
class - the value of the class attribute in the tag

div

public void div(java.lang.String cssClass)
Prints the <DIV class="CLASS"> tag
Parameters:
class - the value of the class attribute in the tag

EspressChart
v 5.5