Search in sources :

Example 1 with MailTemplateDirectoryPanel

use of org.apache.syncope.client.console.notifications.MailTemplateDirectoryPanel in project syncope by apache.

the class Notifications method buildTabList.

private List<ITab> buildTabList() {
    final List<ITab> tabs = new ArrayList<>();
    tabs.add(new AbstractTab(new ResourceModel("notifications")) {

        private static final long serialVersionUID = -6815067322125799251L;

        @Override
        public Panel getPanel(final String panelId) {
            return new NotificationDirectoryPanel(panelId, getPageReference());
        }
    });
    tabs.add(new AbstractTab(new ResourceModel("notification.templates")) {

        private static final long serialVersionUID = -6815067322125799251L;

        @Override
        public Panel getPanel(final String panelId) {
            return new MailTemplateDirectoryPanel(panelId, getPageReference());
        }
    });
    return tabs;
}
Also used : Panel(org.apache.wicket.markup.html.panel.Panel) NotificationDirectoryPanel(org.apache.syncope.client.console.notifications.NotificationDirectoryPanel) AjaxBootstrapTabbedPanel(de.agilecoders.wicket.core.markup.html.bootstrap.tabs.AjaxBootstrapTabbedPanel) MailTemplateDirectoryPanel(org.apache.syncope.client.console.notifications.MailTemplateDirectoryPanel) MailTemplateDirectoryPanel(org.apache.syncope.client.console.notifications.MailTemplateDirectoryPanel) ArrayList(java.util.ArrayList) AbstractTab(org.apache.wicket.extensions.markup.html.tabs.AbstractTab) ResourceModel(org.apache.wicket.model.ResourceModel) NotificationDirectoryPanel(org.apache.syncope.client.console.notifications.NotificationDirectoryPanel) ITab(org.apache.wicket.extensions.markup.html.tabs.ITab)

Aggregations

AjaxBootstrapTabbedPanel (de.agilecoders.wicket.core.markup.html.bootstrap.tabs.AjaxBootstrapTabbedPanel)1 ArrayList (java.util.ArrayList)1 MailTemplateDirectoryPanel (org.apache.syncope.client.console.notifications.MailTemplateDirectoryPanel)1 NotificationDirectoryPanel (org.apache.syncope.client.console.notifications.NotificationDirectoryPanel)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