Skip to content

Commit

Permalink
fixed build
Browse files Browse the repository at this point in the history
  • Loading branch information
1azyman committed Jan 30, 2023
1 parent 5c03ed0 commit 79920b6
Showing 1 changed file with 17 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,13 @@

import org.apache.wicket.Component;
import org.apache.wicket.ajax.AjaxRequestTarget;
import org.apache.wicket.behavior.AttributeAppender;
import org.apache.wicket.extensions.markup.html.repeater.data.grid.ICellPopulator;
import org.apache.wicket.extensions.markup.html.repeater.data.table.AbstractColumn;
import org.apache.wicket.extensions.markup.html.repeater.data.table.IColumn;
import org.apache.wicket.extensions.markup.html.repeater.data.table.LambdaColumn;
import org.apache.wicket.markup.html.basic.Label;
import org.apache.wicket.markup.repeater.Item;
import org.apache.wicket.model.IModel;
import org.apache.wicket.request.mapper.parameter.PageParameters;

Expand Down Expand Up @@ -74,14 +79,25 @@ protected IColumn<SelectableBean<SimulationResultType>, String> createCustomExpo
XMLGregorianCalendar end = result.getEndTimestamp();
if (end == null) {
// todo null
return null;
}

return null;
});
}

if (ItemPath.create(SimulationResultType.F_ROOT_TASK_REF, TaskType.F_EXECUTION_STATE).equivalent(path)) {

return new AbstractColumn<>(createStringResource("ProcessedObjectsPanel.duration")) {

@Override
public void populateItem(Item<ICellPopulator<SelectableBean<SimulationResultType>>> item, String id, IModel<SelectableBean<SimulationResultType>> model) {
Label label = new Label(id, () -> {
return "vilko";
});
label.add(AttributeAppender.replace("class", () -> "badge badge-success"));
item.add(label);
}
};
}

return super.createCustomExportableColumn(columnDisplayModel, customColumn, expression);
Expand Down

0 comments on commit 79920b6

Please sign in to comment.