use of com.evolveum.midpoint.gui.api.component.result.OperationResultPopupPanel in project midpoint by Evolveum.
the class ObjectDeltaOperationPanel method showFullResultsPerformed.
private void showFullResultsPerformed(AjaxRequestTarget target) {
OperationResultPopupPanel operationResultPopupPanel = new OperationResultPopupPanel(getPageBase().getMainPopupBodyId(), createOperationResultModel());
getPageBase().showMainPopup(operationResultPopupPanel, target);
}
use of com.evolveum.midpoint.gui.api.component.result.OperationResultPopupPanel in project midpoint by Evolveum.
the class TaskResultPanel method initLayout.
protected void initLayout() {
IModel<List<OperationResult>> resultModel = new ReadOnlyModel<>(this::createOperationResultList);
SelectableListDataProvider<SelectableBean<OperationResult>, OperationResult> provider = new SelectableListDataProvider<>(this, resultModel);
BoxedTablePanel<SelectableBean<OperationResult>> resultTablePanel = new BoxedTablePanel<>(ID_OPERATION_RESULT, provider, initResultColumns());
resultTablePanel.setOutputMarkupId(true);
add(resultTablePanel);
AjaxFallbackLink<Void> showResult = new AjaxFallbackLink<>(ID_SHOW_RESULT) {
private static final long serialVersionUID = 1L;
@Override
public void onClick(Optional<AjaxRequestTarget> optionalTarget) {
if (optionalTarget.isEmpty()) {
LOGGER.warn("Cannot show result in interactive way, request target not present.");
return;
}
AjaxRequestTarget target = optionalTarget.get();
OperationResultPopupPanel body = new OperationResultPopupPanel(getPageBase().getMainPopupBodyId(), new Model<>(getTaskOperationResult()));
body.setOutputMarkupId(true);
getPageBase().showMainPopup(body, target);
}
};
showResult.add(new VisibleBehaviour(() -> getTaskOperationResult() != null));
showResult.setOutputMarkupId(true);
add(showResult);
}
Aggregations