public abstract class

AbstractHtmlFormatter

extends Object
java.lang.Object
   ↳ com.pnfsoftware.jeb.core.output.AbstractHtmlFormatter<StyleObject>
Known Direct Subclasses

Class Overview

Abstract Class that helps building HTML outputs.

Summary

Public Constructors
AbstractHtmlFormatter(String title, StringBuilder cssdata, boolean insertCopyright)
Protected Methods
String generate(CharSequence body)
Generate the full HTML Document.
abstract CharSequence generateCssBlock(StyleObject id, String classname)
String generateCssDivStyle(StyleObject id)
Generate the CSS part of a StyleObject.
String getClassname(StyleObject id)
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public AbstractHtmlFormatter (String title, StringBuilder cssdata, boolean insertCopyright)

Protected Methods

protected String generate (CharSequence body)

Generate the full HTML Document. Should be called by implementor.

Parameters
body HTML body
Returns
  • Well formed HTML document

protected abstract CharSequence generateCssBlock (StyleObject id, String classname)

protected String generateCssDivStyle (StyleObject id)

Generate the CSS part of a StyleObject. Manages duplicates styles.

protected String getClassname (StyleObject id)