use of org.activityinfo.shared.command.RenderReportHtml in project activityinfo by bedatadriven.
the class ElementWidget method loadHtml.
private void loadHtml() {
contentElement.setInnerHTML("");
loadingElement.getStyle().setDisplay(Display.BLOCK);
if (model instanceof TextReportElement) {
renderStaticHtml();
} else {
dispatcher.execute(new RenderReportHtml(model), new AsyncCallback<HtmlResult>() {
@Override
public void onFailure(Throwable caught) {
// TODO Auto-generated method stub
}
@Override
public void onSuccess(HtmlResult result) {
updateHtml(result.getHtml());
}
});
}
}
Aggregations