use of org.camunda.bpm.engine.impl.form.engine.HtmlElementWriter in project camunda-bpm-platform by camunda.
the class SectionedHtmlReportBuilder method execute.
public String execute() {
HtmlDocumentBuilder builder = new HtmlDocumentBuilder(new HtmlElementWriter("html"));
addHtmlHead(builder);
addHtmlBody(builder);
return builder.endElement().getHtmlString();
}
use of org.camunda.bpm.engine.impl.form.engine.HtmlElementWriter in project camunda-bpm-platform by camunda.
the class SectionedHtmlReportBuilder method addHtmlSection.
@SuppressWarnings("unchecked")
protected void addHtmlSection(HtmlDocumentBuilder builder, String title, Object section, int level) {
// add heading
builder.startElement(new HtmlElementWriter("h" + level).textContent(title)).endElement();
if (section instanceof Map) {
Map<String, Object> sections = (Map<String, Object>) section;
addHtmlSections(builder, sections, level + 1);
} else {
TabularResultSet resultSet = (TabularResultSet) section;
addHtmlTable(builder, resultSet);
}
}
Aggregations