List of usage examples for com.google.gwt.place.shared PlaceHistoryMapper getToken
String getToken(Place place);
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)); }