Package org.apache.juneau.html
Class BasicHtmlDocTemplate
java.lang.Object
org.apache.juneau.html.BasicHtmlDocTemplate
- All Implemented Interfaces:
- HtmlDocTemplate
A basic template for the HTML doc serializer.
 
This class can be subclassed to customize page rendering.
See Also:
- 
Nested Class SummaryNested classes/interfaces inherited from interface org.apache.juneau.html.HtmlDocTemplateHtmlDocTemplate.Void
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionprotected voidarticle(HtmlDocSerializerSession session, HtmlWriter w, Object o) Renders the contents of the<body> /<article> protected voidaside(HtmlDocSerializerSession session, HtmlWriter w, Object o) Renders the contents of the<body> /<aside> protected voidbody(HtmlDocSerializerSession session, HtmlWriter w, Object o) Renders the contents of the<body> protected voidfooter(HtmlDocSerializerSession session, HtmlWriter w, Object o) Renders the contents of the<body> /<footer> protected booleanhasAside(HtmlDocSerializerSession session) Returnstrue if this page should render a<body> /<aside> protected booleanhasFooter(HtmlDocSerializerSession session) Returnstrue if this page should render a<body> /<footer> protected booleanhasHeader(HtmlDocSerializerSession session) Returnstrue if this page should render a<body> /<header> protected booleanhasNav(HtmlDocSerializerSession session) Returnstrue if this page should render a<body> /<nav> protected booleanhasScript(HtmlDocSerializerSession session) Returnstrue if this page should render a<head> /<script> protected booleanhasStyle(HtmlDocSerializerSession session) Returnstrue if this page should render a<head> /<style> protected voidhead(HtmlDocSerializerSession session, HtmlWriter w, Object o) Renders the contents of the<head> protected voidheader(HtmlDocSerializerSession session, HtmlWriter w, Object o) Renders the contents of the<body> /<header> protected voidnav(HtmlDocSerializerSession session, HtmlWriter w, Object o) Renders the contents of the<body> /<nav> protected voidscript(HtmlDocSerializerSession session, HtmlWriter w, Object o) Renders the contents of the<head> /<script> protected voidstyle(HtmlDocSerializerSession session, HtmlWriter w, Object o) Renders the contents of the<head> /<style> voidwriteTo(HtmlDocSerializerSession session, HtmlWriter w, Object o) Renders the contents of the<head> 
- 
Constructor Details- 
BasicHtmlDocTemplatepublic BasicHtmlDocTemplate()
 
- 
- 
Method Details- 
writeToDescription copied from interface:HtmlDocTemplateRenders the contents of the<head> - Specified by:
- writeToin interface- HtmlDocTemplate
- Parameters:
- session- The current serializer session.
- w- The writer being written to.
- o- The object being serialized.
- Throws:
- Exception- Any exception can be thrown.
 
- 
headRenders the contents of the<head> - Parameters:
- session- The current serializer session.
- w- The writer being written to.
- o- The object being serialized.
- Throws:
- Exception- Any exception can be thrown.
 
- 
styleRenders the contents of the<head> /<style> - Parameters:
- session- The current serializer session.
- w- The writer being written to.
- o- The object being serialized.
- Throws:
- Exception- Any exception can be thrown.
 
- 
scriptRenders the contents of the<head> /<script> - Parameters:
- session- The current serializer session.
- w- The writer being written to.
- o- The object being serialized.
- Throws:
- Exception- Any exception can be thrown.
 
- 
bodyRenders the contents of the<body> - Parameters:
- session- The current serializer session.
- w- The writer being written to.
- o- The object being serialized.
- Throws:
- Exception- Any exception can be thrown.
 
- 
headerRenders the contents of the<body> /<header> - Parameters:
- session- The current serializer session.
- w- The writer being written to.
- o- The object being serialized.
- Throws:
- Exception- Any exception can be thrown.
 
- 
asideRenders the contents of the<body> /<aside> - Parameters:
- session- The current serializer session.
- w- The writer being written to.
- o- The object being serialized.
- Throws:
- Exception- Any exception can be thrown.
 
- 
articleRenders the contents of the<body> /<article> - Parameters:
- session- The current serializer session.
- w- The writer being written to.
- o- The object being serialized.
- Throws:
- Exception- Any exception can be thrown.
 
- 
hasStyleReturnstrue if this page should render a<head> /<style> - Parameters:
- session- The current serializer session.
- Returns:
- A boolean flag.
 
- 
hasScriptReturnstrue if this page should render a<head> /<script> - Parameters:
- session- The current serializer session.
- Returns:
- A boolean flag.
 
- 
hasHeaderReturnstrue if this page should render a<body> /<header> - Parameters:
- session- The current serializer session.
- Returns:
- A boolean flag.
 
- 
hasAsideReturnstrue if this page should render a<body> /<aside> - Parameters:
- session- The current serializer session.
- Returns:
- A boolean flag.
 
 
-