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);
}
Aggregations