Example usage for com.google.gwt.place.shared PlaceHistoryHandler PlaceHistoryHandler

List of usage examples for com.google.gwt.place.shared PlaceHistoryHandler PlaceHistoryHandler

Introduction

In this page you can find the example usage for com.google.gwt.place.shared PlaceHistoryHandler PlaceHistoryHandler.

Prototype

public PlaceHistoryHandler(PlaceHistoryMapper mapper, Historian historian) 

Source Link

Document

Create a new PlaceHistoryHandler.

Usage

From source file:uk.co.threeonefour.ifictionary.engine.client.gin.Level9InjectorModule.java

License:Apache License

@Provides
@Singleton/*from  w w  w .j av  a2s  .  c om*/
PlaceHistoryHandler providePlaceHistoryHandler(PlaceHistoryMapper historyMapper, Historian historian,
        PlaceController placeController, EventBus eventBus, @DefaultPlace Place defaultPlace) {

    PlaceHistoryHandler historyHandler = new PlaceHistoryHandler(historyMapper, historian);
    historyHandler.register(placeController, eventBus, defaultPlace);
    return historyHandler;
}