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