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

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


        nodeLink.setCustomDisplayText(item.getTitle());
        nodeLink.setCustomEnabledLinkCSS("b_with_small_icon_left o_feed_item_icon o_gotoNode");
        nodeLink.setUserObject(item.getGuid());
      }
    }
    peekviewVC.contextPut("items", items);
    // Add link to show all items (go to node)
    Link allItemsLink = LinkFactory.createLink("peekview.allItemsLink", peekviewVC, this);
    allItemsLink.setCustomEnabledLinkCSS("b_float_right");
    // Add Formatter for proper date formatting
    peekviewVC.contextPut("formatter", Formatter.getInstance(getLocale()));
View Full Code Here


    peekviewVC.contextPut("items", items);
    // Add link to show all items (go to node)
    Link allItemsLink = LinkFactory.createLink("peekview.allItemsLink", peekviewVC, this);
    allItemsLink.setCustomEnabledLinkCSS("b_float_right");
    // Add Formatter for proper date formatting
    peekviewVC.contextPut("formatter", Formatter.getInstance(getLocale()));
    //
    this.putInitialPanel(peekviewVC);
  }

  /**
 
View Full Code Here

    }
    // init reference usage
    // Where is it in use
    String referenceDetails = ReferenceManager.getInstance().getReferencesToSummary(repositoryEntry.getOlatResource(), ureq.getLocale());
    if (referenceDetails != null) {
      infopanelVC.contextPut("referenceDetails", referenceDetails);
    } else {
      infopanelVC.contextRemove("referenceDetails");
    }

    // Number of launches
View Full Code Here

    if (repositoryEntry.getCanLaunch()) {
      numLaunches = String.valueOf(repositoryEntry.getLaunchCounter());
    } else {
      numLaunches = translate("cif.canLaunch.na");
    }
    infopanelVC.contextPut("numLaunches", numLaunches);

    // Number of downloads
    String numDownloads;
    if (repositoryEntry.getCanDownload()) {
      numDownloads = String.valueOf(repositoryEntry.getDownloadCounter());
View Full Code Here

      numDownloads = String.valueOf(repositoryEntry.getDownloadCounter());
    } else {
      numDownloads = translate("cif.canDownload.na");
    }

    infopanelVC.contextPut("numDownloads", numDownloads);

    if (repositoryEntry.getLastUsage() != null) {
      infopanelVC.contextPut("lastUsage", repositoryEntry.getLastUsage());
    } else {
      infopanelVC.contextPut("lastUsage", translate("cif.lastUsage.na"));
View Full Code Here

    }

    infopanelVC.contextPut("numDownloads", numDownloads);

    if (repositoryEntry.getLastUsage() != null) {
      infopanelVC.contextPut("lastUsage", repositoryEntry.getLastUsage());
    } else {
      infopanelVC.contextPut("lastUsage", translate("cif.lastUsage.na"));
    }

    main.put(infopanelVC.getComponentName(), infopanelVC);
View Full Code Here

    infopanelVC.contextPut("numDownloads", numDownloads);

    if (repositoryEntry.getLastUsage() != null) {
      infopanelVC.contextPut("lastUsage", repositoryEntry.getLastUsage());
    } else {
      infopanelVC.contextPut("lastUsage", translate("cif.lastUsage.na"));
    }

    main.put(infopanelVC.getComponentName(), infopanelVC);

    if (groupController != null) groupController.dispose();
View Full Code Here

    }
    contactList.addAllIdentites(participants);
    cmsg.addEmailTo(contactList);
    ContactFormController contactCtr = new ContactFormController(ureq, wControl, false, false, false, false, cmsg);
    contactCtr.addControllerListener(listener);
    sendMessageVC.contextPut("title", trans.translate("participants.message"));
    sendMessageVC.put("contactForm", contactCtr.getInitialComponent());
   
    return sendMessageVC;
  }
 
View Full Code Here

        nodeLink.setUserObject(relPath);       
      } else {
        // hu? don't konw how to work with non-local impls
      }
    }
    peekviewVC.contextPut("leafs", leafs);
    // Add link to show all items (go to node)
    Link allItemsLink = LinkFactory.createLink("peekview.allItemsLink", peekviewVC, this);
    allItemsLink.setCustomEnabledLinkCSS("b_float_right");
    //
    this.putInitialPanel(peekviewVC);
View Full Code Here

    LinkFactory.createButton("link.noop", mainVC, this);
     
    // prepare for polling.
    // create a html fragment
    final VelocityContainer updateVc = createVelocityContainer("update");
    updateVc.contextPut("msg", "0");
    // set it into a panel
    updatePanel.setContent(updateVc);
    appearLater = LinkFactory.createButtonXSmall("appearLater", null, this);
   
    // hold the windowcontrol
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.