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

Examples of org.olat.core.gui.components.velocity.VelocityContainer


  public SharedFolderEditorController(OLATResourceable res, UserRequest ureq, WindowControl wControl) {
    super(wControl);
   
    translator = new PackageTranslator(PACKAGE, ureq.getLocale());

    vcEdit = new VelocityContainer("main", VELOCITY_ROOT + "/index.html", translator, this);
    previewButton = LinkFactory.createButtonSmall("command.preview", vcEdit, this);
   
    re = RepositoryManager.getInstance().lookupRepositoryEntry(res, true);
    sharedFolder = SharedFolderManager.getInstance().getNamedSharedFolder(re);
    folderRunController = new FolderRunController(sharedFolder, true, true, ureq, getWindowControl());
View Full Code Here


    trans = new PackageTranslator(PACKAGE, ureq.getLocale());

    // Main component is a velocity container. It has a name choosen by the
    // controller who
    // called this constructor
    myContent = new VelocityContainer("noAccessExplanationComp", VELOCITY_ROOT + "/noAccessExplEdit.html", trans, this);
   
    noAccessExplanationController = new NoAccessExplanationFormController(ureq, wControl, noAccessExplanation);
    listenTo(noAccessExplanationController);
    myContent.put("noAccexplForm", noAccessExplanationController.getInitialComponent());
View Full Code Here

   */
  //o_clusterOK by:se synchronized on MacartneyPortlet class as olatresourceable
  protected MacartneyPortletRunController(UserRequest ureq, WindowControl wControl, Map configuration) {
    super(wControl);
    this.trans = new PackageTranslator(Util.getPackageName(MacartneyPortlet.class), ureq.getLocale());
    this.macartneyVC = new VelocityContainer("macartneyVC", VELOCITY_ROOT + "/macartneyPortlet.html", trans, this);

    if (comicStartDate == 0) {
      CoordinatorManager.getCoordinator().getSyncer().doInSync(
          OresHelper.createOLATResourceableType(MacartneyPortletRunController.class.getSimpleName()),
          new SyncerExecutor() {
View Full Code Here

  public KalendarConfigurationController(List<KalendarRenderWrapper> calendars, UserRequest ureq, WindowControl wControl, boolean insideManager, boolean canUnsubscribe) {
    super(ureq, wControl);
    setTranslator(new PackageTranslator(PACKAGE, ureq.getLocale()));
   
    configVC = new VelocityContainer("calEdit", VELOCITY_ROOT + "/calConfig.html", getTranslator(), this);
    setCalendars(ureq, calendars);
    configVC.contextPut("insideManager", insideManager);
    configVC.contextPut("identity", ureq.getIdentity());
    configVC.contextPut("removeFromPersonalCalendar", Boolean.TRUE);
    putInitialPanel(configVC);
View Full Code Here

    this.qtiPackage = qtiPackage;
    renderInstructions = new RenderInstructions();
    renderInstructions.put(RenderInstructions.KEY_STATICS_PATH, qtiPackage.getMediaBaseURL() + "/");
    renderInstructions.put(RenderInstructions.KEY_LOCALE, translator.getLocale());
    renderInstructions.put(RenderInstructions.KEY_RENDER_TITLE, Boolean.TRUE);
    main = new VelocityContainer("vcItemPreview", VC_ROOT + "/tab_itemPreview.html", translator, this);
    main.contextPut("itemPreview", getQuestionPreview(item));
    mainPanel = new Panel("itemPreviewPanel");
    mainPanel.setContent(main);
    setInitialComponent(mainPanel);
  }
View Full Code Here

    super(wControl);

    this.courseConfig = courseConfig;
    translator = new PackageTranslator(PACKAGE, ureq.getLocale());
   
    myContent = new VelocityContainer("courseSharedFolderTab", VELOCITY_ROOT + "/CourseSharedFolder.html", translator, this);
    changeSFResButton = LinkFactory.createButton("sf.changesfresource", myContent, this);
    unselectSFResButton = LinkFactory.createButton("sf.unselectsfresource", myContent, this);
    selectSFResButton = LinkFactory.createButton("sf.selectsfresource", myContent, this);
   
    String softkey = courseConfig.getSharedFolderSoftkey();
View Full Code Here

  public SearchAllCalendarsController(UserRequest ureq, WindowControl wControl, Translator translator, Collection calendars) {
    super(ureq, wControl, translator);
    this.calendars = calendars;
       
    mainVC = new VelocityContainer("calSearchMain", VELOCITY_ROOT + "/calSearchMain.html", translator, this);
    backLink = LinkFactory.createLinkBack(mainVC, this);
    mainVC.contextPut("displayBackLink", Boolean.FALSE);
    panel = new Panel("panel");
    searchForm = new SearchAllCalendarsForm("calSearch", translator);
    searchForm.addListener(this);
View Full Code Here

   * @param wControl
   */
  protected CalendarPortletRunController(UserRequest ureq, WindowControl wControl) {
    super(wControl);
    trans = new PackageTranslator(Util.getPackageName(CalendarPortletRunController.class), ureq.getLocale());
    calendarVC = new VelocityContainer("calendarVC", VELOCITY_ROOT + "/calendarPortlet.html", trans, this);
    showAllLink = LinkFactory.createLink("calendar.showAll", calendarVC, this);
    ComponentUtil.registerForValidateEvents(calendarVC, this);
   
    Date date = new Date();
    String today = DateFormat.getTimeInstance(DateFormat.MEDIUM, ureq.getLocale()).format(date);
View Full Code Here

    //add currentUser count to toolbox but only if not yet the chatRoom above provides this info
    if ((courseChatManagerCtr == null) || (courseChatManagerCtr != null && courseChatManagerCtr.isLazyCreateChat())) {
      OLATResourceable courseRunOres = OresHelper.createOLATResourceableInstance(RunMainController.ORES_TYPE_COURSE_RUN, course.getResourceableId());
      int cUsers = CoordinatorManager.getCoordinator().getEventBus().getListeningIdentityCntFor(courseRunOres);
      if (cUsers == 0) cUsers = 1;
      VelocityContainer currentUsers = createVelocityContainer("currentUsers");
      currentUsers.contextPut("currentUsers", cUsers);
      currentUserCount = LinkFactory.createCustomLink("currentUsers", "cUsers", "", Link.NONTRANSLATED, currentUsers, this);
      currentUserCount.setCustomDisplayText("&nbsp;&nbsp;&nbsp;&nbsp;"+String.valueOf(cUsers)+" "+getTranslator().translate("participants.in.course"));
      currentUserCount.setCustomEnabledLinkCSS("b_toolbox_link");
      currentUserCount.setTooltip(getTranslator().translate("participants.in.course.desc"), false);
      currentUserCount.setEnabled(false);
View Full Code Here

    // acquire the back-handling, so that (unintended) back-clicks will not throw you out of a test, but shows a message instead.
    getWindowControl().getWindowBackOffice().acquireBackHandling(this);

    iqm = IQManager.getInstance();

    myContent = new VelocityContainer("olatmodiqrun", VELOCITY_ROOT + "/qti.html", translator, this);
   
    // Check if fibautocompl.js and fibautocompl.css exists for enhance FIB autocomplete feature
     Resolver autcompResolver = null;
    if (resolver == null){
      RepositoryEntry re = RepositoryManager.getInstance().lookupRepositoryEntryBySoftkey(repositorySoftkey, true);
View Full Code Here

TOP

Related Classes of org.olat.core.gui.components.velocity.VelocityContainer

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.