use of com.evolveum.midpoint.web.component.prism.PrismContainerPanel in project midpoint by Evolveum.
the class ConfigurationStep method updateConfigurationTabs.
private void updateConfigurationTabs() {
final com.evolveum.midpoint.web.component.form.Form form = getForm();
TabbedPanel<ITab> tabbedPanel = getConfigurationTabbedPanel();
List<ITab> tabs = tabbedPanel.getTabs().getObject();
tabs.clear();
List<ContainerWrapper> wrappers = configurationPropertiesModel.getObject();
for (final ContainerWrapper wrapper : wrappers) {
String tabName = getString(wrapper.getDisplayName(), null, wrapper.getDisplayName());
tabs.add(new AbstractTab(new Model<>(tabName)) {
@Override
public WebMarkupContainer getPanel(String panelId) {
return new PrismContainerPanel(panelId, new Model<>(wrapper), true, form, parentPage);
}
});
}
int i = tabbedPanel.getSelectedTab();
if (i < 0 || i > tabs.size()) {
i = 0;
}
tabbedPanel.setSelectedTab(i);
}
use of com.evolveum.midpoint.web.component.prism.PrismContainerPanel in project midpoint by Evolveum.
the class GenericHandlerPanel method initLayout.
private void initLayout(final PageTaskEdit parentPage) {
PrismContainerPanel containerPanel = new PrismContainerPanel(ID_CONTAINER, new PropertyModel<>(getModel(), GenericHandlerDto.F_CONTAINER), false, parentPage.getForm(), parentPage);
add(containerPanel);
}
Aggregations