Package org.olat.core.gui.control.generic.modal

Examples of org.olat.core.gui.control.generic.modal.DialogBoxController


  protected void event(UserRequest ureq, Controller source, Event event) {
    super.event(ureq, source, event);
    if (source == delAttCtr) {
      if (DialogBoxUIFactory.isYesEvent(event)) { // ok to really delete this
                                                  // attachment
        DialogBoxController dbCtr = (DialogBoxController) source;
        Object userObj = dbCtr.getUserObject();
        if (userObj instanceof VFSLeaf) {
          VFSLeaf file = (VFSLeaf) userObj;
          file.delete();
          showInfo("delete.att.ok");
          createOrUpdateAttachmentListLayout(this.flc);
View Full Code Here


              String message = MailHelper.getMessageForFailedUsersError(ureq.getLocale(), disabledIdentities);
              // add dropbox specific error message
              message += "\n<br />"+translate("conf.mail.error");
              //FIXME:FG:6.2: fix problem in info message, not here
              message += "\n<br />\n<br />"+confirmation.replace("\n", "&#10;").replace("\r", "&#10;").replace("\u2028", "&#10;");
              DialogBoxController noUsersErrorCtr = null;
              noUsersErrorCtr = activateGenericDialog(ureq, title, message, myButtons, noUsersErrorCtr);
              sendMailError = true;
            } else if(result.getReturnCode() > 0) {
              //show error that message can not be sent
              ArrayList<String> myButtons = new ArrayList<String>();
              myButtons.add(translate("back"));
              DialogBoxController noUsersErrorCtr = null;
              String message = translate("conf.mail.error");
              //FIXME:FG:6.2: fix problem in info message, not here
              message += "\n<br />\n<br />"+confirmation.replace("\n", "&#10;").replace("\r", "&#10;").replace("\u2028", "&#10;");
              noUsersErrorCtr = activateGenericDialog(ureq, translate("error.header"), message, myButtons, noUsersErrorCtr);
              sendMailError = true;
View Full Code Here

TOP

Related Classes of org.olat.core.gui.control.generic.modal.DialogBoxController

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.