public class HtmlBuilder extends XmlBuilder
Inherits from XmlBuilder, so don't forget that you can use the
functions defined in XmlBuilder, too.
Copyright 2003-2006 Partner Software, Inc.
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
embeddedcss |
droppingElementsWithoutContent, emptyingElementsWithoutContent, indention, indentSpace, outie, stack| Constructor and Description |
|---|
HtmlBuilder(java.io.File outputFile) |
HtmlBuilder(VfsFile outputFile) |
HtmlBuilder(java.io.Writer writer) |
| Modifier and Type | Method and Description |
|---|---|
void |
endBulletedList() |
void |
endDocument()
Closes out body and html
|
void |
endListItem() |
void |
endNumberedList() |
void |
endTable() |
void |
endTableData() |
void |
endTableRow() |
void |
h1(java.lang.Object title) |
void |
h2(java.lang.Object title) |
void |
h3(java.lang.Object title) |
void |
h4(java.lang.Object title) |
void |
h5(java.lang.Object title) |
void |
hr() |
void |
p(java.lang.Object contents) |
void |
startBulletedList() |
void |
startDocument(java.lang.Object documentName)
Gives you a standard header, with same text for the title and for an h1
tag.
|
void |
startListItem() |
void |
startNumberedList() |
void |
startTable() |
void |
startTableData() |
void |
startTableRow() |
void |
tableContents(java.lang.Object contents) |
void |
tableHeader(java.lang.Object columnName) |
void |
writeBulletedList(java.util.Collection contents) |
void |
writeLink(java.lang.String url,
java.lang.Object contents) |
void |
writeListItem(java.lang.Object contents) |
void |
writeMapAsTable(java.util.Map contents,
java.lang.String keyLabel,
java.lang.String valueLabel) |
void |
writeParagraph(java.lang.Object contents) |
void |
writeStackTrace(java.lang.Throwable whatHappened) |
beginStartTag, close, endElement, endElement, endElement, endElement, endStartTag, indent, isDroppingElementsWithoutContent, isEmptyingElementsWithoutContent, newLine, setDroppingElementsWithoutContent, setEmptyingElementsWithoutContent, startElement, startElement, startElement, startElement, undent, writeAttribute, writeContent, writeContent, writeElement, writeElement, writeElement, writeEmptyElement, writeEmptyElement, writeIterableContent, writeRawpublic HtmlBuilder(java.io.File outputFile)
throws java.io.IOException
java.io.IOExceptionpublic HtmlBuilder(VfsFile outputFile) throws java.io.IOException
java.io.IOExceptionpublic HtmlBuilder(java.io.Writer writer)
throws java.io.IOException
java.io.IOExceptionpublic void writeParagraph(java.lang.Object contents)
throws java.io.IOException
java.io.IOExceptionpublic void startBulletedList()
throws java.io.IOException
java.io.IOExceptionpublic void endBulletedList()
throws java.io.IOException
java.io.IOExceptionpublic void startNumberedList()
throws java.io.IOException
java.io.IOExceptionpublic void endNumberedList()
throws java.io.IOException
java.io.IOExceptionpublic void writeListItem(java.lang.Object contents)
throws java.io.IOException
java.io.IOExceptionpublic void startListItem()
throws java.io.IOException
java.io.IOExceptionpublic void endListItem()
throws java.io.IOException
java.io.IOExceptionpublic void startTable()
throws java.io.IOException
java.io.IOExceptionpublic void endTable()
throws java.io.IOException
java.io.IOExceptionpublic void startTableRow()
throws java.io.IOException
java.io.IOExceptionpublic void endTableRow()
throws java.io.IOException
java.io.IOExceptionpublic void startTableData()
throws java.io.IOException
java.io.IOExceptionpublic void endTableData()
throws java.io.IOException
java.io.IOExceptionpublic void tableHeader(java.lang.Object columnName)
throws java.io.IOException
java.io.IOExceptionpublic void tableContents(java.lang.Object contents)
throws java.io.IOException
java.io.IOExceptionpublic void writeLink(java.lang.String url,
java.lang.Object contents)
throws java.io.IOException
java.io.IOExceptionpublic void hr()
throws java.io.IOException
java.io.IOExceptionpublic void h1(java.lang.Object title)
throws java.io.IOException
java.io.IOExceptionpublic void h2(java.lang.Object title)
throws java.io.IOException
java.io.IOExceptionpublic void h3(java.lang.Object title)
throws java.io.IOException
java.io.IOExceptionpublic void h4(java.lang.Object title)
throws java.io.IOException
java.io.IOExceptionpublic void h5(java.lang.Object title)
throws java.io.IOException
java.io.IOExceptionpublic void p(java.lang.Object contents)
throws java.io.IOException
java.io.IOExceptionpublic void startDocument(java.lang.Object documentName)
throws java.io.IOException
java.io.IOExceptionpublic void endDocument()
throws java.io.IOException
java.io.IOExceptionpublic void writeBulletedList(java.util.Collection contents)
throws java.io.IOException
java.io.IOExceptionpublic void writeMapAsTable(java.util.Map contents,
java.lang.String keyLabel,
java.lang.String valueLabel)
throws java.io.IOException
java.io.IOExceptionpublic void writeStackTrace(java.lang.Throwable whatHappened)
throws java.io.IOException
java.io.IOException