Example usage for com.google.gwt.gwtpages.client.page LoadedPageContainer getPageToken

List of usage examples for com.google.gwt.gwtpages.client.page LoadedPageContainer getPageToken

Introduction

In this page you can find the example usage for com.google.gwt.gwtpages.client.page LoadedPageContainer getPageToken.

Prototype

public String getPageToken() 

Source Link

Document

Return the the specific segment of the history token which identifies the page

Usage

From source file:com.google.gwt.gwtpages.demo.client.pages.layout.MenuItemsPanel.java

@Override
public void onPageShown(LoadedPageContainer currentPageData, PageParameters parameters, GotoPageCommand command,
        LoadedPageContainer previousPageData) {
    boolean matchFound = false;
    for (MenuItemLink link : links) {
        if (link.pageToken.equals(currentPageData.getPageToken())) {
            matchFound = true;/*www  .  j  av  a  2 s  .c o  m*/
            break;
        }
    }
    if (matchFound) {
        for (MenuItemLink link : links) {
            if (link.pageToken.equals(currentPageData.getPageToken())) {
                link.select();
            } else {
                link.reset();
            }
        }
    }
}