Examples of VelocityContainer


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

    this.restrictedEdit = restrictedEdit;
    this.item = item;
    this.qtiPackage = qtiPackage;
    this.trnsltr = trnsltr;
    main = new VelocityContainer("scitem", VC_ROOT + "/tab_scItem.html", trnsltr, this);
    main.contextPut("question", item.getQuestion());
    main.contextPut("isSurveyMode", qtiPackage.getQTIDocument().isSurvey() ? "true" : "false");
    main.contextPut("isRestrictedEdit", restrictedEdit ? Boolean.TRUE : Boolean.FALSE);
    main.contextPut("mediaBaseURL", qtiPackage.getMediaBaseURL());
    if (item.getQuestion().getType() == Question.TYPE_MC) main.setPage(VC_ROOT + "/tab_mcItem.html");
View Full Code Here

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

  public CalendarColorChooserController(Locale locale, WindowControl wControl, String currentCssSelection) {
    super(wControl);
    translator = new PackageTranslator(PACKAGE, locale);
   
    colorVC = new VelocityContainer("calEdit", VELOCITY_ROOT + "/calColor.html", translator, this);
    cancelButton = LinkFactory.createButton("cancel", colorVC, this);
   
    colorLinks = new HashMap();
    Link greenLink = LinkFactory.createCustomLink("greenLink", "selc", "", Link.NONTRANSLATED, colorVC, this);
    if (currentCssSelection.equals("o_cal_green")){
View Full Code Here

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

    this.restrictedEdit = restrictedEdit;
    this.item = item;
    this.qtiPackage = qtiPackage;
    this.trnsltr = trnsltr;
    main = new VelocityContainer("essayitem", VC_ROOT + "/tab_essayItem.html", trnsltr, this);
    essayQuestion = (EssayQuestion) item.getQuestion();
    main.contextPut("question", essayQuestion);
    main.contextPut("response", essayQuestion.getEssayResponse());
    main.contextPut("mediaBaseURL", qtiPackage.getMediaBaseURL());
    main.contextPut("isRestrictedEdit", restrictedEdit ? Boolean.TRUE : Boolean.FALSE);
View Full Code Here

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

    this.putInitialPanel(layoutCtr.getInitialComponent());
  }

  public void event(UserRequest ureq, Component source, Event event) {
    if (source == pushButton){     
      VelocityContainer container = this.createVelocityContainer("guidemo-pushpop");
      LayoutMain3ColsController layoutCtr = new LayoutMain3ColsController(ureq, getWindowControl(), null, null, container, null);
      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

  public CalendarExportController(Locale locale, WindowControl wControl, String icalFeedLink) {
    super(wControl);
    translator = new PackageTranslator(PACKAGE, locale);
   
    colorVC = new VelocityContainer("calEdit", VELOCITY_ROOT + "/calIcalFeed.html", translator, this);
    colorVC.contextPut("icalFeedLink", icalFeedLink);
   

    setInitialComponent(colorVC);
  }
View Full Code Here

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

*/
public class StatisticMainDescription extends BasicController {

  public StatisticMainDescription(UserRequest ureq, WindowControl wControl) {
    super(ureq, wControl);
    VelocityContainer vc = createVelocityContainer("statistic_index");
    putInitialPanel(vc);
  }
View Full Code Here

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

 
  CalendarImportByUrlController(UserRequest ureq, Locale locale, WindowControl wControl) {
    super(ureq, wControl);
   
    translator = new PackageTranslator(PACKAGE, locale);
    importVC = new VelocityContainer("calmanage", VELOCITY_ROOT + "/calImportByUrl.html", translator, this);
   
    importUrlForm = new CalendarImportUrlForm("calImportName", translator);
    importUrlForm.addListener(this);
   
    panel = new Panel("panel");
View Full Code Here

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

    ControllerCreator cc = demos.get(firstDemo);
    demoController = cc.createController(ureq, getWindowControl());
    contentP.setContent(demoController.getInitialComponent());
   
    sourceP = new Panel("sourceP");
    VelocityContainer sourceVC = createVelocityContainer(firstDemo);
    ShrinkController sc = new ShrinkController(ureq, getWindowControl(), false, sourceVC, "toggle source");
    sourceP.setContent(sc.getInitialComponent());

    content_sourceVC.put("content", mainVC);
    content_sourceVC.put("source", sourceP);
View Full Code Here

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

      //userobject tells which demo to activate
      String uob = (String) sl.getUserObject();
      if (uob != null) {
        ControllerCreator cc = demos.get(uob);
        //update source
        VelocityContainer sourceVC = createVelocityContainer(uob);
        ShrinkController sc = new ShrinkController(ureq, getWindowControl(), false, sourceVC, "toggle source");
        sourceP.setContent(sc.getInitialComponent());
       
        //cleanup former democontroller
        if (demoController != null) demoController.dispose();
View Full Code Here

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

    super(wControl);
    addLoggingResourceable(LoggingResourceable.wrap(ores, OlatResourceableType.genRepoEntry));
    ThreadLocalUserActivityLogger.log(LearningResourceLoggingAction.LEARNING_RESOURCE_OPEN, getClass());
    translator = new PackageTranslator(PACKAGE, ureq.getLocale());

    vcDisplay = new VelocityContainer("main", VELOCITY_ROOT + "/display.html", translator, this);

    VFSItem item = null;
    item = sharedFolder.resolve(INDEXDOTHTML);
    if (item == null) item = sharedFolder.resolve(INDEXDOTHTM);
    if (item == null) item = sharedFolder.resolve(DEFAULTDOTHTML);
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.