Search in sources :

Example 16 with DisplayNamePanel

use of com.evolveum.midpoint.gui.api.component.DisplayNamePanel in project midpoint by Evolveum.

the class CustomTransportDetailsPanel method createDisplayNamePanel.

@Override
protected DisplayNamePanel<CustomTransportConfigurationType> createDisplayNamePanel(String displayNamePanelId) {
    // so far no display name panel needed
    DisplayNamePanel d = new DisplayNamePanel<>(displayNamePanelId, Model.of(getModelObject().getRealValue())) {

        @Override
        protected IModel<String> createHeaderModel() {
            return createStringResource("CustomTransportConfigurationType.label");
        }

        @Override
        protected IModel<String> getDescriptionLabelModel() {
            return () -> getModelObject().getName();
        }

        @Override
        protected WebMarkupContainer createTypeImagePanel(String idTypeImage) {
            WebMarkupContainer c = new WebMarkupContainer(idTypeImage);
            c.setVisible(false);
            return c;
        }
    };
    return d;
}
Also used : DisplayNamePanel(com.evolveum.midpoint.gui.api.component.DisplayNamePanel) WebMarkupContainer(org.apache.wicket.markup.html.WebMarkupContainer)

Example 17 with DisplayNamePanel

use of com.evolveum.midpoint.gui.api.component.DisplayNamePanel in project midpoint by Evolveum.

the class ObjectPolicyDetailsPanel method createDisplayNamePanel.

@Override
protected DisplayNamePanel<ObjectPolicyConfigurationType> createDisplayNamePanel(String displayNamePanelId) {
    // so far no display name panel needed
    DisplayNamePanel d = new DisplayNamePanel<>(displayNamePanelId, Model.of(getModelObject().getRealValue())) {

        @Override
        protected IModel<String> createHeaderModel() {
            return createStringResource("ObjectPolicyConfigurationType.label");
        }

        @Override
        protected IModel<String> getDescriptionLabelModel() {
            return () -> {
                ObjectPolicyConfigurationType opc = getModelObject();
                return StringUtils.joinWith("/", opc.getType(), opc.getSubtype());
            };
        }

        @Override
        protected WebMarkupContainer createTypeImagePanel(String idTypeImage) {
            WebMarkupContainer c = new WebMarkupContainer(idTypeImage);
            c.setVisible(false);
            return c;
        }
    };
    return d;
}
Also used : DisplayNamePanel(com.evolveum.midpoint.gui.api.component.DisplayNamePanel) ObjectPolicyConfigurationType(com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectPolicyConfigurationType) WebMarkupContainer(org.apache.wicket.markup.html.WebMarkupContainer)

Example 18 with DisplayNamePanel

use of com.evolveum.midpoint.gui.api.component.DisplayNamePanel in project midpoint by Evolveum.

the class RichHyperlinkDetailsPanel method createDisplayNamePanel.

@Override
protected DisplayNamePanel<RichHyperlinkType> createDisplayNamePanel(String displayNamePanelId) {
    // so far no display name panel needed
    DisplayNamePanel d = new DisplayNamePanel<>(displayNamePanelId, Model.of(getModelObject().getRealValue())) {

        @Override
        protected IModel<String> createHeaderModel() {
            return createStringResource("RichHyperlinkType.label");
        }

        @Override
        protected IModel<String> getDescriptionLabelModel() {
            return () -> getModelObject().getLabel();
        }

        @Override
        protected WebMarkupContainer createTypeImagePanel(String idTypeImage) {
            WebMarkupContainer c = new WebMarkupContainer(idTypeImage);
            c.setVisible(false);
            return c;
        }
    };
    return d;
}
Also used : DisplayNamePanel(com.evolveum.midpoint.gui.api.component.DisplayNamePanel) WebMarkupContainer(org.apache.wicket.markup.html.WebMarkupContainer)

Example 19 with DisplayNamePanel

use of com.evolveum.midpoint.gui.api.component.DisplayNamePanel in project midpoint by Evolveum.

the class MailTransportDetailsPanel method createDisplayNamePanel.

