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);
}
}
};