org.apertereports.dashboard.html
Class HtmlReportBuilder
java.lang.Object
org.apertereports.dashboard.html.HtmlReportBuilder
public class HtmlReportBuilder
- extends Object
A helper class that manages the creation of the layouts containing generated
report HTML data. It transforms the tags from input HTML into
div tags and a corresponding report data. The resulting
transformed HTML is then fed to a CustomLayout widget which is filled
with generated components.
|
Method Summary |
void |
addHtmlChunk(String html)
|
void |
addReportChunk(org.apertereports.common.xml.config.ReportConfig config,
org.apertereports.common.xml.config.ReportConfig xlsConfig)
Adds a report chunk based on passed report configs. |
com.vaadin.ui.CustomLayout |
createLayout()
Creates a custom layout from the buffered HTML and generated components. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
HtmlReportBuilder
public HtmlReportBuilder(com.vaadin.Application application,
ReportDataProvider provider)
createLayout
public com.vaadin.ui.CustomLayout createLayout()
throws IOException
- Creates a custom layout from the buffered HTML and generated components.
- Returns:
- A custom layout
- Throws:
IOException - if the CustomLayout component initialization
fails
addHtmlChunk
public void addHtmlChunk(String html)
addReportChunk
public void addReportChunk(org.apertereports.common.xml.config.ReportConfig config,
org.apertereports.common.xml.config.ReportConfig xlsConfig)
- Adds a report chunk based on passed report configs. At first, the method
generates a new component for a given config and attaches it to the
component map.
The component map is later used to fill in the output
CustomLayout.
- Parameters:
config - The main report configxlsConfig - An optional XLS config
Copyright © 2011-2013. All Rights Reserved.