Package org.olat.core.gui.components.velocity

Examples of org.olat.core.gui.components.velocity.VelocityContainer.contextPut()


      public void run() {
        for (int i=0; i<20; i++) {
          final int j = i;
          wbo.invokeLater(new Runnable(){
            public void run() {
              updateVc.contextPut("msg", ""+j);             
            }
          });
          try {
            Thread.sleep(500);
          } catch (InterruptedException e) {
View Full Code Here


    updateRepositoryEntryList();
    tableCtr.setMultiSelect(true);
   
    VelocityContainer readyToDeleteContent = createVelocityContainer("readyToDelete");
    readyToDeleteContent.put("readyToDelete", tableCtr.getInitialComponent());
    readyToDeleteContent.contextPut("header", translate("ready.to.delete.header",
        Integer.toString(RepositoryDeletionManager.getInstance().getDeleteEmailDuration()) ));
    readyToDeletePanel.setContent(readyToDeleteContent);
   
  }
View Full Code Here

    }
    contactList.addAllIdentites(participants);
    cmsg.addEmailTo(contactList);
    contactCtr = new ContactFormController(ureq, getWindowControl(), false, false, false, false, cmsg);
    contactCtr.addControllerListener(this);
    sendMessageVC.contextPut("title", translate("participants.message"));
    sendMessageVC.put("contactForm", contactCtr.getInitialComponent());
    notificationCmc = new CloseableModalController(getWindowControl(), "close", sendMessageVC);
    notificationCmc.activate();
  }
}
View Full Code Here

    updateGroupList();
    tableCtr.setMultiSelect(true);
    VelocityContainer readyToDeleteContent = createVelocityContainer("readyToDelete");
    readyToDeleteContent.put("readyToDelete", tableCtr.getInitialComponent());
    readyToDeleteContent.contextPut("header", translate("ready.to.delete.header",
        Integer.toString(GroupDeletionManager.getInstance().getDeleteEmailDuration()) ));
    readyToDeletePanel.setContent(readyToDeleteContent);
   
  }
View Full Code Here

   *
   */
  protected void displayInfoPage() {
    if (currentPage != null) currentPage.setFile(null);
    VelocityContainer infoVC = createVelocityContainer("infoPage");
    infoVC.contextPut("infoChapterpage", translate("contentcontroller.infoChapterpage"));
    contentVC.put("content", infoVC);
  }

  /**
   * displays a info page in the "content-area" of the cpEditor
View Full Code Here

   */
  protected void displayNotFoundPage(String requestedPage) {
    currentPage.setFile(null);
    VelocityContainer nfVC = createVelocityContainer("notFoundPage");
    // Don't display the file name. It's too much information.
    nfVC.contextPut("not_found_message", translate("contentcontroller.page.not.found"));
    contentVC.put("content", nfVC);
  }

  /**
   * Displays the editPageEditor
View Full Code Here

    }
  }

  private void showExportOngoing(final String courseTitle) {
    VelocityContainer vcOngoing = createVelocityContainer("courselogs_ongoing");
    vcOngoing.contextPut("body", translate("course.logs.ongoing", courseTitle));
    myPanel.setContent(vcOngoing);

    // initialize polling
    myPanel.put("updatecontrol", new JSAndCSSComponent("intervall", this.getClass(), null, null, false, null, 3000));
  }
View Full Code Here

  protected void showExportFinished() {
    ICourse course = CourseFactory.loadCourse(ores);
    VelocityContainer vcFeedback = createVelocityContainer("courselogs_feedback");
    showFileButton = LinkFactory.createButton("showfile", vcFeedback, this);
    vcFeedback.contextPut("body", translate("course.logs.feedback", course.getCourseTitle()));
    myPanel.setContent(vcFeedback);

    // note: polling can't be switched off unfortunatelly
    //       this is due to the fact that the jsandcsscomponent can only modify
    //       certain parts of the page and it would require a full page refresh
View Full Code Here

    this.body = parsePage(htmlContent);
    // load form now
    initForm(ureq);
    // editor is never locked
    VelocityContainer vc = (VelocityContainer) flc.getComponent();
    vc.contextPut("lock", Boolean.FALSE);
  }
 
  /**
   * @see org.olat.core.gui.components.form.flexible.impl.FormBasicController#doDispose()
   */
 
View Full Code Here

      String lockToken = reverseFileName.substring(0, (reverseFileName.length() < 50 ? reverseFileName.length() : 50));
      // we use reverse string tokens to reduce subtring correlated matches - a proper fix requires refactoring
      this.lock = CoordinatorManager.getCoordinator().getLocker().acquireLock(lockResourceable, ureq.getIdentity(), lockToken);
      VelocityContainer vc = (VelocityContainer) flc.getComponent();
      if (!lock.isSuccess()) {
        vc.contextPut("locked", Boolean.TRUE);
        vc.contextPut("lockOwner", lock.getOwner().getName());
        return;
      } else {
        vc.contextPut("locked", Boolean.FALSE);       
      }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.