Docmosis API 2.1.0

com.docmosis.demo.web
Interface NestedSectionRenderer

All Known Implementing Classes:
FieldHtmlRenderer, RepeatableSectionHtmlRenderer

public interface NestedSectionRenderer

An interface for rendering sections of a template analysis in some sort of nested viewable format.


Method Summary
 void renderClose(TemplateSection section, boolean hasSubSections, boolean repeating, PrintWriter out)
          Render the closing portion of a section to the given print writer.
 void renderOpen(TemplateSection section, String context, boolean hasSubSections, boolean repeating, PrintWriter out)
          Render the opening portion of a section to the given print writer.
 

Method Detail

renderOpen

public void renderOpen(TemplateSection section,
                       String context,
                       boolean hasSubSections,
                       boolean repeating,
                       PrintWriter out)
Render the opening portion of a section to the given print writer.

Parameters:
section - the template section to render.
context - the context of the template section in relation to other parent sections.
hasSubSections - true if there are sub-sections to this section; false otherwise.
repeating - true if the parent section is currently repeating; false otherwise.
out - the print writer to output the text to.

renderClose

public void renderClose(TemplateSection section,
                        boolean hasSubSections,
                        boolean repeating,
                        PrintWriter out)
Render the closing portion of a section to the given print writer.

Parameters:
section - the template section to render.
hasSubSections - TODO
repeating - true if the parent section is currently repeating; false otherwise.
out - the print writer to output the text to.

Docmosis API 2.1.0

Copyright © 2007 Docmosis. All Rights Reserved.