@Override
protected DisplayNamePanel<MailTransportConfigurationType> createDisplayNamePanel(String displayNamePanelId) {
    // so far no display name panel needed
    DisplayNamePanel d = new DisplayNamePanel<>(displayNamePanelId, Model.of(getModelObject().getRealValue())) {

        @Override
        protected IModel<String> createHeaderModel() {
            return createStringResource("MailTransportConfigurationType.label");
        }

        @Override
        protected IModel<String> getDescriptionLabelModel() {
            return () -> getModelObject().getName();
        }

        @Override
        protected WebMarkupContainer createTypeImagePanel(String idTypeImage) {
            WebMarkupContainer c = new WebMarkupContainer(idTypeImage);
            c.setVisible(false);
            return c;
        }
    };
    return d;
}
Also used : DisplayNamePanel(com.evolveum.midpoint.gui.api.component.DisplayNamePanel) WebMarkupContainer(org.apache.wicket.markup.html.WebMarkupContainer)

Example 20 with DisplayNamePanel

use of com.evolveum.midpoint.gui.api.component.DisplayNamePanel in project midpoint by Evolveum.

the class FileTransportDetailsPanel method createDisplayNamePanel.

@Override
protected DisplayNamePanel<FileTransportConfigurationType> createDisplayNamePanel(String displayNamePanelId) {
    // so far no display name panel needed
    DisplayNamePanel d = new DisplayNamePanel<>(displayNamePanelId, Model.of(getModelObject().getRealValue())) {

        @Override
        protected IModel<String> createHeaderModel() {
            return createStringResource("FileTransportConfigurationType.label");
        }

        @Override
        protected IModel<String> getDescriptionLabelModel() {
            return () -> getModelObject().getName();
        }

        @Override
        protected WebMarkupContainer createTypeImagePanel(String idTypeImage) {
            WebMarkupContainer c = new WebMarkupContainer(idTypeImage);
            c.setVisible(false);
            return c;
        }
    };
    return d;
}
Also used : DisplayNamePanel(com.evolveum.midpoint.gui.api.component.DisplayNamePanel) WebMarkupContainer(org.apache.wicket.markup.html.WebMarkupContainer)

Aggregations

DisplayNamePanel (com.evolveum.midpoint.gui.api.component.DisplayNamePanel)21 WebMarkupContainer (org.apache.wicket.markup.html.WebMarkupContainer)20 ItemWrapper (com.evolveum.midpoint.gui.api.prism.wrapper.ItemWrapper)5 MultivalueContainerDetailsPanel (com.evolveum.midpoint.gui.impl.component.MultivalueContainerDetailsPanel)5 ArrayList (java.util.ArrayList)5 PanelTab (com.evolveum.midpoint.gui.api.component.tabs.PanelTab)4 ITab (org.apache.wicket.extensions.markup.html.tabs.ITab)4 PrismContainerWrapper (com.evolveum.midpoint.gui.api.prism.wrapper.PrismContainerWrapper)3 ResourceAttributePanel (com.evolveum.midpoint.gui.impl.prism.panel.ResourceAttributePanel)2 ItemVisibility (com.evolveum.midpoint.web.component.prism.ItemVisibility)2 ReadOnlyModel (com.evolveum.midpoint.gui.api.model.ReadOnlyModel)1 PrismContainerValueWrapper (com.evolveum.midpoint.gui.api.prism.wrapper.PrismContainerValueWrapper)1 MultivalueContainerListPanelWithDetailsPanel (com.evolveum.midpoint.gui.impl.component.MultivalueContainerListPanelWithDetailsPanel)1 PrismPropertyWrapperColumn (com.evolveum.midpoint.gui.impl.component.data.column.PrismPropertyWrapperColumn)1 CompositedIconBuilder (com.evolveum.midpoint.gui.impl.component.icon.CompositedIconBuilder)1 ItemRealValueModel (com.evolveum.midpoint.gui.impl.factory.panel.ItemRealValueModel)1 ItemPath (com.evolveum.midpoint.prism.path.ItemPath)1 CheckBoxHeaderColumn (com.evolveum.midpoint.web.component.data.column.CheckBoxHeaderColumn)1 ColumnMenuAction (com.evolveum.midpoint.web.component.data.column.ColumnMenuAction)1 InlineMenuButtonColumn (com.evolveum.midpoint.web.component.data.column.InlineMenuButtonColumn)1