Package com.google.livingstories.client

Examples of com.google.livingstories.client.FilterSpec


    currentFilters = filter;
    refreshFilters();
  }

  private FilterSpec copyCurrentFilterSpec() {
    return currentFilters == null ? new FilterSpec() : new FilterSpec(currentFilters);
  }
View Full Code Here


   
    @Override
    public void onClick(ClickEvent event) {
      if (currentFilters.contentItemType != contentItemType || currentFilters.assetType != assetType
          || currentFilters.opinion != opinion) {
        FilterSpec newFilter = copyCurrentFilterSpec();
        newFilter.contentItemType = contentItemType;
        newFilter.assetType = assetType;
        newFilter.opinion = opinion;
        HistoryManager.newTokenWithEvent(HistoryPages.OVERVIEW,
            newFilter.getFilterParams(), null);
        AnalyticsUtil.trackFilterClick(LivingStoryData.getLivingStoryUrl(), filterName);
      }
    }
View Full Code Here

    }
   
    @Override
    public void onClick(ClickEvent event) {
      if (importantOnly != currentFilters.importantOnly) {
        FilterSpec newFilter = copyCurrentFilterSpec();
        newFilter.importantOnly = importantOnly;
        HistoryManager.newTokenWithEvent(HistoryPages.OVERVIEW,
            newFilter.getFilterParams(), null);
        AnalyticsUtil.trackFilterClick(LivingStoryData.getLivingStoryUrl(),
            importantOnly ? "Most important" : "All importance");
      }
    }
View Full Code Here

    }
   
    @Override
    public void onClick(ClickEvent event) {
      if (oldestFirst != currentFilters.oldestFirst) {
        FilterSpec newFilter = copyCurrentFilterSpec();
        newFilter.oldestFirst = oldestFirst;
        HistoryManager.newTokenWithEvent(HistoryPages.OVERVIEW,
            newFilter.getFilterParams(), null);
        AnalyticsUtil.trackFilterClick(LivingStoryData.getLivingStoryUrl(),
            oldestFirst ? "Oldest first" : "Newest first");
      }
    }
View Full Code Here

TOP

Related Classes of com.google.livingstories.client.FilterSpec

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.