Search in sources :

Example 21 with SingleContainerPanel

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

the class TaskActivityPanel method initLayout.

@Override
protected void initLayout() {
    SingleContainerPanel activityDefinitionPanel = new SingleContainerPanel(ID_MAIN_PANEL, getObjectWrapperModel(), getPanelConfiguration()) {

        @Override
        protected ItemVisibility getVisibility(ItemWrapper itemWrapper) {
            if (itemWrapper instanceof PrismContainerWrapper) {
                return ItemVisibility.HIDDEN;
            }
            return super.getVisibility(itemWrapper);
        }
    };
    add(activityDefinitionPanel);
}
Also used : SingleContainerPanel(com.evolveum.midpoint.gui.impl.prism.panel.SingleContainerPanel)

Example 22 with SingleContainerPanel

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

the class TaskControlFlowSpecificationPanel method initLayout.

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

Example 23 with SingleContainerPanel

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

the class RoleManagementContentPanel method initLayout.

@Override
protected void initLayout() {
    SingleContainerPanel panel = new SingleContainerPanel(ID_MAIN_PANEL, PrismContainerWrapperModel.fromContainerWrapper(getObjectWrapperModel(), ItemPath.create(SystemConfigurationType.F_ROLE_MANAGEMENT)), RoleManagementConfigurationType.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 = RoleManagementConfigurationType.F_RELATIONS.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 24 with SingleContainerPanel

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

the class TaskSchedulePanel method initLayout.

@Override
protected void initLayout() {
    SingleContainerPanel activityDefinitionPanel = new SingleContainerPanel(ID_MAIN_PANEL, getObjectWrapperModel(), getPanelConfiguration());
    add(activityDefinitionPanel);
}
Also used : SingleContainerPanel(com.evolveum.midpoint.gui.impl.prism.panel.SingleContainerPanel)

Example 25 with SingleContainerPanel

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

the class TaskTailoringPanel method initLayout.

@Override
protected void initLayout() {
    SingleContainerPanel activityDefinitionPanel = new SingleContainerPanel(ID_MAIN_PANEL, getObjectWrapperModel(), getPanelConfiguration());
    add(activityDefinitionPanel);
}
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