Examples of contextPut()


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

   
    // add configured property handlers and the homepage config
    // do the looping in the velocity context
    List<UserPropertyHandler> userPropertyHandlers = um.getUserPropertyHandlersFor(usageIdentifyer, false);
    myContent.contextPut("userPropertyHandlers", userPropertyHandlers);
    myContent.contextPut("homepageConfig", hpc);   
   
    Controller dpc = new DisplayPortraitController(ureq, getWindowControl(), identity, true, false);
    listenTo(dpc); // auto dispose
    myContent.put("image", dpc.getInitialComponent());
    putInitialPanel(myContent);
View Full Code Here

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

        // Lazy initialize the notification subscription controller when the
        // user clicks the tab the first time
        else if (tabbedEvent.getNewComponent() == rssPanel && rssPanel.getContent() == null) {
          VelocityContainer notificationsRssVC = createVelocityContainer("notificationsRSS");
          String rssLink = RSSUtil.getPersonalRssLink(ureq);
          notificationsRssVC.contextPut("rssLink", rssLink);
          User user = subscriberIdentity.getUser();
          String fullName = user.getProperty(UserConstants.FIRSTNAME, getLocale()) + " " + user.getProperty(UserConstants.LASTNAME, getLocale());
          notificationsRssVC.contextPut("fullName", fullName);
          rssPanel.setContent(notificationsRssVC);
        }
View Full Code Here

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

          VelocityContainer notificationsRssVC = createVelocityContainer("notificationsRSS");
          String rssLink = RSSUtil.getPersonalRssLink(ureq);
          notificationsRssVC.contextPut("rssLink", rssLink);
          User user = subscriberIdentity.getUser();
          String fullName = user.getProperty(UserConstants.FIRSTNAME, getLocale()) + " " + user.getProperty(UserConstants.LASTNAME, getLocale());
          notificationsRssVC.contextPut("fullName", fullName);
          rssPanel.setContent(notificationsRssVC);
        }
      }
    }
  }
View Full Code Here

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

      listenTo(layoutCtr);
      windowStack.push(layoutCtr.getInitialComponent());
     
      container.put("guidemo.window.control.push", pushButton);
      container.put("guidemo.window.control.pop", popButton);
      container.contextPut("stack", getStackHTMLRepresentation());
      getWindowControl().pushToMainArea(container);
    }
    else if (source == popButton){
      if (windowStack.isEmpty()) {
        fireEvent(ureq, Event.DONE_EVENT);
View Full Code Here

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

    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

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

  protected ItemController(UserRequest ureq, WindowControl wControl, Item item, Feed feed, FeedViewHelper helper, FeedUIFactory uiFactory,
      FeedSecurityCallback callback, Link editButton, Link deleteButton) {
    super(ureq, wControl);
    setTranslator(uiFactory.getTranslator());
    VelocityContainer vcItem = uiFactory.createItemVelocityContainer(this);
    vcItem.contextPut("item", item);
    vcItem.contextPut("feed", feed);
    vcItem.contextPut("helper", helper);
    vcItem.contextPut("callback", callback);
    if (feed.isInternal()) {
      if (editButton != null) vcItem.put("editButton", editButton);
View Full Code Here

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

      FeedSecurityCallback callback, Link editButton, Link deleteButton) {
    super(ureq, wControl);
    setTranslator(uiFactory.getTranslator());
    VelocityContainer vcItem = uiFactory.createItemVelocityContainer(this);
    vcItem.contextPut("item", item);
    vcItem.contextPut("feed", feed);
    vcItem.contextPut("helper", helper);
    vcItem.contextPut("callback", callback);
    if (feed.isInternal()) {
      if (editButton != null) vcItem.put("editButton", editButton);
      if (deleteButton != null) vcItem.put("deleteButton", deleteButton);
View Full Code Here

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

    super(ureq, wControl);
    setTranslator(uiFactory.getTranslator());
    VelocityContainer vcItem = uiFactory.createItemVelocityContainer(this);
    vcItem.contextPut("item", item);
    vcItem.contextPut("feed", feed);
    vcItem.contextPut("helper", helper);
    vcItem.contextPut("callback", callback);
    if (feed.isInternal()) {
      if (editButton != null) vcItem.put("editButton", editButton);
      if (deleteButton != null) vcItem.put("deleteButton", deleteButton);
    }
View Full Code Here

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

    setTranslator(uiFactory.getTranslator());
    VelocityContainer vcItem = uiFactory.createItemVelocityContainer(this);
    vcItem.contextPut("item", item);
    vcItem.contextPut("feed", feed);
    vcItem.contextPut("helper", helper);
    vcItem.contextPut("callback", callback);
    if (feed.isInternal()) {
      if (editButton != null) vcItem.put("editButton", editButton);
      if (deleteButton != null) vcItem.put("deleteButton", deleteButton);
    }
    backLink = LinkFactory.createLinkBack(vcItem, this);
View Full Code Here

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

      if (deleteButton != null) vcItem.put("deleteButton", deleteButton);
    }
    backLink = LinkFactory.createLinkBack(vcItem, this);
    // Add static path for resource delivery and js player for media
    String baseStaticPath = ClassPathStaticDispatcher.getInstance().getMapperBasePath(RSSFeed.class);
    vcItem.contextPut("baseStaticPath", baseStaticPath);
    // Add date component
    if(item.getDate() != null) {
      DateComponentFactory.createDateComponentWithYear("dateComp", item.getDate(), vcItem);
    }
    // Add rating and commenting controller - only when configured
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.