Examples of contextPut()


Examples of org.olat.core.gui.components.form.flexible.impl.FormLayoutContainer.contextPut()

        + "/editSynonym.html");
    formLayout.add(tmpLayout);
    tmpLayout.setLabel("glossary.term.synonym", null);
       
    Collections.sort(glossItemSynonymsToUse);
    tmpLayout.contextPut("glossItemSynonyms", glossItemSynonymsToUse);

    // add input fields with existing synonyms
    synonymTextElementList = new ArrayList<TextElement>(glossItemSynonymsToUse.size());
    for (int synNum = 1; synNum < glossItemSynonymsToUse.size() + 1; synNum++) {
      TextElement tmpSynonymTE = formUIf.addTextElement(SYNONYM_TEXT_ELEMENT + synNum, null, 100, glossItemSynonymsToUse.get(synNum - 1), tmpLayout);
View Full Code Here

Examples of org.olat.core.gui.components.form.flexible.impl.FormLayoutContainer.contextPut()

  protected void initForm(FormItemContainer formLayout, Controller listener, UserRequest ureq) {
    setFormTitle("pwdav.title");
   
    if(formLayout instanceof FormLayoutContainer) {
      FormLayoutContainer layoutContainer = (FormLayoutContainer)formLayout;
      layoutContainer.contextPut("webdavLink", FolderManager.getWebDAVLink());
     
      accessDataFlc = FormLayoutContainer.createDefaultFormLayout("flc_access_data", getTranslator());
      layoutContainer.add(accessDataFlc);
      uifactory.addStaticTextElement("pwdav.username", "pwdav.username", ureq.getIdentity().getName(), accessDataFlc);
View Full Code Here

Examples of org.olat.core.gui.components.form.flexible.impl.FormLayoutContainer.contextPut()

          + "/msg-preview.html");
      uifactory.addSpacerElement("spacer1", formLayout, false);
      formLayout.add(replyMsgLayout);
      replyMsgLayout.setLabel("label.replytomsg", new String[] { replyMessage.getTitle() });
      Identity identity = replyMessage.getCreator();
      replyMsgLayout.contextPut("identity", identity);
      replyMsgLayout.contextPut("messageBody", replyMessage.getBody());
      replyMsgLayout.contextPut("message", replyMessage);
      portraitCtr = new DisplayPortraitController(ureq, getWindowControl(), identity, true, true);
      replyMsgLayout.put("portrait", portraitCtr.getInitialComponent());
    }
View Full Code Here

Examples of org.olat.core.gui.components.form.flexible.impl.FormLayoutContainer.contextPut()

      uifactory.addSpacerElement("spacer1", formLayout, false);
      formLayout.add(replyMsgLayout);
      replyMsgLayout.setLabel("label.replytomsg", new String[] { replyMessage.getTitle() });
      Identity identity = replyMessage.getCreator();
      replyMsgLayout.contextPut("identity", identity);
      replyMsgLayout.contextPut("messageBody", replyMessage.getBody());
      replyMsgLayout.contextPut("message", replyMessage);
      portraitCtr = new DisplayPortraitController(ureq, getWindowControl(), identity, true, true);
      replyMsgLayout.put("portrait", portraitCtr.getInitialComponent());
    }
View Full Code Here

Examples of org.olat.core.gui.components.form.flexible.impl.FormLayoutContainer.contextPut()

      formLayout.add(replyMsgLayout);
      replyMsgLayout.setLabel("label.replytomsg", new String[] { replyMessage.getTitle() });
      Identity identity = replyMessage.getCreator();
      replyMsgLayout.contextPut("identity", identity);
      replyMsgLayout.contextPut("messageBody", replyMessage.getBody());
      replyMsgLayout.contextPut("message", replyMessage);
      portraitCtr = new DisplayPortraitController(ureq, getWindowControl(), identity, true, true);
      replyMsgLayout.put("portrait", portraitCtr.getInitialComponent());
    }

  }
View Full Code Here

Examples of org.olat.core.gui.components.form.flexible.impl.FormLayoutContainer.contextPut()

          + "/attachments-editview.html");
      formLayout.add(tmpLayout);
    } else {
      tmpLayout = (FormLayoutContainer) attachLayout;
    }
    tmpLayout.contextPut("attachments", attachments);
    tmpLayout.contextPut("myself", this);

    // add delete links for each attachment if user is allowed to see them
    int attNr = 1;
    for (Iterator<VFSItem> iterator = attachments.iterator(); iterator.hasNext();) {
View Full Code Here

Examples of org.olat.core.gui.components.form.flexible.impl.FormLayoutContainer.contextPut()

      formLayout.add(tmpLayout);
    } else {
      tmpLayout = (FormLayoutContainer) attachLayout;
    }
    tmpLayout.contextPut("attachments", attachments);
    tmpLayout.contextPut("myself", this);

    // add delete links for each attachment if user is allowed to see them
    int attNr = 1;
    for (Iterator<VFSItem> iterator = attachments.iterator(); iterator.hasNext();) {
      VFSItem tmpFile = iterator.next();
View Full Code Here

Examples of org.olat.core.gui.components.form.flexible.impl.FormLayoutContainer.contextPut()

      setLocale(loc, true);
      ureq.getUserSession().setLocale(loc);
      ureq.getUserSession().putEntry(LocaleNegotiator.NEGOTIATED_LOCALE, loc);
     
      FormLayoutContainer langLayout = (FormLayoutContainer)flc.getFormComponent("langLayout");
      langLayout.contextPut("languageCode", loc.toString());
      langLayout.contextPut("selectLanguage", translate("select.language"));
     
      if(fireStandardEvent) {
        fireEvent(ureq, mue);
      } else {
View Full Code Here

Examples of org.olat.core.gui.components.form.flexible.impl.FormLayoutContainer.contextPut()

      ureq.getUserSession().setLocale(loc);
      ureq.getUserSession().putEntry(LocaleNegotiator.NEGOTIATED_LOCALE, loc);
     
      FormLayoutContainer langLayout = (FormLayoutContainer)flc.getFormComponent("langLayout");
      langLayout.contextPut("languageCode", loc.toString());
      langLayout.contextPut("selectLanguage", translate("select.language"));
     
      if(fireStandardEvent) {
        fireEvent(ureq, mue);
      } else {
        OLATResourceable wrappedLocale = OresHelper.createOLATResourceableType(Locale.class);
View Full Code Here

Examples of org.olat.core.gui.components.form.flexible.impl.FormLayoutContainer.contextPut()

    formLayout.add(langLayout);
    langs = uifactory.addDropdownSingleselect("select.language", langLayout, langKeys, langValues, langCssClasses);
    langs.addActionListener(this, FormEvent.ONCHANGE);
    langs.select(curlang, true);
    Locale loc = I18nManager.getInstance().getLocaleOrDefault(curlang);
    langLayout.contextPut("languageCode", loc.toString());
    langLayout.contextPut("selectLanguage", translate("select.language"));
   
    final FormLayoutContainer buttonLayout = FormLayoutContainer.createButtonLayout("buttonLayout", getTranslator());
    formLayout.add(buttonLayout);
    uifactory.addFormSubmitButton("submit", buttonLayout);
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.