在GWT日期框中禁用未来日期选择

在GWT日期框中禁用未来日期选择,gwt,datebox,Gwt,Datebox,我正在使用GWT DateBox小部件。我想知道如何在GWT DateBox中禁用对用户的未来日期选择? 请给我答复 我发现上面的解决方案可以从GWT DateBox小部件中禁用未来日期。我使用了DateTimeFormat类来格式化当前日期。这是哪个日期框?!GWT的日期框中没有setEndDate: DateBox dateBox=new DateBox(); DateTimeFormat simple_date_frmt= DateTimeFormat.getFormat("dd-MM-y

我正在使用GWT DateBox小部件。我想知道如何在GWT DateBox中禁用对用户的未来日期选择?
请给我答复

我发现上面的解决方案可以从GWT DateBox小部件中禁用未来日期。我使用了DateTimeFormat类来格式化当前日期。这是哪个
日期框?!GWT的
日期框中没有
setEndDate
DateBox dateBox=new DateBox();
DateTimeFormat simple_date_frmt= DateTimeFormat.getFormat("dd-MM-yyyy hh:mm");
String date=simple_date_fmt.format(new Date());
dateBox.setEndDate(date);