Examples of contextPut()


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

    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);
    uifactory.addFormCancelButton("cancel", buttonLayout, ureq, getWindowControl());
View Full Code Here

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

   */
  public static FormLayouter createVerticalLayout(String name, int columns) {
    FormLayoutContainer layout =  FormLayoutContainer.createCustomFormLayout(name+"VERTICAL_CHCKBX", null, VERTICAL_CHCKBX);
    if (columns < 1 || columns > 2)
      throw new AssertException("Currently only 1 or 2 columns are implemented");
    layout.contextPut("columns", columns);
    return layout;
  }

  @Override
  protected Component getFormItemComponent() {
View Full Code Here

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

  @Override
  protected void initForm(FormItemContainer formLayout, Controller listener, UserRequest ureq) {
    if(formLayout instanceof FormLayoutContainer) {
      FormLayoutContainer formLayoutCont = (FormLayoutContainer)formLayout;
      formLayoutCont.contextPut("result", document);
      formLayoutCont.contextPut("id", this.hashCode());
      formLayoutCont.contextPut("formatter", Formatter.getInstance(getLocale()));
    }
    String target = openLinkInNewWindow(ureq) ? "_blank" : "_self";
    flc.contextPut("target", target);
View Full Code Here

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

  @Override
  protected void initForm(FormItemContainer formLayout, Controller listener, UserRequest ureq) {
    if(formLayout instanceof FormLayoutContainer) {
      FormLayoutContainer formLayoutCont = (FormLayoutContainer)formLayout;
      formLayoutCont.contextPut("result", document);
      formLayoutCont.contextPut("id", this.hashCode());
      formLayoutCont.contextPut("formatter", Formatter.getInstance(getLocale()));
    }
    String target = openLinkInNewWindow(ureq) ? "_blank" : "_self";
    flc.contextPut("target", target);
  }
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) {
    if(formLayout instanceof FormLayoutContainer) {
      FormLayoutContainer formLayoutCont = (FormLayoutContainer)formLayout;
      formLayoutCont.contextPut("result", document);
      formLayoutCont.contextPut("id", this.hashCode());
      formLayoutCont.contextPut("formatter", Formatter.getInstance(getLocale()));
    }
    String target = openLinkInNewWindow(ureq) ? "_blank" : "_self";
    flc.contextPut("target", target);
  }
 
View Full Code Here

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

 
  @Override
  protected void initForm(FormItemContainer formLayout, Controller listener, UserRequest ureq) {
    if(formLayout instanceof FormLayoutContainer) {
      FormLayoutContainer formLayoutCont = (FormLayoutContainer)formLayout;
      formLayoutCont.contextPut("result", document);
      formLayoutCont.contextPut("id", this.hashCode());
      formLayoutCont.contextPut("formatter", Formatter.getInstance(getLocale()));
    }
   
    String highlightLabel = document.getHighlightTitle();
View Full Code Here

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

  @Override
  protected void initForm(FormItemContainer formLayout, Controller listener, UserRequest ureq) {
    if(formLayout instanceof FormLayoutContainer) {
      FormLayoutContainer formLayoutCont = (FormLayoutContainer)formLayout;
      formLayoutCont.contextPut("result", document);
      formLayoutCont.contextPut("id", this.hashCode());
      formLayoutCont.contextPut("formatter", Formatter.getInstance(getLocale()));
    }
   
    String highlightLabel = document.getHighlightTitle();
    docHighlightLink = uifactory.addFormLink("open_doc_highlight", highlightLabel, highlightLabel, formLayout, Link.NONTRANSLATED);
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) {
    if(formLayout instanceof FormLayoutContainer) {
      FormLayoutContainer formLayoutCont = (FormLayoutContainer)formLayout;
      formLayoutCont.contextPut("result", document);
      formLayoutCont.contextPut("id", this.hashCode());
      formLayoutCont.contextPut("formatter", Formatter.getInstance(getLocale()));
    }
   
    String highlightLabel = document.getHighlightTitle();
    docHighlightLink = uifactory.addFormLink("open_doc_highlight", highlightLabel, highlightLabel, formLayout, Link.NONTRANSLATED);
    String icon = document.getCssIcon();
View Full Code Here

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

        boolean readOnly = Settings.isReadOnlyDebug();
        vcEditorController = new PlainTextEditorController(ureq, getWindowControl(), vcContentFile, "utf-8", true, true, null);
        vcEditorController.setReadOnly(readOnly);
        vcEditorController.addControllerListener(this);
        VelocityContainer vcWrap = createVelocityContainer("vcWrapper");
        if (readOnly) vcWrap.contextPut("readOnly", Boolean.TRUE);
        vcWrap.put("editor", vcEditorController.getInitialComponent());
        getWindowControl().pushAsModalDialog(DebugHelper.createDebugProtectedWrapper(vcWrap));
      }
    }
  }
View Full Code Here

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

   * @param content the component which is to appear after the title
   * @return a component which first renders the title with h1 tags, and then the content
   */
  public static Component createTitledComponent(String titleKey, String[] args, Translator trans, Component content) {
    VelocityContainer vc = new VelocityContainer("titlewrapper", VELOCITY_ROOT + "/title.html", trans, null);
    vc.contextPut("title", trans.translate(titleKey, args));
    vc.put("content", content);
    return vc;
  }

}
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.