/** Allows a UTCTimeBox to be created with a specified format. */
  public UTCTimeBoxImplHtml4() {
    this.textbox = new Select();

    final TextBoxHandler handler = new TextBoxHandler();
    textbox.addDomHandler(handler, BlurEvent.getType());
    textbox.addValueChangeHandler(handler);
    textbox.setFixedMenuSize(5);

    initWidget(textbox);
  }
 @Override
 protected com.google.web.bindery.event.shared.HandlerRegistration setupBlurValidation() {
   return getInputWidget()
       .addDomHandler(
           new BlurHandler() {
             @Override
             public void onBlur(BlurEvent event) {
               getInputWidget().validate(!showing && getValidateOnBlur());
             }
           },
           BlurEvent.getType());
 }
  @Override
  public HandlerRegistration addBlurHandler(final BlurHandler handler) {
    if (!blurHandlerAdded) {
      blurHandlerAdded = true;
      this.codeMirror.on(
          this.editorOverlay,
          BLUR,
          new EventHandlers.EventHandlerNoParameters() {

            @Override
            public void onEvent() {
              fireBlurEvent();
            }
          });
    }
    return addHandler(handler, BlurEvent.getType());
  }
 @Override
 public HandlerRegistration addBlurHandler(BlurHandler handler) {
   return addDomHandler(handler, BlurEvent.getType());
 }
Beispiel #5
0
 @Override
 public HandlerRegistration addBlurHandler(BlurHandler handler) {
   // TODO Auto-generated method stub
   return addDomHandler(handler, BlurEvent.getType());
 }
Beispiel #6
0
 @Override
 public HandlerRegistration addBlurHandler(final BlurHandler handler) {
   return handlers.addHandler(BlurEvent.getType(), handler);
 }