com.vladium.emma.report.html.doc
Class HTMLDocument
java.lang.Object
com.vladium.emma.report.html.doc.ISimpleElement.Factory.SimpleElementImpl
com.vladium.emma.report.html.doc.IElement.Factory.ElementImpl
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
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
HTMLDocument
public HTMLDocument()
HTMLDocument
public HTMLDocument(java.lang.String title,
java.lang.String encoding)
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()