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);
}
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);
}
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);
}
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);
// }
}
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);
}
Aggregations