Search in sources :

Example 1 with ConstructionAssociationPanel

use of com.evolveum.midpoint.web.component.assignment.ConstructionAssociationPanel in project midpoint by Evolveum.

the class InducedEntitlementsPanel method getConstructionAssociationPanel.

// @Override
// protected Panel getBasicContainerPanel(String idPanel, IModel<PrismContainerValueWrapper<AssignmentType>> model) {
// return getConstructionAssociationPanel(idPanel, model);
// }
private ConstructionAssociationPanel getConstructionAssociationPanel(String idPanel, IModel<PrismContainerValueWrapper<AssignmentType>> model) {
    IModel<PrismContainerWrapper<ConstructionType>> constructionModel = PrismContainerWrapperModel.fromContainerValueWrapper(model, AssignmentType.F_CONSTRUCTION);
    ConstructionAssociationPanel constructionDetailsPanel = new ConstructionAssociationPanel(idPanel, constructionModel);
    constructionDetailsPanel.setOutputMarkupId(true);
    return constructionDetailsPanel;
}
Also used : ConstructionAssociationPanel(com.evolveum.midpoint.web.component.assignment.ConstructionAssociationPanel) PrismContainerWrapper(com.evolveum.midpoint.gui.api.prism.wrapper.PrismContainerWrapper)

Example 2 with ConstructionAssociationPanel

use of com.evolveum.midpoint.web.component.assignment.ConstructionAssociationPanel in project midpoint by Evolveum.

the class AssignmentsDetailsPanel method getConstructionAssociationPanel.

private PanelTab getConstructionAssociationPanel() {
    return new PanelTab(createStringResource("AssignmentPanel.inducedEntitlements")) {

        @Override
        public WebMarkupContainer createPanel(String panelId) {
            IModel<PrismContainerWrapper<ConstructionType>> constructionModel = PrismContainerWrapperModel.fromContainerValueWrapper(getModel(), AssignmentType.F_CONSTRUCTION);
            ConstructionAssociationPanel constructionDetailsPanel = new ConstructionAssociationPanel(panelId, constructionModel);
            constructionDetailsPanel.setOutputMarkupId(true);
            return constructionDetailsPanel;
        }
    };
}
Also used : PanelTab(com.evolveum.midpoint.gui.api.component.tabs.PanelTab) ConstructionAssociationPanel(com.evolveum.midpoint.web.component.assignment.ConstructionAssociationPanel) PrismContainerWrapper(com.evolveum.midpoint.gui.api.prism.wrapper.PrismContainerWrapper)

Aggregations

PrismContainerWrapper (com.evolveum.midpoint.gui.api.prism.wrapper.PrismContainerWrapper)2 ConstructionAssociationPanel (com.evolveum.midpoint.web.component.assignment.ConstructionAssociationPanel)2 PanelTab (com.evolveum.midpoint.gui.api.component.tabs.PanelTab)1