Package com.google.livingstories.client.lsp

Examples of com.google.livingstories.client.lsp.Page


      String newPageToken = newTokens[0];
      if (page == null || !pageToken.equals(newPageToken)) {
        pageToken = newPageToken;
        String[] pageParams = newPageToken.split(":");
        HistoryPages historyPage = HistoryPages.valueOf(pageParams[0]);
        Page newPage = historyPage.getPage(pageParams);
        pageState = historyPage.getDefaultState();
        if (newPage != page) {
          page = newPage;
          LivingStoryControls.goToPage(page);
        }
View Full Code Here


  @UiHandler("name") void goToPlayerPage(ClickEvent e) {
    // TODO: this isn't great, but it works.
    // The right way to do this would probably be to store all content items in the
    // ClientCache and fire a history change event here to load the page, instead
    // of trying to hack around the history system.
    Page page = new PlayerPage(contentItem);
    HistoryManager.newToken(page, HistoryPages.PLAYER, String.valueOf(contentItem.getId()));
    LivingStoryControls.goToPage(page);
  }
View Full Code Here

TOP

Related Classes of com.google.livingstories.client.lsp.Page

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.