Wednesday, April 8, 2015

How to register event for GWT EventBus

injector.getEventBus().addHandler(PlaceChangeEvent.TYPE, new PlaceChangeEvent.Handler(){
        @Override
        public void onPlaceChange(PlaceChangeEvent placeChangeEvent) {
            getKeyByValue(itemsMap, placeChangeEvent.getNewPlace());
        }
    });

No comments: