Search in sources :

Example 6 with SingleContainerPanel

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

the class ObjectTemplateIterationSpecificationPanel method initLayout.

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

Example 7 with SingleContainerPanel

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

the class TaskReportingPanel method initLayout.

@Override
protected void initLayout() {
    SingleContainerPanel activityDefinitionPanel = new SingleContainerPanel(ID_MAIN_PANEL, PrismContainerWrapperModel.fromContainerWrapper(getObjectWrapperModel(), ItemPath.create(TaskType.F_ACTIVITY, ActivityDefinitionType.F_REPORTING)), ActivityReportingDefinitionType.COMPLEX_TYPE);
    add(activityDefinitionPanel);
}
Also used : SingleContainerPanel(com.evolveum.midpoint.gui.impl.prism.panel.SingleContainerPanel)

Example 8 with SingleContainerPanel

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

the class LoggingContentPanel method initLayout.

@Override
protected void initLayout() {
    SingleContainerPanel panel = new SingleContainerPanel(ID_MAIN_PANEL, PrismContainerWrapperModel.fromContainerWrapper(getObjectWrapperModel(), ItemPath.create(SystemConfigurationType.F_LOGGING)), LoggingConfigurationType.COMPLEX_TYPE) {

        @Override
        protected ItemVisibility getVisibility(ItemWrapper itemWrapper) {
            ItemPath path = itemWrapper.getPath();
            if (path == null || path.isEmpty()) {
                return ItemVisibility.AUTO;
            }
            QName name;
            if (path.size() == 1) {
                name = path.firstToQName();
            } else {
                name = path.rest().firstToQName();
            }
            boolean hide = LoggingConfigurationType.F_CLASS_LOGGER.equals(name) || LoggingConfigurationType.F_SUB_SYSTEM_LOGGER.equals(name) || LoggingConfigurationType.F_APPENDER.equals(name);
            return hide ? ItemVisibility.HIDDEN : ItemVisibility.AUTO;
        }
    };
    add(panel);
}
Also used : ItemWrapper(com.evolveum.midpoint.gui.api.prism.wrapper.ItemWrapper) QName(javax.xml.namespace.QName) SingleContainerPanel(com.evolveum.midpoint.gui.impl.prism.panel.SingleContainerPanel) ItemPath(com.evolveum.midpoint.prism.path.ItemPath)

Example 9 with SingleContainerPanel

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

the class AssignmentHolderBasicPanel method initLayout.

@Override
protected void initLayout() {
    // try {
    // ItemPanelSettingsBuilder builder = new ItemPanelSettingsBuilder().visibilityHandler(w -> ItemVisibility.AUTO);
    // builder.headerVisibility(false);
    // 
    // Panel main = getPageBase().initItemPanel(ID_MAIN_PANEL, getModelObject().getTypeName(),
    // PrismContainerWrapperModel.fromContainerWrapper(getModel(), ItemPath.EMPTY_PATH), builder.build());
    // add(main);
    // 
    // RepeatingView view = new RepeatingView(ID_VIRTUAL_PANELS);
    // if (getPanelConfiguration() != null) {
    // List<VirtualContainersSpecificationType> virtualContainers = getPanelConfiguration().getContainer();
    // for (VirtualContainersSpecificationType virtualContainer : virtualContainers) {
    // PrismContainerWrapperModel virtualContainerModel = PrismContainerWrapperModel.fromContainerWrapper(getModel(), virtualContainer.getIdentifier());
    // Panel virtualPanel = new PrismContainerPanel<>(view.newChildId(), virtualContainerModel, builder.build());
    // view.add(virtualPanel);
    // }
    // 
    // }
    // add(view);
    SingleContainerPanel panel = new SingleContainerPanel(ID_MAIN_PANEL, getObjectWrapperModel(), getPanelConfiguration());
    add(panel);
// } catch (SchemaException e) {
// LOGGER.error("Could not create focus details panel. Reason: {}", e.getMessage(), e);
// }
}
Also used : SingleContainerPanel(com.evolveum.midpoint.gui.impl.prism.panel.SingleContainerPanel)

Example 10 with SingleContainerPanel

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

the class FocusPasswordPanel method initLayout.

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

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