Package com.vaadin.ui

Examples of com.vaadin.ui.DateField


   
    // Birthdate
    if (!editable && isDefined(birthDate)) {
      addProfileEntry(aboutLayout, i18nManager.getMessage(Messages.PROFILE_BIRTHDATE), birthDate);
    } else if (editable) {
      birthDateField = new DateField();
      birthDateField.setDateFormat(Constants.DEFAULT_DATE_FORMAT);
      birthDateField.setResolution(DateField.RESOLUTION_DAY);
      try {
        birthDateField.setValue(new SimpleDateFormat(Constants.DEFAULT_DATE_FORMAT).parse(birthDate));
      } catch (Exception e) {} // do nothing
View Full Code Here


    dueDateLabel.addStyleName(ExplorerLayout.STYLE_CLICKABLE);
    addComponent(dueDateLabel);
  }
 
  protected void initDueDateField() {
    dueDateField = new DateField();
    if (task.getDueDate() != null) {
      dueDateField.setValue(task.getDueDate());
    } else {
      dueDateField.setValue(new Date());
    }
View Full Code Here

    descriptionArea = new TextArea(i18nManager.getMessage(Messages.TASK_DESCRIPTION));
    descriptionArea.setColumns(25);
    form.addField("description", descriptionArea);
   
    // duedate
    dueDateField = new DateField(i18nManager.getMessage(Messages.TASK_DUEDATE));
    dueDateField.setResolution(DateField.RESOLUTION_DAY);
    form.addField("duedate", dueDateField);
   
    // priority
    priorityComboBox = new PriorityComboBox(i18nManager);
View Full Code Here

    descriptionArea = new TextArea(i18nManager.getMessage(Messages.TASK_DESCRIPTION));
    descriptionArea.setColumns(25);
    form.addField("description", descriptionArea);
   
    // duedate
    dueDateField = new DateField(i18nManager.getMessage(Messages.TASK_DUEDATE));
    dueDateField.setResolution(DateField.RESOLUTION_DAY);
    form.addField("duedate", dueDateField);
   
    // priority
    priorityComboBox = new PriorityComboBox(i18nManager);
View Full Code Here

   
    // Birthdate
    if (!editable && isDefined(birthDate)) {
      addProfileEntry(aboutLayout, i18nManager.getMessage(Messages.PROFILE_BIRTHDATE), birthDate);
    } else if (editable) {
      birthDateField = new DateField();
      birthDateField.setDateFormat(Constants.DEFAULT_DATE_FORMAT);
      birthDateField.setResolution(DateField.RESOLUTION_DAY);
      try {
        birthDateField.setValue(new SimpleDateFormat(Constants.DEFAULT_DATE_FORMAT).parse(birthDate));
      } catch (Exception e) {} // do nothing
View Full Code Here

        }
      }
    });
    dateLayout.addComponent(dateCheckBox);
   
    dateField = new DateField();
    dateField.setImmediate(true);
    dateField.addListener(new ValueChangeListener() {
     
      public void valueChange(ValueChangeEvent event) {
        if (dateField.getValue() != null) {
View Full Code Here

TOP

Related Classes of com.vaadin.ui.DateField

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.