@Override
    public void setValue(final Date date, final boolean fireEvents) {
        if (!fireEvents && date != null) {
            ((CustomDateBoxFormat) getFormat()).setLastDate(date);
        }

        super.setValue(date, fireEvents);
    }
Create a date box with a new {@link DatePicker}.
stroom-core-client-widget/src/main/java/stroom/widget/customdatebox/client/CustomDateBox.java