code: public static CmsConfirmationDialog show(
          String title,
          String message,
          final Runnable okAction,
          final Runnable cancelAction) {
  
          final Window window = CmsBasicDialog.prepareWindow();
          window.setCaption(title);
          CmsConfirmationDialog dialog = new CmsConfirmationDialog(message, new Runnable() {
  
              public void run() {
  
                  window.close();
                  okAction.run();
              }
          }, new Runnable() {
  
              public void run() {
  
                  if (cancelAction != null) {
                      cancelAction.run();
                  }
                  window.close();
              }
          });
          window.setContent(dialog);
          UI.getCurrent().addWindow(window);
          return dialog;
      }
docs: Shows the confirmation dialog in a window.<p>
  
  @param title the window title
  @param message the message to display in the dialog
  @param okAction the action to execute when the user clicks OK
  @param cancelAction the action for the cancel case
  
  @return the dialog instance