Search in sources :

Example 1 with PageState

use of org.activityinfo.client.page.PageState in project activityinfo by bedatadriven.

the class HistoryManager method onBrowserMovement.

private void onBrowserMovement(String token) {
    Log.debug("HistoryManager: Browser movement observed (" + token + "), firing NavigationRequested");
    PageState place = placeSerializer.deserialize(token);
    if (place != null) {
        eventBus.fireEvent(new NavigationEvent(NavigationHandler.NAVIGATION_REQUESTED, place));
    } else {
        Log.debug("HistoryManager: Could not deserialize '" + token + "', no action taken.");
    }
}
Also used : NavigationEvent(org.activityinfo.client.event.NavigationEvent) PageState(org.activityinfo.client.page.PageState)

Aggregations

NavigationEvent (org.activityinfo.client.event.NavigationEvent)1 PageState (org.activityinfo.client.page.PageState)1