{
String reportUrl = URLBuilder.getInstance().getProcessSummaryReportUrl(procDefId);
// load report
controller.handleEvent(
new Event(RenderReportAction.ID,
new RenderDispatchEvent(
ReportView.ID, reportUrl
)
)
);
}
public String getActionName()
{
return "Open report";
}
}
);
// report frame
frame = new Frame();
DOM.setStyleAttribute(frame.getElement(), "border", "none");
// toolbar
final LayoutPanel toolBox = new LayoutPanel();
toolBox.setPadding(0);
toolBox.setWidgetSpacing(5);
//toolBox.setLayout(new BoxLayout(BoxLayout.Orientation.VERTICAL));
final ToolBar toolBar = new ToolBar();
toolBar.add(createMenuBtn());
toolBox.add(toolBar, new BoxLayoutData(BoxLayoutData.FillStyle.HORIZONTAL));
// loading panel
loadingPanel = new LayoutPanel();
loadingPanel.add(new Label("Loading, please wait..."));
loadingPanel.setVisible(false);
// assembly
layout.add(toolBox, new BoxLayoutData(BoxLayoutData.FillStyle.HORIZONTAL));
layout.add(loadingPanel, new BoxLayoutData(BoxLayoutData.FillStyle.HORIZONTAL));
layout.add(frame, new BoxLayoutData(BoxLayoutData.FillStyle.BOTH));
this.add(layout);
// views and actions
controller.addView(
"report.definition.search", search
);
controller.addAction(UpdateSearchDefinitionsAction.ID, new UpdateSearchDefinitionsAction());
controller.addAction(RenderReportAction.ID, new RenderReportAction());
// initial report
controller.handleEvent(
new Event(RenderReportAction.ID,
new RenderDispatchEvent(
ReportView.ID, URLBuilder.getInstance().getOverallReportUrl()
)
)
);