Exemplo n.º 1
0
  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);
  }
Exemplo n.º 2
0
  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);
  }