本文整理汇总了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;
}
示例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);
}
示例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;
}
示例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);
}
示例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;
}
示例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;
}
示例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();
}
示例8: TvShowRendererBuilder
import com.pedrogomez.renderers.Renderer; //导入依赖的package包/类
public TvShowRendererBuilder(Collection<Renderer<TvShow>> prototypes) {
super(prototypes);
}
示例9: ChapterViewModelRendererBuilder
import com.pedrogomez.renderers.Renderer; //导入依赖的package包/类
public ChapterViewModelRendererBuilder(Collection<Renderer<ChapterViewModel>> prototypes) {
super(prototypes);
}
示例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);
}
示例11: ChapterRendererBuilder
import com.pedrogomez.renderers.Renderer; //导入依赖的package包/类
public ChapterRendererBuilder(Collection<Renderer<Chapter>> prototypes) {
super(prototypes);
}
示例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);
}
示例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);
}
示例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);
}
示例15: MessageRenderBuilder
import com.pedrogomez.renderers.Renderer; //导入依赖的package包/类
public MessageRenderBuilder(ImageLoader imageLoader) {
this.imageLoader = imageLoader;
List<Renderer<Message>> prototypes = getMessageRendererPrototypes();
setPrototypes(prototypes);
}