Search in sources :

Example 1 with PrismObjectPanel

use of com.evolveum.midpoint.web.component.prism.PrismObjectPanel in project midpoint by Evolveum.

the class FocusDetailsTabPanel method initLayout.

private void initLayout() {
    PrismObjectPanel<F> panel = new PrismObjectPanel<F>(ID_FOCUS_FORM, getObjectWrapperModel(), new PackageResourceReference(ImgResources.class, ImgResources.USER_PRISM), getMainForm(), getPageBase());
    add(panel);
}
Also used : ImgResources(com.evolveum.midpoint.web.resource.img.ImgResources) PackageResourceReference(org.apache.wicket.request.resource.PackageResourceReference) PrismObjectPanel(com.evolveum.midpoint.web.component.prism.PrismObjectPanel)

Example 2 with PrismObjectPanel

use of com.evolveum.midpoint.web.component.prism.PrismObjectPanel in project midpoint by Evolveum.

the class PageAccount method initLayout.

private void initLayout() {
    Form mainForm = new Form("mainForm");
    mainForm.setMultiPart(true);
    add(mainForm);
    WebMarkupContainer protectedMessage = new WebMarkupContainer(ID_PROTECTED_MESSAGE);
    protectedMessage.add(new VisibleEnableBehaviour() {

        @Override
        public boolean isVisible() {
            ObjectWrapper wrapper = accountModel.getObject();
            return wrapper.isProtectedAccount();
        }
    });
    mainForm.add(protectedMessage);
    PrismObjectPanel<ShadowType> userForm = new PrismObjectPanel<ShadowType>("account", accountModel, new PackageResourceReference(ImgResources.class, ImgResources.HDD_PRISM), mainForm, this);
    mainForm.add(userForm);
    initButtons(mainForm);
}
Also used : ImgResources(com.evolveum.midpoint.web.resource.img.ImgResources) Form(org.apache.wicket.markup.html.form.Form) PackageResourceReference(org.apache.wicket.request.resource.PackageResourceReference) ShadowType(com.evolveum.midpoint.xml.ns._public.common.common_3.ShadowType) ObjectWrapper(com.evolveum.midpoint.web.component.prism.ObjectWrapper) PrismObjectPanel(com.evolveum.midpoint.web.component.prism.PrismObjectPanel) VisibleEnableBehaviour(com.evolveum.midpoint.web.component.util.VisibleEnableBehaviour) WebMarkupContainer(org.apache.wicket.markup.html.WebMarkupContainer)

Aggregations

PrismObjectPanel (com.evolveum.midpoint.web.component.prism.PrismObjectPanel)2 ImgResources (com.evolveum.midpoint.web.resource.img.ImgResources)2 PackageResourceReference (org.apache.wicket.request.resource.PackageResourceReference)2 ObjectWrapper (com.evolveum.midpoint.web.component.prism.ObjectWrapper)1 VisibleEnableBehaviour (com.evolveum.midpoint.web.component.util.VisibleEnableBehaviour)1 ShadowType (com.evolveum.midpoint.xml.ns._public.common.common_3.ShadowType)1 WebMarkupContainer (org.apache.wicket.markup.html.WebMarkupContainer)1 Form (org.apache.wicket.markup.html.form.Form)1