Search in sources :

Example 11 with SingleContainerPanel

use of com.evolveum.midpoint.gui.impl.prism.panel.SingleContainerPanel in project midpoint by Evolveum.

the class FocusActivationPanel method initLayout.

@Override
protected void initLayout() {
    SingleContainerPanel panel = new SingleContainerPanel<>(ID_PANEL, PrismContainerWrapperModel.fromContainerWrapper(getObjectWrapperModel(), FocusType.F_ACTIVATION), PasswordType.COMPLEX_TYPE);
    add(panel);
}
Also used : SingleContainerPanel(com.evolveum.midpoint.gui.impl.prism.panel.SingleContainerPanel)

Example 12 with SingleContainerPanel

use of com.evolveum.midpoint.gui.impl.prism.panel.SingleContainerPanel in project midpoint by Evolveum.

the class ObjectCollectionOptionPanel method initLayout.

@Override
protected void initLayout() {
    SingleContainerPanel panel = new SingleContainerPanel<>(ID_PANEL, PrismContainerWrapperModel.fromContainerWrapper(getObjectWrapperModel(), ObjectCollectionType.F_GET_OPTIONS), SelectorQualifiedGetOptionsType.COMPLEX_TYPE);
    add(panel);
}
Also used : SingleContainerPanel(com.evolveum.midpoint.gui.impl.prism.panel.SingleContainerPanel)

Example 13 with SingleContainerPanel

use of com.evolveum.midpoint.gui.impl.prism.panel.SingleContainerPanel in project midpoint by Evolveum.

the class BaseCollectionPanel method initLayout.

@Override
protected void initLayout() {
    SingleContainerPanel panel = new SingleContainerPanel<CollectionRefSpecificationType>(ID_PANEL, createModel(getObjectWrapperModel(), ObjectCollectionType.F_BASE_COLLECTION), CollectionRefSpecificationType.COMPLEX_TYPE) {

        private static final long serialVersionUID = 1L;

        @Override
        protected ItemVisibility getVisibility(ItemWrapper itemWrapper) {
            if (ItemPath.create(ObjectCollectionType.F_BASE_COLLECTION, CollectionRefSpecificationType.F_BASE_COLLECTION_REF).isSuperPathOrEquivalent(itemWrapper.getPath())) {
                return ItemVisibility.HIDDEN;
            }
            return ItemVisibility.AUTO;
        }
    };
    add(panel);
}
Also used : ItemWrapper(com.evolveum.midpoint.gui.api.prism.wrapper.ItemWrapper) SingleContainerPanel(com.evolveum.midpoint.gui.impl.prism.panel.SingleContainerPanel)

Example 14 with SingleContainerPanel

use of com.evolveum.midpoint.gui.impl.prism.panel.SingleContainerPanel in project midpoint by Evolveum.

the class ObjectCollectionDomainPanel method initLayout.

@Override
protected void initLayout() {
    SingleContainerPanel panel = new SingleContainerPanel<>(ID_PANEL, PrismContainerWrapperModel.fromContainerWrapper(getObjectWrapperModel(), ObjectCollectionType.F_DOMAIN), CollectionRefSpecificationType.COMPLEX_TYPE);
    add(panel);
}
Also used : SingleContainerPanel(com.evolveum.midpoint.gui.impl.prism.panel.SingleContainerPanel)

Example 15 with SingleContainerPanel

use of com.evolveum.midpoint.gui.impl.prism.panel.SingleContainerPanel in project midpoint by Evolveum.

the class ReportMainPanel method createTabsForDashboardReports.

private List<ITab> createTabsForDashboardReports(PageAdminObjectDetails<ReportType> parentPage) {
    List<ITab> tabs = new ArrayList<>();
    tabs.add(new PanelTab(parentPage.createStringResource("DashboardReportEngineConfigurationType.view")) {

        @Override
        public WebMarkupContainer createPanel(String panelId) {
            return new SingleContainerPanel(panelId, PrismContainerWrapperModel.fromContainerWrapper(getObjectModel(), ItemPath.create(ReportType.F_DASHBOARD, DashboardReportEngineConfigurationType.F_VIEW)), GuiObjectListViewType.COMPLEX_TYPE);
        }

        @Override
        public boolean isVisible() {
            return hasDefinitionFor(ItemPath.create(ReportType.F_DASHBOARD, DashboardReportEngineConfigurationType.F_VIEW));
        }
    });
    return tabs;
}
Also used : PanelTab(com.evolveum.midpoint.gui.api.component.tabs.PanelTab) ArrayList(java.util.ArrayList) SingleContainerPanel(com.evolveum.midpoint.gui.impl.prism.panel.SingleContainerPanel) ITab(org.apache.wicket.extensions.markup.html.tabs.ITab) WebMarkupContainer(org.apache.wicket.markup.html.WebMarkupContainer)

Aggregations

SingleContainerPanel (com.evolveum.midpoint.gui.impl.prism.panel.SingleContainerPanel)25 ItemWrapper (com.evolveum.midpoint.gui.api.prism.wrapper.ItemWrapper)7 ItemPath (com.evolveum.midpoint.prism.path.ItemPath)5 PanelTab (com.evolveum.midpoint.gui.api.component.tabs.PanelTab)4 ItemVisibility (com.evolveum.midpoint.web.component.prism.ItemVisibility)3 ArrayList (java.util.ArrayList)3 QName (javax.xml.namespace.QName)3 ITab (org.apache.wicket.extensions.markup.html.tabs.ITab)3 WebMarkupContainer (org.apache.wicket.markup.html.WebMarkupContainer)3 RepeatingView (org.apache.wicket.markup.repeater.RepeatingView)2 DisplayNamePanel (com.evolveum.midpoint.gui.api.component.DisplayNamePanel)1 ItemEditabilityHandler (com.evolveum.midpoint.gui.api.prism.wrapper.ItemEditabilityHandler)1 PrismContainerWrapper (com.evolveum.midpoint.gui.api.prism.wrapper.PrismContainerWrapper)1 WebComponentUtil (com.evolveum.midpoint.gui.api.util.WebComponentUtil)1 BasicMultivalueContainerListPanel (com.evolveum.midpoint.gui.impl.component.BasicMultivalueContainerListPanel)1 MultivalueContainerDetailsPanel (com.evolveum.midpoint.gui.impl.component.MultivalueContainerDetailsPanel)1 AbstractObjectMainPanel (com.evolveum.midpoint.gui.impl.page.admin.AbstractObjectMainPanel)1 TaskDetailsModel (com.evolveum.midpoint.gui.impl.page.admin.task.TaskDetailsModel)1 ResourceAttributePanel (com.evolveum.midpoint.gui.impl.prism.panel.ResourceAttributePanel)1 SchemaException (com.evolveum.midpoint.util.exception.SchemaException)1