Package org.odlabs.wiquery.ui.datepicker

Examples of org.odlabs.wiquery.ui.datepicker.DateOption


    // Range date picker
    final DatePicker<String> rangeDatePicker = new DatePicker<String>("rangeDatePicker", rangeDateModel);
    //  >  Min date
    Calendar thirtyDaysAgo = Calendar.getInstance();
    thirtyDaysAgo.add(Calendar.DAY_OF_MONTH, -30);
    rangeDatePicker.setMinDate(new DateOption(thirtyDaysAgo.getTime()));
   
    //  >  Max date
    Calendar thirtyDaysFromNow = Calendar.getInstance();
    thirtyDaysFromNow.add(Calendar.DAY_OF_MONTH, 30);
    rangeDatePicker.setMaxDate(new DateOption(thirtyDaysFromNow.getTime()));
   
    //  >  Label
    rangeDatePicker.setLabel(Model.of("Min/max"));
    form.add(rangeDatePicker);
   
View Full Code Here


   * Set the culture ID
   * @param displayDate
   * @return the current instance
   */
  public WijCalendar setDisplayDate(Date displayDate) {
    getOptions().put("displayDate", new DateOption(displayDate));
    return this;
  }
View Full Code Here

   * Set the maximum date to display
   * @param maxDate
   * @return the current instance
   */
  public WijCalendar setMaxDate(Date maxDate) {
    getOptions().put("maxDate", new DateOption(maxDate));
    return this;
  }
View Full Code Here

   * Set the minimum date to display
   * @param minDate
   * @return the current instance
   */
  public WijCalendar setMinDate(Date minDate) {
    getOptions().put("minDate", new DateOption(minDate));
    return this;
  }
View Full Code Here

TOP

Related Classes of org.odlabs.wiquery.ui.datepicker.DateOption

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.