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

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


  /**
   * @see org.olat.modules.webFeed.ui.FeedUIFactory#createRightColumnVelocityContainer(org.olat.core.gui.control.controller.BasicController)
   */
  public VelocityContainer createRightColumnVelocityContainer(BasicController controller) {
    return new VelocityContainer(VC_RIGHT_NAME, this.getClass(), VC_RIGHT_NAME, translator, controller);
  }
View Full Code Here


   */
  public TunnelController(UserRequest ureq, WindowControl wControl, ModuleConfiguration config) {
    super(wControl);
    this.config = config;
    PackageTranslator trans = new PackageTranslator(PACKAGE, ureq.getLocale());
    main = new VelocityContainer("tucMain", VELOCITY_ROOT + "/index.html", trans, null);
    tuc = new TunnelComponent("tuc", config, ureq);
    main.put("tuc", tuc);
    setInitialComponent(main);
  }
View Full Code Here

  /**
   * @see org.olat.modules.webFeed.FeedUIFactory#getInfoVelocityContainer()
   */
  public VelocityContainer createInfoVelocityContainer(BasicController controller) {
    return new VelocityContainer(VC_INFO_NAME, this.getClass(), VC_INFO_NAME, translator, controller);
  }
View Full Code Here

  /**
   * @see org.olat.modules.webFeed.FeedUIFactory#getInfoVelocityContainer()
   */
  public VelocityContainer createItemsVelocityContainer(BasicController controller) {
    return new VelocityContainer(VC_ITEMS_NAME, this.getClass(), "episodes", translator, controller);
  }
View Full Code Here

  /**
   * @see org.olat.modules.webFeed.ui.FeedUIFactory#createItemVelocityContainer(org.olat.core.gui.control.controller.BasicController)
   */
  public VelocityContainer createItemVelocityContainer(BasicController controller) {
    return new VelocityContainer(VC_ITEM_NAME, this.getClass(), "episode", translator, controller);
  }
View Full Code Here

  /**
   * @see org.olat.modules.webFeed.ui.FeedUIFactory#createRightColumnVelocityContainer(org.olat.core.gui.control.controller.BasicController)
   */
  public VelocityContainer createRightColumnVelocityContainer(BasicController controller) {
    return new VelocityContainer(VC_RIGHT_NAME, this.getClass(), VC_RIGHT_NAME, translator, controller);
  }
View Full Code Here

   * @param supportEmail
   */
  public MessageWindowController(UserRequest ureq, Throwable th, String detailedmessage, String supportEmail) {
    Translator trans = new PackageTranslator(PACKAGE, ureq.getLocale());
    //Formatter formatter = Formatter.getInstance(ureq.getLocale());
    msg = new VelocityContainer("olatmain", VELOCITY_ROOT + "/message.html", trans, this);
           
    Tracing.logWarn(th.getMessage() + " *** User info: " + detailedmessage, th.getClass());
   
    Version v = (Version) CoreSpringFactory.getBean("org.olat.core.Version");
    msg.contextPut("buildversion", v.getVersion());
View Full Code Here

   * @param title The title of this access condition, displayed as header in the surrounding fieldset
   * @return The wrapped condition editor component
   */
  public VelocityContainer getWrappedDefaultAccessConditionVC(String title){
    Translator accessTranslator = new PackageTranslator(PACKAGE_EDITOR, getLocale());
    VelocityContainer defaultAccessConditionView = new VelocityContainer("defaultAccessConditionView", VELOCITY_ROOT + "/defaultaccessedit.html", accessTranslator, null);
    defaultAccessConditionView.put("defaultAccessConditionView", myContent);
    defaultAccessConditionView.contextPut("title", title);
    return defaultAccessConditionView;
  }
View Full Code Here

    }
    ureq.getUserSession().setLocale(locale);
    ureq.getUserSession().putEntry(LocaleNegotiator.NEGOTIATED_LOCALE, locale);
   
    translator = new PackageTranslator(PACKAGE, ureq.getLocale());
    mainContainer = new VelocityContainer("main", VELOCITY_ROOT + "/langchooser.html", translator, this);
 
    languageChooserController = new LanguageChooserController(ureq, wControl, false);
    languageChooserController.addControllerListener(this);
    mainContainer.put("select.language", languageChooserController.getInitialComponent());
    mainContainer.contextPut("languageCode", locale.getLanguage());
View Full Code Here

   * Tools which can be enabled and disabled (so far) through checkboxes.
   *
   * @param ureq
   */
  private VelocityContainer createTabCollabTools(UserRequest ureq) {
    VelocityContainer tmp = createVelocityContainer("tab_bgCollabTools");
    CollaborationTools ctsm = CollaborationToolsFactory.getInstance().getOrCreateCollaborationTools(currBusinessGroup);
    ctc = ctsm.createCollaborationToolsSettingsController(ureq, getWindowControl());
    // we are listening on CollaborationToolsSettingsController events
    // which are just propagated to our attached controllerlistener...
    // e.g. the BusinessGroupMainRunController, updating the MenuTree
    // if a CollaborationToolsSetting has changed... so far this means
    // enabling/disabling a Tool within the tree.
    listenTo(ctc);
    tmp.put("collabTools", ctc.getInitialComponent());
    tmp.contextPut("type", this.currBusinessGroup.getType());
    return tmp;
  }
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.