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


Java Renderer类代码示例

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


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

示例1: getMessageRendererPrototypes

import com.pedrogomez.renderers.Renderer; //导入依赖的package包/类
public List<Renderer<Message>> getMessageRendererPrototypes() {
  LinkedList<Renderer<Message>> prototypes = new LinkedList<>();

  prototypes.add(new MessageRenderer(imageLoader));
  prototypes.add(new StickerRenderer(imageLoader));

  return prototypes;
}
 
开发者ID:tonilopezmr,项目名称:Game-of-Thrones,代码行数:9,代码来源:MessageRenderBuilder.java

示例2: ICalViewModelRendererBuilder

import com.pedrogomez.renderers.Renderer; //导入依赖的package包/类
public ICalViewModelRendererBuilder() {
    Collection<Renderer<ICalViewModel>> prototypes = new ArrayList<>();
    prototypes.add(new ICalViewModelRenderer());
    prototypes.add(new OpenLabICalViewModelRenderer());
    prototypes.add(new SelfLabICalViewModelRenderer());

    setPrototypes(prototypes);
}
 
开发者ID:FAU-Inf2,项目名称:fablab-android,代码行数:9,代码来源:ICalViewModelRendererBuilder.java

示例3: build

import com.pedrogomez.renderers.Renderer; //导入依赖的package包/类
protected Renderer build() {
    BinderRenderer oldRenderer = unbindRenderer(mConvertView);
    BinderRenderer newRenderer = (BinderRenderer) super.build();
    if(oldRenderer != newRenderer) {
        mRenderers.add(newRenderer);
    }
    return newRenderer;
}
 
开发者ID:raycoarana,项目名称:baindo,代码行数:9,代码来源:BinderRendererBuilder.java

示例4: TraceRendererBuilder

import com.pedrogomez.renderers.Renderer; //导入依赖的package包/类
public TraceRendererBuilder(LynxConfig lynxConfig) {
  List<Renderer<Trace>> prototypes = new LinkedList<Renderer<Trace>>();
  prototypes.add(new TraceRenderer(lynxConfig));
  prototypes.add(new AssertTraceRenderer(lynxConfig));
  prototypes.add(new DebugTraceRenderer(lynxConfig));
  prototypes.add(new InfoTraceRenderer(lynxConfig));
  prototypes.add(new WarningTraceRenderer(lynxConfig));
  prototypes.add(new ErrorTraceRenderer(lynxConfig));
  prototypes.add(new WtfTraceRenderer(lynxConfig));
  setPrototypes(prototypes);
}
 
开发者ID:pedrovgs,项目名称:Lynx,代码行数:12,代码来源:TraceRendererBuilder.java

示例5: getPrototypes

import com.pedrogomez.renderers.Renderer; //导入依赖的package包/类
private List<Renderer<User>> getPrototypes(Context context, UserRenderer.OnUserClicked onUserClicked) {
    List<Renderer<User>> prototypes = new LinkedList<Renderer<User>>();

    UserRenderer userRenderer = new UserRenderer(context, onUserClicked);
    prototypes.add(userRenderer);

    return prototypes;
}
 
开发者ID:voghDev,项目名称:dagger2-clean-mvp-example,代码行数:9,代码来源:UserRendererBuilder.java

示例6: getRendererVideoPrototypes

import com.pedrogomez.renderers.Renderer; //导入依赖的package包/类
/**
 * Create a list of prototypes to configure RendererBuilder.
 * The list of Renderer<Video> that contains all the possible renderers that our RendererBuilder
 * is going to use.
 *
 * @return Renderer<Video> prototypes for RendererBuilder.
 */
private List<Renderer<Video>> getRendererVideoPrototypes() {
  List<Renderer<Video>> prototypes = new LinkedList<Renderer<Video>>();
  LikeVideoRenderer likeVideoRenderer = new LikeVideoRenderer();
  prototypes.add(likeVideoRenderer);

  FavoriteVideoRenderer favoriteVideoRenderer = new FavoriteVideoRenderer();
  prototypes.add(favoriteVideoRenderer);

  LiveVideoRenderer liveVideoRenderer = new LiveVideoRenderer();
  prototypes.add(liveVideoRenderer);

  return prototypes;
}
 
开发者ID:pedrovgs,项目名称:Renderers,代码行数:21,代码来源:VideoRendererBuilder.java

示例7: initializeContactsList

