use of com.evolveum.midpoint.web.component.model.operationStatus.ModelOperationStatusDto in project midpoint by Evolveum.
the class TaskOperationTabPanel method initLayout.
private void initLayout(final IModel<TaskDto> taskDtoModel, PageBase pageBase) {
final PropertyModel<ModelOperationStatusDto> operationStatusModel = new PropertyModel<>(taskDtoModel, TaskDto.F_MODEL_OPERATION_STATUS);
VisibleEnableBehaviour modelOpBehaviour = new VisibleEnableBehaviour() {
@Override
public boolean isVisible() {
return operationStatusModel.getObject() != null;
}
};
ModelOperationStatusPanel panel = new ModelOperationStatusPanel(ID_MODEL_OPERATION_STATUS_PANEL, operationStatusModel);
panel.add(modelOpBehaviour);
add(panel);
}
Aggregations