nl.lxtreme.ols.util
Interface ExportUtils.HtmlExporter

All Known Subinterfaces:
ExportUtils.HtmlFileExporter
All Known Implementing Classes:
HtmlExporterImpl, HtmlFileExporterImpl
Enclosing class:
ExportUtils

public static interface ExportUtils.HtmlExporter

Provides a simple HTML exporter, which is kind of a tree-structure of HTML-elements (containing attributes).


Nested Class Summary
static interface ExportUtils.HtmlExporter.Attribute
          Denotes a HTML attribute, or name/value pair.
static interface ExportUtils.HtmlExporter.Element
          Denotes a HTML element.
static interface ExportUtils.HtmlExporter.MacroResolver
          Denotes a very simple macro resolver, which is basically a
 
Field Summary
static ExportUtils.HtmlExporter.Element BR
           
static ExportUtils.HtmlExporter.Element DIV
           
static ExportUtils.HtmlExporter.Element H1
           
static ExportUtils.HtmlExporter.Element H2
           
static ExportUtils.HtmlExporter.Element H3
           
static ExportUtils.HtmlExporter.Element HR
           
static ExportUtils.HtmlExporter.Element META
           
static ExportUtils.HtmlExporter.Element P
           
static ExportUtils.HtmlExporter.Element SPAN
           
static ExportUtils.HtmlExporter.Element TABLE
           
static ExportUtils.HtmlExporter.Element TBODY
           
static ExportUtils.HtmlExporter.Element TD
           
static ExportUtils.HtmlExporter.Element TFOOT
           
static ExportUtils.HtmlExporter.Element TH
           
static ExportUtils.HtmlExporter.Element THEAD
           
static ExportUtils.HtmlExporter.Element TR
           
 
Method Summary
 void addCssStyle(String aStyleClause)
          Adds a CSS-style clause to the "general" style clause in the HTML head container.
 ExportUtils.HtmlExporter.Element getBody()
          Returns the body container of the HTML document.
 ExportUtils.HtmlExporter.Element getHead()
          Returns the head container of the HTML document.
 void setTitle(String aTitle)
          Sets the title of the exported HTML document.
 String toString(ExportUtils.HtmlExporter.MacroResolver aResolver)
          Returns the string representation of the HTML-structure, with all macro's resolved.
 

Field Detail

META

static final ExportUtils.HtmlExporter.Element META

H1

static final ExportUtils.HtmlExporter.Element H1

H2

static final ExportUtils.HtmlExporter.Element H2

H3

static final ExportUtils.HtmlExporter.Element H3

P

static final ExportUtils.HtmlExporter.Element P

DIV

static final ExportUtils.HtmlExporter.Element DIV

SPAN

static final ExportUtils.HtmlExporter.Element SPAN

TABLE

static final ExportUtils.HtmlExporter.Element TABLE

TBODY

static final ExportUtils.HtmlExporter.Element TBODY

THEAD

static final ExportUtils.HtmlExporter.Element THEAD

TFOOT

static final ExportUtils.HtmlExporter.Element TFOOT

TR

static final ExportUtils.HtmlExporter.Element TR

TH

static final ExportUtils.HtmlExporter.Element TH

TD

static final ExportUtils.HtmlExporter.Element TD

BR

static final ExportUtils.HtmlExporter.Element BR

HR

static final ExportUtils.HtmlExporter.Element HR
Method Detail

addCssStyle

void addCssStyle(String aStyleClause)
Adds a CSS-style clause to the "general" style clause in the HTML head container.

Parameters:
aStyleClause - the CSS style clause to add, cannot be null.

getBody

ExportUtils.HtmlExporter.Element getBody()
Returns the body container of the HTML document.

Returns:
the body container, never null.

getHead

ExportUtils.HtmlExporter.Element getHead()
Returns the head container of the HTML document.

Returns:
the head container, never null.

setTitle

void setTitle(String aTitle)
Sets the title of the exported HTML document.

Parameters:
aTitle - a title, cannot be null.

toString

String toString(ExportUtils.HtmlExporter.MacroResolver aResolver)
Returns the string representation of the HTML-structure, with all macro's resolved.

Parameters:
aResolver - the macro resolver to use, cannot be null.
Returns:
the string representation of the HTML structure.


Copyright © 2012 L'Xtreme IT consultancy. All Rights Reserved.