Search in sources :

Example 1 with ReportTemplateDirectoryPanel

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;
}
Also used : ReportDirectoryPanel(org.apache.syncope.client.console.reports.ReportDirectoryPanel) ArrayList(java.util.ArrayList) ReportTO(org.apache.syncope.common.lib.to.ReportTO) ReportExecutionDetails(org.apache.syncope.client.console.reports.ReportExecutionDetails) ITab(org.apache.wicket.extensions.markup.html.tabs.ITab) AjaxRequestTarget(org.apache.wicket.ajax.AjaxRequestTarget) ReportDirectoryPanel(org.apache.syncope.client.console.reports.ReportDirectoryPanel) AjaxBootstrapTabbedPanel(de.agilecoders.wicket.core.markup.html.bootstrap.tabs.AjaxBootstrapTabbedPanel) Panel(org.apache.wicket.markup.html.panel.Panel) MultilevelPanel(org.apache.syncope.client.console.panels.MultilevelPanel) ReportTemplateDirectoryPanel(org.apache.syncope.client.console.reports.ReportTemplateDirectoryPanel) MultilevelPanel(org.apache.syncope.client.console.panels.MultilevelPanel) AbstractTab(org.apache.wicket.extensions.markup.html.tabs.AbstractTab) StringResourceModel(org.apache.wicket.model.StringResourceModel) ResourceModel(org.apache.wicket.model.ResourceModel) ReportTemplateDirectoryPanel(org.apache.syncope.client.console.reports.ReportTemplateDirectoryPanel) StringResourceModel(org.apache.wicket.model.StringResourceModel)

Aggregations

AjaxBootstrapTabbedPanel (de.agilecoders.wicket.core.markup.html.bootstrap.tabs.AjaxBootstrapTabbedPanel)1 ArrayList (java.util.ArrayList)1 MultilevelPanel (org.apache.syncope.client.console.panels.MultilevelPanel)1 ReportDirectoryPanel (org.apache.syncope.client.console.reports.ReportDirectoryPanel)1 ReportExecutionDetails (org.apache.syncope.client.console.reports.ReportExecutionDetails)1 ReportTemplateDirectoryPanel (org.apache.syncope.client.console.reports.ReportTemplateDirectoryPanel)1 ReportTO (org.apache.syncope.common.lib.to.ReportTO)1 AjaxRequestTarget (org.apache.wicket.ajax.AjaxRequestTarget)1 AbstractTab (org.apache.wicket.extensions.markup.html.tabs.AbstractTab)1 ITab (org.apache.wicket.extensions.markup.html.tabs.ITab)1 Panel (org.apache.wicket.markup.html.panel.Panel)1 ResourceModel (org.apache.wicket.model.ResourceModel)1 StringResourceModel (org.apache.wicket.model.StringResourceModel)1