Package com.google.gwt.event.shared

Examples of com.google.gwt.event.shared.HandlerRegistration.removeHandler()


        //Release event handlers when closed
        addHideHandler( new HideHandler() {
            @Override
            public void onHide( final HideEvent hideEvent ) {
                registration.removeHandler();
            }
        } );
        super.show();
    }
View Full Code Here


    knownValues.remove(property);
    bindings.remove(property);
    converters.remove(property);
    HandlerRegistration reg = handlerRegistrations.remove(property);
    if (reg != null) {
      reg.removeHandler();
    }
  }

  /**
   * Updates all bound widgets if necessary (if a bound property's value has changed). This method is invoked in case a
View Full Code Here

        //Release event handlers when closed
        addCloseHandler( new CloseHandler<PopupPanel>() {

            public void onClose( CloseEvent<PopupPanel> event ) {
                registration.removeHandler();
            }

        } );
        super.show();
    }
View Full Code Here

    }
    displays.remove(display);

    // Remove the handler.
    HandlerRegistration handler = rangeChangeHandlers.remove(display);
    handler.removeHandler();
  }

  /**
   * Set the {@link ProvidesKey} that provides keys for list items.
   *
 
View Full Code Here

          PlaceChangeRequesteEvent.TYPE, this);
     
      this.handlerRegistration = new HandlerRegistration() {
        public void removeHandler() {
          placeReg.removeHandler();
          placeRequestReg.removeHandler();
        }
      };
    } else {
      if (handlerRegistration != null) {
        handlerRegistration.removeHandler();
View Full Code Here

    final HandlerRegistration viewRegistration = view.addValueChangeHandler(this);

    return new HandlerRegistration() {
      public void removeHandler() {
        placeRegistration.removeHandler();
        viewRegistration.removeHandler();
        ProxyListPlacePicker.this.view = null;
      }
    };
  }
}
View Full Code Here

      public void removeHandler() {
        AbstractPlaceHistoryHandler.this.defaultPlace = Place.NOWHERE;
        AbstractPlaceHistoryHandler.this.placeController = null;
        AbstractPlaceHistoryHandler.this.factory = null;
        placeReg.removeHandler();
        historyReg.removeHandler();
      }
    };
  }

  public void setFactory(F factory) {
View Full Code Here

        // mode inside the invoke context.  Put the remove in a deferred command to avoid this
        // error
        ScheduleCommand.addCommand(new Scheduler.Task() {
          public void execute() {
            onLoadReg.removeHandler();
            onErrorReg.removeHandler();
          }
        });

        onLoadHandlerRegistration = null;
        onErrorHandlerRegistration = null;
View Full Code Here

        //Release event handlers when closed
        addCloseHandler( new CloseHandler<PopupPanel>() {

            public void onClose( CloseEvent<PopupPanel> event ) {
                registration.removeHandler();
            }

        } );
        super.show();
    }
View Full Code Here

    public void setButton(Widget widget) {
      super.setButton(widget);
      HandlerRegistration clickRegistration = clickHandlerCache.get(widget);
      if (clickRegistration != null) {
        clickRegistration.removeHandler();
      }
      if (button != null) {
        if (button instanceof HasClickHandlers) {
          clickRegistration = ((HasClickHandlers) button).addClickHandler(new ClickHandler() {
            public void onClick(ClickEvent event) {
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.