Package org.olat.core.gui.components.form.flexible.impl.elements

Examples of org.olat.core.gui.components.form.flexible.impl.elements.TextElementImpl


    formLayout.add(ste);
    return ste;
  }
 
  public TextElement addInlineTextElement(String name, String value, FormItemContainer formLayout, FormBasicController listener) {
    TextElement ie = new TextElementImpl(name, value, TextElementImpl.HTML_INPUT_TYPE_TEXT, true);
    ie.addActionListener(listener, FormEvent.ONCLICK);
    if(listener != null){
      formLayout.add(ie);
    }
    return ie;
  }
View Full Code Here


   * @param formLayout
   * @return
   */
  public TextElement addTextElement(String name, final String i18nLabel, final int maxLen, String initialValue,
      FormItemContainer formLayout) {
    TextElement te = new TextElementImpl(name, initialValue);
    te.setNotLongerThanCheck(maxLen, "text.element.error.notlongerthan");
    setLabelIfNotNull(i18nLabel, te);
    te.setMaxLength(maxLen);
    formLayout.add(te);
    return te;
  }
View Full Code Here

    return te;
  }
 
  public TextElement addPasswordElement(String name, final String i18nLabel, final int maxLen, String initialValue,
      FormItemContainer formLayout) {
    TextElement te = new TextElementImpl(name, initialValue,
        TextElementImpl.HTML_INPUT_TYPE_PASSWORD);
    te.setNotLongerThanCheck(maxLen, "text.element.error.notlongerthan");
    setLabelIfNotNull(i18nLabel, te);
    te.setMaxLength(maxLen);
    formLayout.add(te);
    return te;
  }
View Full Code Here

      Settings.setAjaxGloballyEnabled(false);
    }
    String newUserAgent = newuseragent.getValue();
    if(newUserAgent != null && !newUserAgent.equals("")){
      String fieldName = "useragent"+row;
      TextElement te = new TextElementImpl(fieldName, newUserAgent){
        {
          setLabel("form.useragent", null);
          displaySize = 32;
        }
      };
View Full Code Here

TOP

Related Classes of org.olat.core.gui.components.form.flexible.impl.elements.TextElementImpl

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.