}
this.minValue = minValue;
}
protected void expand() {
DatePicker picker = getDatePicker();
Object v = getValue();
Date d = null;
if (v instanceof Date) {
d = (Date) v;
} else {
d = new Date();
}
picker.setMinDate(minValue);
picker.setMaxDate(maxValue);
picker.setValue(d, true);
// handle case when down arrow is opening menu
DeferredCommand.addCommand(new Command() {
public void execute() {
menu.show(el().dom, "tl-bl?");