Example usage for com.google.gwt.place.shared PlaceHistoryMapper getToken

List of usage examples for com.google.gwt.place.shared PlaceHistoryMapper getToken

Introduction

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

Prototype

String getToken(Place place);

Source Link

Document

Returns the String token associated with the given Place .

Usage

From source file:com.github.gwtbootstrap.showcase.client.basewidget.BaseView.java

License:Apache License

protected void addWidget(String header, String target, Widget widget) {
    Subnav subnav = clientFactory.getSubnav();

    PlaceHistoryMapper mapper = clientFactory.getPlaceHistoryMapper();

    String newTarget = mapper.getToken(clientFactory.getPlaceController().getWhere()).split(":")[0] + ":"
            + target;//  www  .j  a va 2  s. c o  m

    Section section = new Section(newTarget);

    section.add(widget);

    container.add(section);

    subnav.add(new NavLink(header, "#" + newTarget));

}