use of com.evolveum.midpoint.gui.impl.prism.panel.ShadowPanel in project midpoint by Evolveum.
the class FocusProjectionsTabPanel method getMultivalueContainerDetailsPanel.
private MultivalueContainerDetailsPanel<ShadowType> getMultivalueContainerDetailsPanel(ListItem<PrismContainerValueWrapper<ShadowType>> item) {
MultivalueContainerDetailsPanel<ShadowType> detailsPanel = new MultivalueContainerDetailsPanel<ShadowType>(MultivalueContainerListPanelWithDetailsPanel.ID_ITEM_DETAILS, item.getModel(), false) {
private static final long serialVersionUID = 1L;
@Override
protected DisplayNamePanel<ShadowType> createDisplayNamePanel(String displayNamePanelId) {
IModel<ShadowType> shadowModel = new IModel<ShadowType>() {
@Override
public ShadowType getObject() {
return createShadowType(item.getModel());
}
};
return new ProjectionDisplayNamePanel(displayNamePanelId, shadowModel);
}
@Override
@NotNull
protected List<ITab> createTabs() {
List<ITab> tabs = super.createTabs();
tabs.add(new PanelTab(createStringResource("ShadowType.basic")) {
@Override
public WebMarkupContainer createPanel(String panelId) {
ShadowPanel shadowPanel = new ShadowPanel(panelId, getParentModel(getModel()));
return shadowPanel;
}
});
return tabs;
}
};
return detailsPanel;
}
use of com.evolveum.midpoint.gui.impl.prism.panel.ShadowPanel in project midpoint by Evolveum.
the class ShadowDetailsTabPanel method initLayout.
private void initLayout() {
ShadowPanel shadowPanel = new ShadowPanel(ID_ACCOUNT, (IModel) getObjectWrapperModel());
add(shadowPanel);
}
use of com.evolveum.midpoint.gui.impl.prism.panel.ShadowPanel in project midpoint by Evolveum.
the class FocusProjectionsPanel method getMultivalueContainerDetailsPanel.
private MultivalueContainerDetailsPanel<ShadowType> getMultivalueContainerDetailsPanel(ListItem<PrismContainerValueWrapper<ShadowType>> item) {
MultivalueContainerDetailsPanel<ShadowType> detailsPanel = new MultivalueContainerDetailsPanel<ShadowType>(MultivalueContainerListPanelWithDetailsPanel.ID_ITEM_DETAILS, item.getModel(), false) {
private static final long serialVersionUID = 1L;
@Override
protected DisplayNamePanel<ShadowType> createDisplayNamePanel(String displayNamePanelId) {
IModel<ShadowType> shadowModel = () -> createShadowType(item.getModel());
return new ProjectionDisplayNamePanel(displayNamePanelId, shadowModel);
}
@Override
@NotNull
protected List<ITab> createTabs() {
List<ITab> tabs = super.createTabs();
tabs.add(new PanelTab(createStringResource("ShadowType.basic")) {
@Override
public WebMarkupContainer createPanel(String panelId) {
ContainerPanelConfigurationType config = getBasicShadowPanelConfiguration(getModelObject().getRealValue());
ShadowPanel shadowPanel = new ShadowPanel(panelId, getParentModel(getModel()), config);
return shadowPanel;
}
});
return tabs;
}
};
return detailsPanel;
}
use of com.evolveum.midpoint.gui.impl.prism.panel.ShadowPanel in project midpoint by Evolveum.
the class ShadowDetailsPanel method initLayout.
protected void initLayout() {
ShadowPanel shadowPanel = new ShadowPanel(ID_ACCOUNT, (IModel) getObjectWrapperModel(), getPanelConfiguration());
add(shadowPanel);
}
Aggregations