/** {@inheritDoc} */
  @Override
  public void setValue(final Date value, final boolean fireEvents) {
    errorHandlerMixin.clearErrors();
    textBox.setValue(value != null ? dateTimeFormat.format(value) : null);
    update(textBox.getElement());

    if (fireEvents) {
      ValueChangeEvent.fire(DatePickerBase.this, value);
    }
  }
 public DatePickerBase() {
   textBox = new TextBox();
   setElement((Element) textBox.getElement());
   setFormat(format);
 }