public void configureNavLinks(){
bodyNavLink.setTargetHistoryToken(challengeUtil.generateToken(ChallengeTabType.VIEW));
ideasNavLink.setTargetHistoryToken(challengeUtil.generateToken(ChallengeTabType.IDEAS));
updatesNavLink.setTargetHistoryToken(challengeUtil.generateToken(ChallengeTabType.UPDATES));
}
public String generateToken(ChallengeTabType type){
PlaceRequest request = generateRelativePlaceRequest(type);
return placeManager.buildHistoryToken(request);
}
private PlaceRequest generateRelativePlaceRequest (ChallengeTabType type){
return new PlaceRequest.Builder(placeManager.getCurrentPlaceRequest())
.with("tab", type.getToken())
.build();
}
(I don't use TabPresenter because it does not fit my needs 100%)
--
You received this message because you are subscribed to the Google Groups "GWTP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to gwt-platform...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
--
You received this message because you are subscribed to a topic in the Google Groups "GWTP" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/gwt-platform/AImtCkw1kuU/unsubscribe.
To unsubscribe from this group and all its topics, send an email to gwt-platform...@googlegroups.com.