Search in sources :

Example 1 with ShadowSummaryPanel

use of com.evolveum.midpoint.web.page.admin.resources.ShadowSummaryPanel in project midpoint by Evolveum.

the class PageAccount method initLayout.

private void initLayout() {
    add(new ShadowSummaryPanel(ID_SUMMARY, Model.of(accountModel.getObject().getObject().asObjectable()), WebComponentUtil.getSummaryPanelSpecification(ShadowType.class, getCompiledGuiProfile())));
    WebMarkupContainer protectedMessage = new WebMarkupContainer(ID_PROTECTED_MESSAGE);
    protectedMessage.add(new VisibleEnableBehaviour() {

        private static final long serialVersionUID = 1L;

        @Override
        public boolean isVisible() {
            ShadowWrapper wrapper = accountModel.getObject();
            return wrapper.isProtected();
        }
    });
    add(protectedMessage);
    MidpointForm mainForm = new MidpointForm(ID_MAIN_FORM);
    mainForm.setMultiPart(true);
    add(mainForm);
    mainForm.add(createTabsPanel(mainForm));
    initButtons(mainForm);
}
Also used : ShadowSummaryPanel(com.evolveum.midpoint.web.page.admin.resources.ShadowSummaryPanel) MidpointForm(com.evolveum.midpoint.web.component.form.MidpointForm) VisibleEnableBehaviour(com.evolveum.midpoint.web.component.util.VisibleEnableBehaviour) ShadowWrapper(com.evolveum.midpoint.gui.api.prism.wrapper.ShadowWrapper) WebMarkupContainer(org.apache.wicket.markup.html.WebMarkupContainer)

Aggregations

ShadowWrapper (com.evolveum.midpoint.gui.api.prism.wrapper.ShadowWrapper)1 MidpointForm (com.evolveum.midpoint.web.component.form.MidpointForm)1 VisibleEnableBehaviour (com.evolveum.midpoint.web.component.util.VisibleEnableBehaviour)1 ShadowSummaryPanel (com.evolveum.midpoint.web.page.admin.resources.ShadowSummaryPanel)1 WebMarkupContainer (org.apache.wicket.markup.html.WebMarkupContainer)1