use of com.evolveum.midpoint.web.component.data.TablePanel in project midpoint by Evolveum.
the class TaskErrorsTabPanel method initLayout.
private void initLayout(final IModel<TaskDto> taskDtoModel, PageBase pageBase) {
ObjectDataProvider<TaskErrorDto, ObjectType> provider = new ObjectDataProvider<TaskErrorDto, ObjectType>(TaskErrorsTabPanel.this, ObjectType.class) {
private static final long serialVersionUID = 1L;
@Override
public TaskErrorDto createDataObjectWrapper(PrismObject<ObjectType> obj) {
return convertToTaskErrorDto(obj.asObjectable(), taskDtoModel);
}
@Override
public void setQuery(ObjectQuery query) {
super.setQuery(query);
}
@Override
public ObjectQuery getQuery() {
return createContentQuery(taskDtoModel.getObject().getOid(), pageBase);
}
};
TablePanel resultTablePanel = new TablePanel<>(ID_TASK_ERRORS, provider, initColumns());
resultTablePanel.setStyle("padding-top: 0px;");
resultTablePanel.setShowPaging(false);
resultTablePanel.setOutputMarkupId(true);
add(resultTablePanel);
}
Aggregations