List of usage examples for com.google.gwt.event.shared LegacyHandlerWrapper LegacyHandlerWrapper
public LegacyHandlerWrapper(com.google.web.bindery.event.shared.HandlerRegistration real)
From source file:com.arcbees.chosen.client.gwt.ChosenListBox.java
License:Apache License
/** * Deprecated, use {@link #addChosenChangeHandler(ChosenChangeHandler)} * instead./*from w w w .java2 s .com*/ */ @Override @Deprecated public com.google.gwt.event.shared.HandlerRegistration addChangeHandler( final com.google.gwt.event.dom.client.ChangeHandler handler) { final HandlerRegistration registration = addChosenChangeHandler(new ChosenChangeHandler() { public void onChange(ChosenChangeEvent event) { handler.onChange(null); } }); return new LegacyHandlerWrapper(registration); }
From source file:edu.arizona.biosemantics.etcsite.client.layout.MyPlaceHistoryHandler.java
License:Apache License
/** * Legacy method tied to the old location for {@link EventBus}. * /*from ww w. j ava2 s . com*/ * @deprecated use {@link #register(PlaceController, EventBus, Place)} */ @Deprecated public com.google.gwt.event.shared.HandlerRegistration register(PlaceController placeController, com.google.gwt.event.shared.EventBus eventBus, Place defaultPlace) { return new LegacyHandlerWrapper(register(placeController, (EventBus) eventBus, defaultPlace)); }
From source file:stroom.widget.tab.client.presenter.TabListPresenter.java
License:Apache License
@Override public HandlerRegistration addSelectionHandler(final SelectionHandler<TabData> handler) { return new LegacyHandlerWrapper(addHandler(SelectionEvent.getType(), handler)); }