Beispiel #1
0
    /**
     * @see
     *     com.google.gwt.event.dom.client.BlurHandler#onBlur(com.google.gwt.event.dom.client.BlurEvent)
     */
    public void onBlur(BlurEvent event) {

      UIObject source = (UIObject) event.getSource();
      if (m_box.getElement().isOrHasChild(source.getElement())) {
        onDateBoxBlur();
      } else if (m_time.getElement().isOrHasChild(source.getElement())) {
        onTimeBlur();
      }
    }
  /** 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 #6
0
 @Override
 public void onBlur(BlurEvent event) {
   if (event.getSource() instanceof FocusWidget) {
     lastFocused = (FocusWidget) event.getSource();
   }
 }
Beispiel #7
0
 @Override
 public HandlerRegistration addBlurHandler(BlurHandler handler) {
   // TODO Auto-generated method stub
   return addDomHandler(handler, BlurEvent.getType());
 }
Beispiel #8
0
 @Override
 public HandlerRegistration addBlurHandler(final BlurHandler handler) {
   return handlers.addHandler(BlurEvent.getType(), handler);
 }