Search in sources :

Example 1 with ValuePolicySummaryPanel

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

the class PageValuePolicy method initLayout.

protected void initLayout() {
    // TODO should be used if valuePolicyObject is edited
    ValuePolicySummaryPanel summaryPanel = new ValuePolicySummaryPanel(ID_SUMMARY_PANEL, Model.of(valuePolicyModel.getObject().getObject().asObjectable()), WebComponentUtil.getSummaryPanelSpecification(ValuePolicyType.class, getCompiledGuiProfile()));
    add(summaryPanel);
    MidpointForm mainForm = new MidpointForm(ID_MAIN_FORM);
    add(mainForm);
    // List<ItemPath> itemPath = new ArrayList<>();
    // itemPath.add(ItemPath.EMPTY_PATH);
    // itemPath.add(prismContext.path(ValuePolicyType.F_STRING_POLICY));
    // PrismPanel<ValuePolicyType> valuePolicyForm = new PrismPanel<>(ID_VALUE_POLICY_BASIC_DETAIL, new ContainerWrapperListFromObjectWrapperModel<ValuePolicyType,ValuePolicyType>(valuePolicyModel, itemPath),null, mainForm, null, this);
    // mainForm.add(valuePolicyForm);
    initTabs(mainForm);
    initButtons(mainForm);
}
Also used : ValuePolicyType(com.evolveum.midpoint.xml.ns._public.common.common_3.ValuePolicyType) ValuePolicySummaryPanel(com.evolveum.midpoint.web.page.admin.valuePolicy.component.ValuePolicySummaryPanel) MidpointForm(com.evolveum.midpoint.web.component.form.MidpointForm)

Aggregations

MidpointForm (com.evolveum.midpoint.web.component.form.MidpointForm)1 ValuePolicySummaryPanel (com.evolveum.midpoint.web.page.admin.valuePolicy.component.ValuePolicySummaryPanel)1 ValuePolicyType (com.evolveum.midpoint.xml.ns._public.common.common_3.ValuePolicyType)1