Package org.olat.core.gui.formelements

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


   * @param name the technical name of the component
   * @param cancelbutton if true, a cancelbutton is offered
   */
  public PropertyChangeForm(String name, Translator translator, String initVal) {
    super(name, translator);
    propValue = new TextElement("propValue", initVal, 1024);
    addFormElement("propValue", propValue);
    addSubmitKey("save", "save");
  }
View Full Code Here


    sendMailSwitchElem.select(Boolean.TRUE.toString(), true);
    addFormElement("sendMailSwitchElem", sendMailSwitchElem);
    ccSender = new CheckBoxElement(NLS_CONTACT_SEND_CP_FROM, true);
    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);
View Full Code Here

  /**
   * Initialize the form.
   */
  private void init() {
    login = new TextElement("srf.login", userName , true, 128);
    login.setReadOnly(true);
    addFormElement("srf_login", login);
   
    eMail = new TextElement("srf.email", "", true, 128);
    addFormElement("srf_email", eMail);
    addSubmitKey("save");
    setCancelButton();
  }
View Full Code Here

    // title
    addFormElement("cal.search.title", new TitleElement("cal.search.title"));
   
    // subject (hide if in readonly mode and only free/busy flag)
    subject = new TextElement("cal.search.subject", 40);
    addFormElement("cal.search.subject", subject);
   
    // location (hide if in readonly mode and only free/busy flag)
    location = new TextElement("cal.search.location", 40);
    addFormElement("cal.search.location", location);
   
    // beginPeriod (hide if in readonly mode and only free/busy flag)
    beginPeriod = new DateElement("cal.search.beginPeriod", null, "dd.MM.yyyy");
    beginPeriod.setDateChooserDateFormat("%d.%m.%Y");
View Full Code Here

 
  public CalendarImportUrlForm(String name, Translator translator) {
    super(name, translator);

    // prompt for the calendar name
    calendarUrl = new TextElement("cal.import.url.prompt","",true,70, 200);
    addFormElement("cal.import.url.prompt", calendarUrl);
   
    // submit/cancel buttons
    addSubmitKey("cal.import.calname.submit", SUBMIT_SINGLE);
   
View Full Code Here

    // 2 because: 1 for the '_' which is added between identity and calendar name,
    //        and 1 for fuzzy counting which TextElement seems to do...
    // 7 because: the CalendarManager.TYPE is prepended to the whole thing adding a _
    //            and the max length of TYPE is 6 - hence 7
    // @see jira OLAT-4202
    calendarName = new TextElement("cal.import.calname.prompt", 41-identityLen);
    addFormElement("cal.import.calname.prompt", calendarName);
   
    // submit/cancel buttons
    addSubmitKey("cal.import.calname.submit", SUBMIT_SINGLE);
   
View Full Code Here

    //fetch sender if one, otherwise field is editable
    String defaultEmailFrom = ((emailFromIdentity != null) ? (emailFromIdentity.getUser().getProperty(UserConstants.EMAIL, getLocale())) : (null));
    if (defaultEmailFrom != null || readOnly) {
      tfrom = new StaticTextElement(NLS_CONTACT_FROM, defaultEmailFrom);
    } else {
      tfrom = new TextElement(NLS_CONTACT_FROM, 255);
      tfrom.setMandatory(true);
    }
    addFormElement("tfrom", tfrom);
  }
View Full Code Here

   */
  public void setSubject(final String defaultSubject) {
    if(readOnly){
      tsubject = new StaticTextElement(NLS_CONTACT_SUBJECT, defaultSubject);
    }else{
      tsubject = new TextElement(NLS_CONTACT_SUBJECT, defaultSubject, 255);
      tsubject.setMandatory(true);
    }
    addFormElement("tsubject", tsubject);
  }
View Full Code Here

    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"));
    addFormElement("wikiUpdateComment", updateComment);
   
    addSubmitKey("save", "save");
    addSubmitKey("save.and.close", "save.and.close");
View Full Code Here

  /**
   * init form fields
   */
  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);
View Full Code Here

TOP

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

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.