Package org.olat.core.gui.formelements

Examples of org.olat.core.gui.formelements.TextAreaElement


     
      if (fe instanceof WikiMarkupTextAreaElement) {
        WikiMarkupTextAreaElement te = (WikiMarkupTextAreaElement) fe;
        renderWikiMarkupTextAreaElementAutoSize(f, te, sb, false);
      } else if (fe instanceof HTMLTextAreaElement) { // must be checked before TextAreaElement !!
        TextAreaElement te = (TextAreaElement) fe;
        renderTextAreaElement(f, te, sb, true, args);
      } else if (fe instanceof WikiMarkupTextAreaElementAutoSize) {
        TextAreaElement te = (TextAreaElement) fe;
        renderWikiMarkupTextAreaElementAutoSize(f, te, sb, true);
      } else if (fe instanceof TextAreaElement) {
        TextAreaElement te = (TextAreaElement) fe;
        renderTextAreaElement(f, te, sb, false, args);
      } else if (fe instanceof StaticTextElement) {
        StaticTextElement ste = (StaticTextElement) fe;
        renderStaticTextElement(ste, sb);
      } else if (fe instanceof StaticHTMLTextElement) {
View Full Code Here


    addFormElement("tcpfrom", ccSender);
    String value = template.getSubjectTemplate();
    subjectElem = new TextElement("mailtemplateform.subject", value, true, 60, 128);
    addFormElement("subjectElem", subjectElem);

    bodyElem = new TextAreaElement("mailtemplateform.body", 15, 60, template.getBodyTemplate());
    bodyElem.setMandatory(true);
    addFormElement("bodyElem", bodyElem);

    // rules
    VisibilityDependsOnSelectionRule rule;
View Full Code Here

  private PasswordElement addOlatPasswordAuthentication;
  private TextAreaElement tuser;

  public BulkReplayUserFrom(String name, Translator translator) {
    super(name, translator);
    tuser = new TextAreaElement("bulkuserreplay.tt", 10, 60, null);
    addFormElement("bulkuserreplay.tt", tuser);
    isOn = new CheckBoxElement("bulkuserreplay.chkbx.onoff", true);
    addFormElement("isOn", isOn);
   
    addOlatPasswordAuthentication = new PasswordElement("bulkuserreplay.addOlatPasswordAuthentication", 255);
View Full Code Here

      calendarName = new StaticTextElement("cal.form.calendarname", choosenWrapper.getKalendarConfig().getDisplayName());
      addFormElement("cal.form.calendarname", calendarName);
    }
   
    // subject (hide if in readonly mode and only free/busy flag)
    subject = new TextAreaElement("cal.form.subject", 3, 40);
    subject.setMandatory(true);
    if (readOnly && event.getClassification() == KalendarEvent.CLASS_X_FREEBUSY) {
      subject.setValue(getTranslator().translate("cal.form.subject.hidden"));
    } else {
      subject.setValue(event.getSubject());
    }
    addFormElement("cal.form.subject", subject);
   
    // location (hide if in readonly mode and only free/busy flag)
    location = new TextAreaElement("cal.form.location", 3, 40);
    location.setMandatory(false);
    if (readOnly && event.getClassification() == KalendarEvent.CLASS_X_FREEBUSY) {
      location.setValue(getTranslator().translate("cal.form.location.hidden"));
    } else {
      location.setValue(event.getLocation());
View Full Code Here

      }
      if (formFieldAlreadyAdded) tto.setValue(defaultEmailTo);
      else tto = new StaticTextElement(NLS_CONTACT_TO, defaultEmailTo);
    } else {
      //recipients field editable
      if (!formFieldAlreadyAdded) ttoBig = new TextAreaElement(NLS_CONTACT_TO, 2, emailCols);
      //recipients field filled with addresses and even editable
      ttoBig.setValue(defaultEmailTo);
      ttoBig.setMandatory(true);
    }
    if (!formFieldAlreadyAdded) {
View Full Code Here

      }
      //POSTCOND: either tto or ttoBig is != null
      //recipientsAreEditable == false && editable == true:
      //-> copy tto -> ttoBig, set tto = null, remove tto, add ttoBig
      if (editable) {
        ttoBig = new TextAreaElement(NLS_CONTACT_TO, 2, emailCols);
        ttoBig.setValue(tto.getValue());
        tto = null;
        //removeFormElement(tto);
        addFormElement("tto", ttoBig);
      } else {
View Full Code Here

  /**
   * @param defaultBody
   */
  public void setBody(String defaultBody) {
    tbody = new TextAreaElement(NLS_CONTACT_BODY, 10, 60, defaultBody);
    tbody.setReadOnly(readOnly);
    if(!readOnly){
      tbody.setMandatory(true);
    }
    addFormElement("tbody", tbody);
View Full Code Here

  private TextAreaElement wikiContent;
  private TextElement updateComment;

  public WikiEditArticleForm(String name, Translator translator, WikiPage page) {
    super(name, translator);
    wikiContent = new TextAreaElement(null, 20, 110);
    wikiContent.setValue(page.getContent());
    addFormElement("wikiContentElement", wikiContent);
   
    updateComment = new TextElement(null, null, false, 40, 40);
    updateComment.setExample(translate("update.comment"));
View Full Code Here

  public void init() {
    if (isLeaf) tName = new TextElement(NLS_ENTRY_LEAF, 255);
    else tName = new TextElement(NLS_ENTRY_CATEGORY, 255);
    tName.setMandatory(true);
    addFormElement("tname", tName);
    taDescription = new TextAreaElement(NLS_ENTRY_DESCRIPTION, 5, 60);
    taDescription.setMandatory(false);
    addFormElement("taDescription", taDescription);
   
    addSubmitKey("submit");
    setCancelButton();
View Full Code Here

    addFormElement("checkbox", checkbox);
   
    spacer = new SpacerElement();
    addFormElement("spacer", spacer);
   
    textarea = new TextAreaElement("guidemo.form.textarea", 10, 50);
    addFormElement("textarea", textarea);

    WikiMarkupTextAreaElement wiki = new WikiMarkupTextAreaElement("guidemo.form.wiki", 10, 50);
    addFormElement("wiki", wiki);
View Full Code Here

TOP

Related Classes of org.olat.core.gui.formelements.TextAreaElement

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.