Examples of DateTimePicker


Examples of org.apache.struts2.dojo.components.DateTimePicker

    }
   
    private void assertDateValue(String property, DateTimePickerTag tag, Date toCompareDate,
        boolean compareDate, boolean compareTime) throws Exception {
        tag.doStartTag();
        DateTimePicker picker = (DateTimePicker) tag.getComponent();
        picker.evaluateParams();

        String dateStr = (String) tag.getComponent().getParameters()
            .get(property);
        Date date = RFC3339_FORMAT.parse(dateStr);
        assertNotNull(date);
View Full Code Here

Examples of org.gwt.mosaic.ui.client.datepicker.DateTimePicker

    alert(MessageBoxType.INFO, caption, message);
  }

  public static void prompt(String caption, Date defaultValue,
      boolean use24Hours, final PromptCallback<Date> callback) {
    final DateTimePicker dateTimePicker = new DateTimePicker(use24Hours);
    // dateTimePicker.getDatePicker().setSelectedDate(defaultValue, true);
    dateTimePicker.getTimePicker().setDateTime(defaultValue);

    final MessageBox prompt = new MessageBox(caption) {
      @Override
      public void onClose(boolean result) {
        hide();
        if (result) {
          callback.onResult(dateTimePicker.getDate());
        } else {
          callback.onResult(null);
        }
      }
    };
View Full Code Here

Examples of org.gwt.mosaic.ui.client.datepicker.DateTimePicker

    alert(MessageBoxType.INFO, caption, message);
  }

  public static void prompt(String caption, Date defaultValue,
      boolean use24Hours, final PromptCallback<Date> callback) {
    final DateTimePicker dateTimePicker = new DateTimePicker(use24Hours);
    // dateTimePicker.getDatePicker().setSelectedDate(defaultValue, true);
    dateTimePicker.getTimePicker().setDateTime(defaultValue);

    final MessageBox prompt = new MessageBox(caption) {
      @Override
      public void onClose(boolean result) {
        hide();
        if (result) {
          callback.onResult(dateTimePicker.getDate());
        } else {
          callback.onResult(null);
        }
      }
    };
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.