to.etc.domui.dom
Class HtmlFullRenderer

java.lang.Object
  extended by to.etc.domui.dom.html.NodeVisitorBase
      extended by to.etc.domui.dom.HtmlFullRenderer
All Implemented Interfaces:
INodeVisitor
Direct Known Subclasses:
MsGarbageHtmlFullRenderer, StandardHtmlFullRenderer

public class HtmlFullRenderer
extends NodeVisitorBase

Visits the node tree in such a way that a valid html document is generated.

Author:
Frits Jalvingh Created on Aug 17, 2007

Constructor Summary
protected HtmlFullRenderer(HtmlTagRenderer tagRenderer, IBrowserOutput o)
           
 
Method Summary
 IRequestContext ctx()
           
 java.lang.StringBuilder getCreateJS()
          Return all of the Javascript code to create/recreate this page.
 HtmlRenderMode getMode()
           
 HtmlTagRenderer getTagRenderer()
           
 boolean isXml()
           
 IBrowserOutput o()
           
 Page page()
           
 void render(IRequestContext ctx, Page page)
           
 void renderHeadContributors()
          Get all contributor sources and create an ordered list (ordered by the indicated 'order') to render.
 void renderLoadCSS(java.lang.String path)
           
 void renderLoadJavascript(java.lang.String path)
           
protected  void renderPageHeader()
           
 void renderThemeCSS()
           
 void setRenderMode(HtmlRenderMode m)
           
 void setXml(boolean xml)
           
 void visitChildren(NodeContainer c)
           
 void visitLiteralXhtml(LiteralXhtml n)
          Deprecated. 
 void visitNodeBase(NodeBase n)
           
 void visitNodeContainer(NodeContainer n)
           
 void visitTextArea(TextArea n)
          Overridden to fix bug 627; this prevents embedding content in textarea and renders the value as an attribute.
 
Methods inherited from class to.etc.domui.dom.html.NodeVisitorBase
visitA, visitBR, visitButton, visitCheckbox, visitDiv, visitFileInput, visitForm, visitH, visitImg, visitInput, visitLabel, visitLi, visitOption, visitRadioButton, visitSelect, visitSpan, visitTable, visitTBody, visitTD, visitText, visitTextNode, visitTH, visitTHead, visitTR, visitUl, visitXmlNode
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HtmlFullRenderer

protected HtmlFullRenderer(HtmlTagRenderer tagRenderer,
                           IBrowserOutput o)
Method Detail

getTagRenderer

public HtmlTagRenderer getTagRenderer()

getMode

public HtmlRenderMode getMode()

setRenderMode

public void setRenderMode(HtmlRenderMode m)

isXml

public boolean isXml()

setXml

public void setXml(boolean xml)

o

public IBrowserOutput o()

ctx

public IRequestContext ctx()

page

public Page page()

visitNodeBase

public void visitNodeBase(NodeBase n)
                   throws java.lang.Exception
Overrides:
visitNodeBase in class NodeVisitorBase
Throws:
java.lang.Exception

visitLiteralXhtml

@Deprecated
public void visitLiteralXhtml(LiteralXhtml n)
                       throws java.lang.Exception
Deprecated. 

Overridden because this is a NodeBase node which MUST be terminated with a /div, always.

Specified by:
visitLiteralXhtml in interface INodeVisitor
Overrides:
visitLiteralXhtml in class NodeVisitorBase
Throws:
java.lang.Exception
See Also:
NodeVisitorBase.visitLiteralXhtml(to.etc.domui.component.misc.LiteralXhtml)

visitTextArea

public void visitTextArea(TextArea n)
                   throws java.lang.Exception
Overridden to fix bug 627; this prevents embedding content in textarea and renders the value as an attribute.

Specified by:
visitTextArea in interface INodeVisitor
Overrides:
visitTextArea in class NodeVisitorBase
Throws:
java.lang.Exception
See Also:
NodeVisitorBase.visitTextArea(to.etc.domui.dom.html.TextArea)

visitNodeContainer

public void visitNodeContainer(NodeContainer n)
                        throws java.lang.Exception
Overrides:
visitNodeContainer in class NodeVisitorBase
Throws:
java.lang.Exception

visitChildren

public void visitChildren(NodeContainer c)
                   throws java.lang.Exception
Overrides:
visitChildren in class NodeVisitorBase
Throws:
java.lang.Exception

renderPageHeader

protected void renderPageHeader()
                         throws java.lang.Exception
Throws:
java.lang.Exception

renderThemeCSS

public void renderThemeCSS()
                    throws java.lang.Exception
Throws:
java.lang.Exception

renderHeadContributors

public void renderHeadContributors()
                            throws java.lang.Exception
Get all contributor sources and create an ordered list (ordered by the indicated 'order') to render.

Throws:
java.lang.Exception

renderLoadCSS

public void renderLoadCSS(java.lang.String path)
                   throws java.lang.Exception
Throws:
java.lang.Exception

renderLoadJavascript

public void renderLoadJavascript(java.lang.String path)
                          throws java.lang.Exception
Throws:
java.lang.Exception

render

public void render(IRequestContext ctx,
                   Page page)
            throws java.lang.Exception
Throws:
java.lang.Exception

getCreateJS

public java.lang.StringBuilder getCreateJS()
Return all of the Javascript code to create/recreate this page.

Returns: