private void deleteSelectedPerformed( AjaxRequestTarget target, ReportDeleteDialogDto.Operation op, ReportOutputType single) { List<ReportOutputType> selected = getSelectedData(); if (single != null) { selected.clear(); selected.add(single); } if (selected.isEmpty()) { return; } ReportDeleteDialogDto dto = new ReportDeleteDialogDto(op, selected); deleteModel.setObject(dto); getPageBase().showMainPopup(getDeleteDialogPanel(), target); }
private void deleteSelectedPerformed( AjaxRequestTarget target, ReportDeleteDialogDto.Operation op, ReportOutputType single) { List<ReportOutputType> selected = getSelectedData(); if (single != null) { selected.clear(); selected.add(single); } if (selected.isEmpty()) { return; } ReportDeleteDialogDto dto = new ReportDeleteDialogDto(op, selected); deleteModel.setObject(dto); ModalWindow dialog = (ModalWindow) get(ID_CONFIRM_DELETE); dialog.show(target); }