import com.pedrogomez.renderers.Renderer; //导入依赖的package包/类
private void initializeContactsList() {
	List<Renderer<Contact>> prototypes = new ArrayList<Renderer<Contact>>();
	prototypes.add(new ContactRenderer(this));
	ContactRendererBuilder contactRendererBuilder = new ContactRendererBuilder(prototypes);

	RendererAdapter<Contact> adapter = new RendererAdapter<Contact>(getLayoutInflater(), contactRendererBuilder, agenda);
	lv_contacts.setAdapter(adapter);

	initializeScrollAnimator();
}
 
开发者ID:tuenti,项目名称:ButtonMenu,代码行数:11,代码来源:MainActivity.java

示例8: TvShowRendererBuilder

import com.pedrogomez.renderers.Renderer; //导入依赖的package包/类
public TvShowRendererBuilder(Collection<Renderer<TvShow>> prototypes) {
  super(prototypes);
}
 
开发者ID:weiwenqiang,项目名称:GitHub,代码行数:4,代码来源:TvShowRendererBuilder.java

示例9: ChapterViewModelRendererBuilder

import com.pedrogomez.renderers.Renderer; //导入依赖的package包/类
public ChapterViewModelRendererBuilder(Collection<Renderer<ChapterViewModel>> prototypes) {
  super(prototypes);
}
 
开发者ID:weiwenqiang,项目名称:GitHub,代码行数:4,代码来源:ChapterViewModelRendererBuilder.java

示例10: updateRendererExtraValues

import com.pedrogomez.renderers.Renderer; //导入依赖的package包/类
@Override protected void updateRendererExtraValues(ChapterViewModel content,
    Renderer<ChapterViewModel> renderer, int position) {
  super.updateRendererExtraValues(content, renderer, position);
  ((ChapterViewModelRenderer) renderer).setPosition(position);
}
 
开发者ID:weiwenqiang,项目名称:GitHub,代码行数:6,代码来源:ChapterViewModelRendererAdapter.java

示例11: ChapterRendererBuilder

import com.pedrogomez.renderers.Renderer; //导入依赖的package包/类
public ChapterRendererBuilder(Collection<Renderer<Chapter>> prototypes) {
  super(prototypes);
}
 
开发者ID:weiwenqiang,项目名称:GitHub,代码行数:4,代码来源:ChapterRendererBuilder.java

示例12: updateRendererExtraValues

import com.pedrogomez.renderers.Renderer; //导入依赖的package包/类
@Override protected void updateRendererExtraValues(Chapter content, Renderer<Chapter> renderer,
    int position) {
  super.updateRendererExtraValues(content, renderer, position);
  ((ChapterRenderer) renderer).setPosition(position);
}
 
开发者ID:weiwenqiang,项目名称:GitHub,代码行数:6,代码来源:ChapterRendererAdapter.java

示例13: provideTvShowRendererBuilder

import com.pedrogomez.renderers.Renderer; //导入依赖的package包/类
@Provides TvShowRendererBuilder provideTvShowRendererBuilder(TvShowRenderer tvShowRenderer) {
  LinkedList<Renderer<TvShow>> renderers = new LinkedList<Renderer<TvShow>>();
  renderers.add(tvShowRenderer);
  return new TvShowRendererBuilder(renderers);
}
 
开发者ID:weiwenqiang,项目名称:GitHub,代码行数:6,代码来源:TvShowUIModule.java

示例14: provideChapterRendererBuilder

import com.pedrogomez.renderers.Renderer; //导入依赖的package包/类
@Provides ChapterRendererBuilder provideChapterRendererBuilder(ChapterRenderer chapterRenderer) {
  LinkedList<Renderer<Chapter>> renderers = new LinkedList<Renderer<Chapter>>();
  renderers.add(chapterRenderer);
  return new ChapterRendererBuilder(renderers);
}
 
开发者ID:weiwenqiang,项目名称:GitHub,代码行数:6,代码来源:TvShowUIModule.java

示例15: MessageRenderBuilder

import com.pedrogomez.renderers.Renderer; //导入依赖的package包/类
public MessageRenderBuilder(ImageLoader imageLoader) {
  this.imageLoader = imageLoader;
  List<Renderer<Message>> prototypes = getMessageRendererPrototypes();
  setPrototypes(prototypes);
}
 
开发者ID:tonilopezmr,项目名称:Game-of-Thrones,代码行数:6,代码来源:MessageRenderBuilder.java


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