use of org.apache.syncope.client.console.reports.ReportTemplateDirectoryPanel in project syncope by apache.
the class Reports method buildTabList.
private List<ITab> buildTabList() {
final List<ITab> tabs = new ArrayList<>();
tabs.add(new AbstractTab(new ResourceModel("reports")) {
private static final long serialVersionUID = -6815067322125799251L;
@Override
public Panel getPanel(final String panelId) {
final MultilevelPanel mlp = new MultilevelPanel(panelId);
mlp.setFirstLevel(new ReportDirectoryPanel(mlp, getPageReference()) {
private static final long serialVersionUID = -2195387360323687302L;
@Override
protected void viewTask(final ReportTO reportTO, final AjaxRequestTarget target) {
mlp.next(new StringResourceModel("report.view", this, new Model<>(reportTO)).getObject(), new ReportExecutionDetails(reportTO, getPageReference()), target);
}
});
return mlp;
}
});
tabs.add(new AbstractTab(new ResourceModel("report.templates")) {
private static final long serialVersionUID = -6815067322125799251L;
@Override
public Panel getPanel(final String panelId) {
return new ReportTemplateDirectoryPanel(panelId, getPageReference());
}
});
return tabs;
}
Aggregations