当前位置: 首页>>代码示例>>Java>>正文


Java TvShowCollection类代码示例

本文整理汇总了Java中com.github.pedrovgs.effectiveandroidui.ui.renderer.tvshow.TvShowCollection的典型用法代码示例。如果您正苦于以下问题:Java TvShowCollection类的具体用法?Java TvShowCollection怎么用?Java TvShowCollection使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


TvShowCollection类属于com.github.pedrovgs.effectiveandroidui.ui.renderer.tvshow包,在下文中一共展示了TvShowCollection类的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: loadTvShows

import com.github.pedrovgs.effectiveandroidui.ui.renderer.tvshow.TvShowCollection; //导入依赖的package包/类
/**
 * Use GetTvShows interactor to obtain a collection of videos and render it using the view
 * object setted previously. If the interactor returns an error the presenter will show an error
 * message and the empty case. In both cases, the progress bar visibility will be hidden.
 */
private void loadTvShows() {
  if (view.isReady()) {
    view.showLoading();
  }
  getTvShowsInteractor.execute(new GetTvShows.Callback() {
    @Override public void onTvShowsLoaded(final Collection<TvShow> tvShows) {
      currentTvShowCollection = new TvShowCollection(tvShows);
      showTvShows(tvShows);
    }

    @Override public void onConnectionError() {
      notifyConnectionError();
    }
  });
}
 
开发者ID:weiwenqiang,项目名称:GitHub,代码行数:21,代码来源:TvShowCatalogPresenter.java

示例2: onViewStateRestored

import com.github.pedrovgs.effectiveandroidui.ui.renderer.tvshow.TvShowCollection; //导入依赖的package包/类
@Override public void onViewStateRestored(Bundle savedInstanceState) {
  super.onViewStateRestored(savedInstanceState);
  if (savedInstanceState != null) {
    final TvShowCollection tvShowCollection =
        (TvShowCollection) savedInstanceState.getSerializable(EXTRA_TV_SHOW_CATALOG);
    updatePresenterWithSavedTvShow(tvShowCollection);
  }
}
 
开发者ID:weiwenqiang,项目名称:GitHub,代码行数:9,代码来源:TvShowCatalogFragment.java

示例3: updatePresenterWithSavedTvShow

import com.github.pedrovgs.effectiveandroidui.ui.renderer.tvshow.TvShowCollection; //导入依赖的package包/类
private void updatePresenterWithSavedTvShow(TvShowCollection tvShowCollection) {
  if (tvShowCollection != null) {
    tvShowCatalogPresenter.loadCatalog(tvShowCollection);
  }
}
 
开发者ID:weiwenqiang,项目名称:GitHub,代码行数:6,代码来源:TvShowCatalogFragment.java

示例4: getCurrentTvShows

import com.github.pedrovgs.effectiveandroidui.ui.renderer.tvshow.TvShowCollection; //导入依赖的package包/类
public TvShowCollection getCurrentTvShows() {
  return currentTvShowCollection;
}
 
开发者ID:weiwenqiang,项目名称:GitHub,代码行数:4,代码来源:TvShowCatalogPresenter.java

示例5: loadCatalog

import com.github.pedrovgs.effectiveandroidui.ui.renderer.tvshow.TvShowCollection; //导入依赖的package包/类
/**
 * Used to force a TvShowCollection load in the presenter. This method is used by
 * TvShowCatalogFragment when the fragment lifecycle is restored and there are already loaded tv
 * shows.
 */
public void loadCatalog(final TvShowCollection tvShowCollection) {
  currentTvShowCollection = tvShowCollection;
  showTvShows(tvShowCollection.getAsList());
}
 
开发者ID:weiwenqiang,项目名称:GitHub,代码行数:10,代码来源:TvShowCatalogPresenter.java


注:本文中的com.github.pedrovgs.effectiveandroidui.ui.renderer.tvshow.TvShowCollection类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。