Jacson

de.spieleck.app.turn.rendering
Class RenderHtml

java.lang.Object
  extended by de.spieleck.app.turn.rendering.BaseRender
      extended by de.spieleck.app.turn.rendering.RenderHtml
All Implemented Interfaces:
LineSourceInited, RenderMode

public class RenderHtml
extends BaseRender

A RenderMode which generates elaborate HTML output.
The output contains various lists of intermediate and final results and rankings. It contains an overviewpage of all the page generated by either the renderer or the Run facade.
Rendering is done by a nice quick method: Data is exported to xml by the XStream Library and postprocessed to HTML by XSLT. To be lightening fast this class keeps track of timestamps, to avoid regeneration of unchanged data.

$URL: https://svn.sourceforge.net/svnroot/jtourney/src/de/spieleck/app/turn/rendering/RenderHtml.java $

Version:
$Revision: 2 $ $Date: 2006-03-20 14:33:27 +0100 (Mo, 20 Mrz 2006) $ $Author: nestefan $
Author:
Frank S. Nestel, $Author: nestefan $

Field Summary
static java.lang.String CSS_NAME
           
static java.text.DateFormat DF
           
static java.lang.String INDEX_NAME
           
static java.lang.String INDEX_STYLE
           
static java.lang.String INDEX_XML
           
 
Constructor Summary
RenderHtml()
           
 
Method Summary
 void addSource(java.lang.String fName)
          Tell the RenderMode, which Sourcefiles have been considered.
protected  void check4css()
           
 void endSession()
          To enable reuse of the same renderer, it gets informed about starting and ending of a complete block of information.
 void init(LineSource ls)
           
protected  javax.xml.transform.Transformer obtainTransformer(java.lang.String style)
           
 void render(long timestamp, java.lang.Object o, java.lang.String name, java.lang.String style, int round)
          A render method which can avoid superfluous work by skipping depending on a timestamp.
protected  void renderIndex()
           
 
Methods inherited from class de.spieleck.app.turn.rendering.BaseRender
getRoot, getRootOut, render, setRoot, startSession
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DF

public static final java.text.DateFormat DF

CSS_NAME

public static final java.lang.String CSS_NAME
See Also:
Constant Field Values

INDEX_STYLE

public static final java.lang.String INDEX_STYLE
See Also:
Constant Field Values

INDEX_NAME

public static final java.lang.String INDEX_NAME
See Also:
Constant Field Values

INDEX_XML

public static final java.lang.String INDEX_XML
See Also:
Constant Field Values
Constructor Detail

RenderHtml

public RenderHtml()
Method Detail

init

public void init(LineSource ls)
          throws java.io.IOException
Specified by:
init in interface LineSourceInited
Overrides:
init in class BaseRender
Throws:
java.io.IOException

addSource

public void addSource(java.lang.String fName)
Description copied from interface: RenderMode
Tell the RenderMode, which Sourcefiles have been considered.

Specified by:
addSource in interface RenderMode
Overrides:
addSource in class BaseRender

render

public void render(long timestamp,
                   java.lang.Object o,
                   java.lang.String name,
                   java.lang.String style,
                   int round)
            throws java.io.IOException
Description copied from interface: RenderMode
A render method which can avoid superfluous work by skipping depending on a timestamp.

Throws:
java.io.IOException

endSession

public void endSession()
                throws java.io.IOException
Description copied from interface: RenderMode
To enable reuse of the same renderer, it gets informed about starting and ending of a complete block of information.

Specified by:
endSession in interface RenderMode
Overrides:
endSession in class BaseRender
Throws:
java.io.IOException

check4css

protected void check4css()
                  throws java.io.IOException
Throws:
java.io.IOException

renderIndex

protected void renderIndex()
                    throws java.io.IOException
Throws:
java.io.IOException

obtainTransformer

protected javax.xml.transform.Transformer obtainTransformer(java.lang.String style)

spieleck.de