Search in sources :

Example 1 with ValuePolicyBasicPanel

use of com.evolveum.midpoint.web.page.admin.valuePolicy.component.ValuePolicyBasicPanel in project midpoint by Evolveum.

the class PageValuePolicy method initTabs.

private void initTabs(MidpointForm mainForm) {
    List<ITab> tabs = new ArrayList<>();
    PageBase baseParameter = this;
    tabs.add(new AbstractTab(createStringResource("PageValuePolicy.basic")) {

        @Override
        public WebMarkupContainer getPanel(String panelId) {
            return new ValuePolicyBasicPanel(panelId, valuePolicyModel);
        }
    });
    // tabs.add(new AbstractTab(createStringResource("PageValuePolicy.stringPolicy")) {
    // @Override
    // public WebMarkupContainer getPanel(String panelId) {
    // return new ValuePolicyStringPoliciesPanel(panelId,mainForm,valuePolicyModel,baseParameter);
    // }
    // });
    TabbedPanel tabPanel = WebComponentUtil.createTabPanel(ID_TAB_PANEL, this, tabs, null);
    mainForm.add(tabPanel);
}
Also used : ArrayList(java.util.ArrayList) ValuePolicyBasicPanel(com.evolveum.midpoint.web.page.admin.valuePolicy.component.ValuePolicyBasicPanel) AbstractTab(org.apache.wicket.extensions.markup.html.tabs.AbstractTab) TabbedPanel(com.evolveum.midpoint.web.component.TabbedPanel) PageBase(com.evolveum.midpoint.gui.api.page.PageBase) ITab(org.apache.wicket.extensions.markup.html.tabs.ITab) WebMarkupContainer(org.apache.wicket.markup.html.WebMarkupContainer)

Aggregations

PageBase (com.evolveum.midpoint.gui.api.page.PageBase)1 TabbedPanel (com.evolveum.midpoint.web.component.TabbedPanel)1 ValuePolicyBasicPanel (com.evolveum.midpoint.web.page.admin.valuePolicy.component.ValuePolicyBasicPanel)1 ArrayList (java.util.ArrayList)1 AbstractTab (org.apache.wicket.extensions.markup.html.tabs.AbstractTab)1 ITab (org.apache.wicket.extensions.markup.html.tabs.ITab)1 WebMarkupContainer (org.apache.wicket.markup.html.WebMarkupContainer)1