Overview | Package | Class | Use | Tree | Deprecated | Index | Help
| GWT 2.4.0
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## com.google.web.bindery.event.shared
Interface HandlerRegistration

All Known Subinterfaces:
  HandlerRegistration

All Known Implementing Classes:
  DefaultHandlerRegistration, LegacyHandlerWrapper

    public interface HandlerRegistration

Registration objects returned when an event handler is bound (e.g. via `EventBus.addHandler(com.google.web.bindery.event.shared.Event.Type, H)`), used to deregister.

A tip: to make a handler deregister itself try something like the following: ``

    new MyHandler() {
      HandlerRegistration reg = MyEvent.register(eventBus, this);

      public void onMyThing(MyEvent event) {
        /* do your thing */
        reg.removeHandler();
      }
     };

Method Summary
`void` | `removeHandler()` Deregisters the handler associated with this registration object if the handler is still attached to the event source.

Method Detail

### removeHandler

    void removeHandler()

  Deregisters the handler associated with this registration object if the handler is still attached to the event source. If the handler is no longer attached to the event source, this is a no-op.

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
| GWT 2.4.0
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD