com.vladium.emma.report.html.doc
Class HTMLDocument

java.lang.Object
  extended by com.vladium.emma.report.html.doc.ISimpleElement.Factory.SimpleElementImpl
      extended by com.vladium.emma.report.html.doc.IElement.Factory.ElementImpl
          extended by com.vladium.emma.report.html.doc.HTMLDocument
All Implemented Interfaces:
IContent, IElement, IElementList, ISimpleElement

public final class HTMLDocument
extends IElement.Factory.ElementImpl

Author:
Vlad Roubtsov, (C) 2003

Nested Class Summary
 
Nested classes/interfaces inherited from interface com.vladium.emma.report.html.doc.IElement
IElement.Factory
 
Field Summary
private  IElement m_body
           
private  IContent m_footer
           
private  IElement m_head
           
private  IContent m_header
           
private  java.lang.String m_title
           
 
Fields inherited from class com.vladium.emma.report.html.doc.IElement.Factory.ElementImpl
m_contents
 
Fields inherited from class com.vladium.emma.report.html.doc.ISimpleElement.Factory.SimpleElementImpl
m_attrs, m_tag
 
Constructor Summary
HTMLDocument()
           
HTMLDocument(java.lang.String title, java.lang.String encoding)
           
 
Method Summary
 IElementList add(IContent content)
          Overridden to add to the doc body.
 void addEmptyP()
           
 void addH(int level, IContent text, java.lang.String classID)
           
 void addH(int level, java.lang.String text, java.lang.String classID)
           
 void addHR(int size)
           
 void addLINK(java.lang.String type, java.lang.String href)
          Adds a <LINK> to the head.
 void addStyle(java.lang.String css)
           
 void emit(HTMLWriter out)
          Overridden to ensure header/footer appear first/last in the body.
 IElement getBody()
           
 IContent getFooter()
           
 IElement getHead()
           
 IContent getHeader()
           
 java.lang.String getTitle()
           
 void setFooter(IContent footer)
           
 void setHeader(IContent header)
           
 
Methods inherited from class com.vladium.emma.report.html.doc.IElement.Factory.ElementImpl
add, setText, size, toString
 
Methods inherited from class com.vladium.emma.report.html.doc.ISimpleElement.Factory.SimpleElementImpl
getAttributes, getTag, setClass
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.vladium.emma.report.html.doc.ISimpleElement
getAttributes, getTag, setClass
 

Field Detail

m_title

private final java.lang.String m_title

m_head

private final IElement m_head

m_body

private final IElement m_body

m_header

private IContent m_header

m_footer

private IContent m_footer
Constructor Detail

HTMLDocument

public HTMLDocument()

HTMLDocument

public HTMLDocument(java.lang.String title,
                    java.lang.String encoding)
Method Detail

getTitle

public java.lang.String getTitle()

getHead

public IElement getHead()

getBody

public IElement getBody()

getHeader

public IContent getHeader()

getFooter

public IContent getFooter()

setHeader

public void setHeader(IContent header)

setFooter

public void setFooter(IContent footer)

emit

public void emit(HTMLWriter out)
Overridden to ensure header/footer appear first/last in the body.

Specified by:
emit in interface IContent
Overrides:
emit in class IElement.Factory.ElementImpl

add

public IElementList add(IContent content)
Overridden to add to the doc body.

Specified by:
add in interface IElementList
Overrides:
add in class IElement.Factory.ElementImpl

addStyle

public void addStyle(java.lang.String css)

addLINK

public void addLINK(java.lang.String type,
                    java.lang.String href)
Adds a <LINK> to the head.


addH

public void addH(int level,
                 java.lang.String text,
                 java.lang.String classID)

addH

public void addH(int level,
                 IContent text,
                 java.lang.String classID)

addHR

public void addHR(int size)

addEmptyP

public void addEmptyP()