Package com.pnfsoftware.jeb.core.output
Class AbstractHtmlFormatter<StyleObject>
java.lang.Object
com.pnfsoftware.jeb.core.output.AbstractHtmlFormatter<StyleObject>
- Direct Known Subclasses:
HtmlTextDocumentFormatter
Abstract Class that helps building HTML outputs.
-
Constructor Summary
ConstructorsConstructorDescriptionAbstractHtmlFormatter
(String title, StringBuilder cssdata, boolean insertCopyright) -
Method Summary
Modifier and TypeMethodDescriptionprotected String
generate
(CharSequence body) Generate the full HTML Document.protected abstract CharSequence
generateCssBlock
(StyleObject id, String classname) protected String
Generate the CSS part of a StyleObject.protected String
-
Constructor Details
-
AbstractHtmlFormatter
-
-
Method Details
-
generate
Generate the full HTML Document. Should be called by implementor.- Parameters:
body
- HTML body- Returns:
- Well formed HTML document
-
generateCssDivStyle
Generate the CSS part of a StyleObject. Manages duplicates styles.- Parameters:
id
-- Returns:
-
generateCssBlock
-
getClassname
-