@Override
protected void onRender(Element parent, int index) {
super.onRender(parent, index);
setLayout(new FlowLayout(10));
final DatePicker picker = new DatePicker();
picker.addListener(Events.Select, new Listener<ComponentEvent>() {
public void handleEvent(ComponentEvent be) {
//String d = DateTimeFormat.getShortDateFormat().format(picker.getValue());
String d = DateTimeFormat.getFormat("MM/dd/yyyy").format(picker.getValue());
Info.display("Date Selected", "You selected {0}.", new Params(d));
}
});
add(picker);