Examples of JSDateChooser


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

   * @param i18nLabel
   * @param formLayout
   * @return
   */ 
  public DateChooser addDateChooser(String name, String i18nLabel, String initValue, FormItemContainer formLayout) {
    JSDateChooser tmp = new JSDateChooser(name, initValue);
    setLabelIfNotNull(i18nLabel, tmp);
    formLayout.add(tmp);
    return tmp;
  }
View Full Code Here

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

     * yes / no switch if a date.time constraint is defined
     */
    dateSubContainer = (FormItemContainer) FormLayoutContainer.createDefaultFormLayout("dateSubContainer", getTranslator());
    formLayout.add(dateSubContainer);

    fromDate = new JSDateChooser("fromDate", validatedCondition.getEasyModeBeginDate()) {
      {
        setLabel("form.easy.bdate", null);
        displaySize = 17;
        setExampleKey("form.easy.example.bdate", null);
        // time is enabled
        setDateChooserTimeEnabled(true);
        // not i18n'ified yet
        setDateChooserDateFormat("%d.%m.%Y %H:%M");
        setCustomDateFormat("dd.MM.yyyy HH:mm");
        displaySize = getExampleDateString().length();
      }
    };
    dateSubContainer.add(fromDate);
   
    toDate = new JSDateChooser("toDate", validatedCondition.getEasyModeEndDate()) {
      {
        setLabel("form.easy.edate", null);
        setExampleKey("form.easy.example.edate", null);
        // time is enabled
        setDateChooserTimeEnabled(true);
View Full Code Here

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

   
    SimpleDateFormat sdf = new SimpleDateFormat(SIMPLE_DATE_FORMAT_PATTERN);
    long defaultWeekRange = numDaysRange_ * 24 * 60 * 60 * 1000;
   
    // from date
    fromDate = new JSDateChooser("fromDate", sdf.format(new Date(new Date().getTime()-defaultWeekRange))) {
      {
        setLabel("datechooser.bdate", null);
        displaySize = 17;
        setExampleKey("datechooser.example.bdate", null);
        // time is enabled
        setDateChooserTimeEnabled(false);
        // not i18n'ified yet
        setDateChooserDateFormat(JS_DATE_FORMAT_PATTERN);
        setCustomDateFormat(SIMPLE_DATE_FORMAT_PATTERN);
        displaySize = getExampleDateString().length();
      }
    };
    formLayout.add(fromDate);
    // end date
    toDate = new JSDateChooser("toDate", sdf.format(new Date())) {
      {
        setLabel("datechooser.edate", null);
        setExampleKey("datechooser.example.edate", null);
        // time is enabled
        setDateChooserTimeEnabled(false);
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.