Examples of TextElement


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

    // 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

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

 
  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

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

    // 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

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

    //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

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

   */
  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

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

    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

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

  /**
   * 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

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

    // title
    title = new TitleElement("guidemo.form.title");
    addFormElement("title", title);
   
    // text
    text = new TextElement("guidemo.form.text", 50);
    text.setMandatory(true);
    text.setExample("You may give examples for any form field, whcih is shown below the field.");
    text.setPopupData(new PopupData("textarea", "popup", "guidemo.gorm.popup", 100, 100));
    addFormElement("text", text);
   
    // readonly
    readonly = new TextElement("guidemo.form.readonly", 10);
    readonly.setValue("readonly");
    readonly.setReadOnly(true);
    addFormElement("readonly", readonly);

    // date chooser
    date = new TextElement("guidemo.form.date", 10);
    date.setDateChooserDateFormat("%d.%m.%Y");
    date.setUseDateChooser(true);
    date.setExample("Format: dd.mm.yyyy [e.g. 17.04.2007]");
    addFormElement("date", date);
   
View Full Code Here

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

  /**
   * Initialize form.
   */
  public void init() {
    login = new TextElement("lf.login", "", false, 128);
    login.setSize(20);
    addFormElement("lf_login", login);
   
    pass = new PasswordElement("lf.pass", 20, 50);
    addFormElement("lf_pass", pass);
View Full Code Here

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

  /**
   * Initialize the form.
   */
  private void init() {
    login = new TextElement("srf.login", "", true, 128);
    login.setExample(translate("srf.login.example"));
    addFormElement("srf_login", login);
    addSubmitKey("save", "save");
  }
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.