Package org.gwt.mosaic.ui.client.datepicker

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


    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

Related Classes of org.gwt.mosaic.ui.client.datepicker.DateTimePicker

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.